On Thu, May 15, 2025 at 12:58 PM, Bruce Ashfield wrote:
KBUILD_USERHOSTCFLAGS
Hello this patch may be dropped. May just have been an issue with the way I build
the standard SDK in my setup. Cloning poky and building bellow recipe generates
a standard SDK who's kernel source tree can be prepared for out-of-tree driver
development. Should of tried this first.
 
cat >> recipes-sdk/images/base-devel-sdk.bb <<EOF
SUMMARY = "Some Development Standard SDK"
LICENSE = "MIT"
inherit populate_sdk
TOOLCHAIN_TARGET_TASK += "kernel-devsrc"
EOF
KBUILD_USERHOSTCFLAGS="${KCFLAGS}" make -e -C sysroots/core2-64-poky-linux/lib/modules/6.12.27-yocto-standard/build/ modules_prepare
 
Appears to work for me
 
Thanks,
Vincent