How to build custom kernel and modules for RPI4 using cross-compiling?


I’m using Manjaro ARM 22.08 minimal for RPI and need the kernel module “macsec”. However, the default build config did not include it.

I found this link: Files · master · manjaro-arm / packages / core / linux-rpi4 · GitLab

Could someone please give me some steps to how to build the kernel and modules, or even better yet (a new custom Manjaro-arm minimal image for RPI4) using cross-compiling on an amd64 machine. Thank you very much.