This ensures that right CC/LD is used when building the module, which
should be KERNEL_CC and KERNEL_LD, otherwise it starts to use DISTRO
default ld and cc which could be non-gcc and non-bfd liker which is must
for building kernel and modules

Also hides a gold linker failure seen on aarch64

| aarch64-yoe-linux-musl-ld: internal error in set_address, at 
../../gold/output.h:322

Signed-off-by: Khem Raj <[email protected]>
Cc: Fabio Berton <[email protected]>
---
 meta-oe/recipes-core/emlog/kernel-module-emlog_git.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta-oe/recipes-core/emlog/kernel-module-emlog_git.bb 
b/meta-oe/recipes-core/emlog/kernel-module-emlog_git.bb
index 51f7226ebd..a554a4c947 100644
--- a/meta-oe/recipes-core/emlog/kernel-module-emlog_git.bb
+++ b/meta-oe/recipes-core/emlog/kernel-module-emlog_git.bb
@@ -7,6 +7,4 @@ EXTRA_OEMAKE += " \
     KVER=${KERNEL_VERSION} \
 "
 
-do_compile() {
-    oe_runmake modules
-}
+MAKE_TARGETS = "modules"
-- 
2.24.0

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to