[oe-commits] [openembedded-core] branch rocko updated: module-base.bbclass: fix out-of-tree module builds with custom EXTRA_OEMAKE

git at git.openembedded.org git at git.openembedded.org
Wed Aug 29 16:16:19 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch rocko
in repository openembedded-core.

The following commit(s) were added to refs/heads/rocko by this push:
     new eb3eaa6  module-base.bbclass: fix out-of-tree module builds with custom EXTRA_OEMAKE
eb3eaa6 is described below

commit eb3eaa6970bb8c3647187593df23e2784dd26935
Author: Denys Dmytriyenko <denys at ti.com>
AuthorDate: Wed Aug 15 21:22:27 2018 -0400

    module-base.bbclass: fix out-of-tree module builds with custom EXTRA_OEMAKE
    
    Commit d2aa88a6a92985f21414fceea2dc0facbf7f8779 was meant to backport build
    dependencies on bc-native and openssl-native, but it also changed execution
    of do_make_scripts() from calling make directly to using oe_runmake. That
    change was made in master/sumo as part of a separate make-mod-scripts recipe.
    
    Unfortunately, that doesn't work here in rocko in the context of module-base
    class, as it gets executed inside out-of-tree module environment. Quite often
    those out-of-tree modules provide own Makefile with custom EXTRA_OEMAKE var
    defined. But do_make_scripts() gets executed within STAGING_KERNEL_DIR and
    cannot simply use custom EXTRA_OEMAKE set by a module.
    
    Move back to calling make and passing HOSTCC/HOSTCPP directly w/o using
    EXTRA_OEMAKE.
    
    For more details please see:
    http://lists.openembedded.org/pipermail/openembedded-core/2018-August/154189.html
    
    Signed-off-by: Denys Dmytriyenko <denys at ti.com>
    Cc: Bruce Ashfield <bruce.ashfield at windriver.com>
    Cc: Richard Purdie <richard.purdie at linuxfoundation.org>
    Cc: Anuj Mittal <anuj.mittal at intel.com>
    Cc: Armin Kuster <akuster808 at gmail.com>
    Signed-off-by: Armin Kuster <akuster at mvista.com>
---
 meta/classes/module-base.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/module-base.bbclass b/meta/classes/module-base.bbclass
index 9f3465e..c1fa3ad 100644
--- a/meta/classes/module-base.bbclass
+++ b/meta/classes/module-base.bbclass
@@ -13,7 +13,6 @@ export CROSS_COMPILE = "${TARGET_PREFIX}"
 export KBUILD_OUTPUT = "${STAGING_KERNEL_BUILDDIR}"
 
 DEPENDS += "bc-native"
-EXTRA_OEMAKE += " HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}""
 
 export KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_BUILDDIR}/kernel-abiversion')}"
 KERNEL_OBJECT_SUFFIX = ".ko"
@@ -25,6 +24,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 # be called before do_compile. See module.bbclass for an example.
 do_make_scripts() {
 	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS 
-	oe_runmake CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \
+	make CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \
+	           HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}" \
 	           -C ${STAGING_KERNEL_DIR} O=${STAGING_KERNEL_BUILDDIR} scripts prepare
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list