]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
make-mod-scripts: split `HOSTCC` flag to align with to linux-yocto
authorHarish Sadineni <Harish.Sadineni@windriver.com>
Fri, 16 Jan 2026 09:48:56 +0000 (09:48 +0000)
committerDeepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
Mon, 2 Mar 2026 08:48:59 +0000 (00:48 -0800)
when compiling rust-out-of-tree module recipe 'make-mod-scripts' failing
with the following error:

HOSTRUSTC scripts/generate_rust_target
error: Unrecognized option: 'i'

This issue occurs because CFLAGS are being passed to HOSTRUSTC.
Updated the flags in the make-mod-scripts recipe to align with
the flags used by linux-yocto.

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb

index 8fcb5e6eb3fed363c25b2877f5f96ab799384a93..874e16e64201ef7fd68415280b8ce42e9f665c0b 100644 (file)
@@ -18,7 +18,7 @@ DEV_PKG_DEPENDENCY = ""
 DEPENDS += "bc-native bison-native"
 DEPENDS += "gmp-native"
 
-EXTRA_OEMAKE = " HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}""
+EXTRA_OEMAKE = " HOSTCC="${BUILD_CC}" HOSTCFLAGS="${BUILD_CFLAGS}" HOSTLDFLAGS="${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}""
 EXTRA_OEMAKE += " HOSTCXX="${BUILD_CXX} ${BUILD_CXXFLAGS} ${BUILD_LDFLAGS}" CROSS_COMPILE=${TARGET_PREFIX}"
 
 KERNEL_LOCALVERSION = "${@get_kernellocalversion_file("${STAGING_KERNEL_BUILDDIR}")}"