From: Vyacheslav Yurkov <[email protected]> Module build environment should be aware of native C and C++ compiler's environment otherwise kernel Makefile might silently fail for some checks. A particular example is CONFIG_STACK_VALIDATION when CONFIG_UNWINDER_ORC is used, Makefile tries unsuccessfully locate libelf, even though it's already available in recipe sysroot.
Signed-off-by: Vyacheslav Yurkov <[email protected]> --- meta/classes/module.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass index c0dfa35061..8a691922c7 100644 --- a/meta/classes/module.bbclass +++ b/meta/classes/module.bbclass @@ -1,6 +1,6 @@ inherit module-base kernel-module-split pkgconfig -EXTRA_OEMAKE += "KERNEL_SRC=${STAGING_KERNEL_DIR}" +EXTRA_OEMAKE += "KERNEL_SRC=${STAGING_KERNEL_DIR} HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}"" MODULES_INSTALL_TARGET ?= "modules_install" MODULES_MODULE_SYMVERS_LOCATION ?= "" -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#142996): https://lists.openembedded.org/g/openembedded-core/message/142996 Mute This Topic: https://lists.openembedded.org/mt/77240868/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
