I'm trying to build a Linux image for an iMX6 board using an external (official ARM toolchain) and I'm running into issues with sshd.
After some investigation it seems the official ARM toolchain comes with Linux kernel headers 4.20 whereas my actual kernel is 6.12. Due to this, sshd doesn't work because some missing syscalls are blocked by seccomp (e.g. __NR_clock_gettime64 causing a SIGSYS)
The question is, is it possible to use the actual kernel headers in combination with an external toolchain?
Here's what I have so far
BR2_arm=y
BR2_cortex_a9=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.12.47"
I tried adding BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y but that gets ignored.