I've hit an issue compiling kernel module for 5.2.9 currently on NSA-325, where it failed with make scripts, then make prepare so could not get to make iscsi_target module
I'm generally following guide in here
How to Compile Just One Kernel Module
Here is what I did on Debian 9 and tried on Debian 10 as well (directly on NSA-325):
apt-get install update
dpkg -i /boot/linux-headers-5.2.9-kirkwood-tld-1_1.0_armel.deb
cd /usr/src/linux-headers-5.2.9-kirkwood-tld-1/
apt-get install build-essential libncurses-dev chrpath gawk whiptail diffstat cpio libssl-dev
make menuconfig
# Here I selected Device Drivers ---> Generic Target Core Mod (TCM) and ConfigFS Infrastructure ---> Linux-iSCSI.org iSCSI Target Mode Stack
make scripts
# that failed on selinux, so I've disabled it and failed on byteshift includes being in different dirs, which I found patch for here
wget --no-check-certificate https://raw.githubusercontent.com/armbian/build/master/patch/misc/headers-debian-byteshift.patch
patch -p1 < headers-debian-byteshift.patch
# however now it fails here, and I have found no way to continue
root@debian:/usr/src/linux-headers-5.2.9-kirkwood-tld-1# make prepare
make[1]: *** No rule to make target 'arch/arm/tools/syscall.tbl', needed by 'arch/arm/include/generated/uapi/asm/unistd-common.h'. Stop.
make: *** [arch/arm/Makefile:322: archheaders] Error 2
Is it possible to get this module somewhere? Or resolve compilation issue above somehow?
Thanks