All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] module.bbclass: add HOSTCC for out-of-tree modules
@ 2020-10-01 13:59 Vyacheslav Yurkov
  2020-10-01 14:36 ` [OE-core] " Bruce Ashfield
  0 siblings, 1 reply; 7+ messages in thread
From: Vyacheslav Yurkov @ 2020-10-01 13:59 UTC (permalink / raw)
  To: Openembedded-core; +Cc: Vyacheslav Yurkov

From: Vyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com>

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 <Vyacheslav.Yurkov@bruker.com>
---
 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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-10-01 15:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-01 13:59 [PATCH] module.bbclass: add HOSTCC for out-of-tree modules Vyacheslav Yurkov
2020-10-01 14:36 ` [OE-core] " Bruce Ashfield
2020-10-01 14:47   ` Vyacheslav Yurkov
2020-10-01 14:53     ` Bruce Ashfield
2020-10-01 15:05       ` Vyacheslav Yurkov
2020-10-01 15:16         ` Bruce Ashfield
     [not found]     ` <1639E5FC19B7A570.14692@lists.openembedded.org>
2020-10-01 15:05       ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.