I successfully cross-compiled the current Raspi Kernel on my 64-bit machine to the target architecture
arm64. I went through all the necessary steps for inserting the newly built kernel into my Dietpi image. Now the only step left is cross-compiling the kernel modules into the target image.
When I run
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- INSTALL_MOD_PATH=/mnt/img modules_install
Sadly, this returns the following:
/bin/sh: 1: Syntax error: "(" unexpected DEPMOD 4.14.79-v8+
What can I do about that?