[oe-commits] [openembedded-core] 39/39: cross-canadian.bbclass: override TARGET_* flags

git at git.openembedded.org git at git.openembedded.org
Thu Apr 6 23:52:19 UTC 2017


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

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

commit 0bf66bc21e80f31938c1b6eff984add665e4b59c
Author: Ming Liu <peter.x.liu at external.atlascopco.com>
AuthorDate: Thu Apr 6 14:09:44 2017 +0200

    cross-canadian.bbclass: override TARGET_* flags
    
    Some TARGET_* flags are being exported in bitbake.conf currently, so
    they are impacting all the tasks of a cross-canadian recipe even they
    are not in use at all.
    
    This can lead a lot of churn when the cross-canadian sysroot are shared
    by machines while they have defined different TARGET_* flags.
    
    Fix it by overriding with BUILDSDK_* flags.
    
    Signed-off-by: Ming Liu <peter.x.liu at external.atlascopco.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/cross-canadian.bbclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass
index 3120f46..49388d4 100644
--- a/meta/classes/cross-canadian.bbclass
+++ b/meta/classes/cross-canadian.bbclass
@@ -115,6 +115,11 @@ HOST_CC_ARCH = "${SDK_CC_ARCH}"
 HOST_LD_ARCH = "${SDK_LD_ARCH}"
 HOST_AS_ARCH = "${SDK_AS_ARCH}"
 
+TARGET_CPPFLAGS = "${BUILDSDK_CPPFLAGS}"
+TARGET_CFLAGS = "${BUILDSDK_CFLAGS}"
+TARGET_CXXFLAGS = "${BUILDSDK_CXXFLAGS}"
+TARGET_LDFLAGS = "${BUILDSDK_LDFLAGS}"
+
 #assign DPKG_ARCH
 DPKG_ARCH = "${@debian_arch_map(d.getVar('SDK_ARCH'), '')}"
 

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


More information about the Openembedded-commits mailing list