How to cross-compile Linux applications and kernel for embedded ARM targets?
Q: How to cross-compile Linux applications and kernel for embedded ARM targets? Answer Use a cross-compiler: for ARM64 (aarch64): aarch64-linux-gnu-gcc; for ARM32 (armv7): arm-linux-gnueabihf-gcc. Set CROSS_COMPILE=… and ARCH=arm64 in make commands. Build kernel: make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- defconfig then make ARCH=arm64…
