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

git at git.openembedded.org git at git.openembedded.org
Thu Apr 6 23:52:17 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 9b77ddc62cc7dc456eb656742067cae2b3c3661d
Author: Ming Liu <peter.x.liu at external.atlascopco.com>
AuthorDate: Thu Apr 6 14:09:42 2017 +0200

    crosssdk.bbclass: override TARGET_* flags
    
    Some TARGET_* flags are being exported in bitbake.conf currently, so
    they are impacting all the tasks of a crosssdk recipe even they are
    not in use at all.
    
    This can lead a lot of churn when the crosssdk sysroot are shared by
    machines while they have defined different TARGET_* flags.
    
    Fix it by overriding with BUILD_* 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/crosssdk.bbclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/classes/crosssdk.bbclass b/meta/classes/crosssdk.bbclass
index a5ffd97..ddb98d2 100644
--- a/meta/classes/crosssdk.bbclass
+++ b/meta/classes/crosssdk.bbclass
@@ -21,8 +21,13 @@ TARGET_PREFIX = "${SDK_PREFIX}"
 TARGET_CC_ARCH = "${SDK_CC_ARCH}"
 TARGET_LD_ARCH = "${SDK_LD_ARCH}"
 TARGET_AS_ARCH = "${SDK_AS_ARCH}"
+TARGET_CPPFLAGS = "${BUILD_CPPFLAGS}"
+TARGET_CFLAGS = "${BUILD_CFLAGS}"
+TARGET_CXXFLAGS = "${BUILD_CXXFLAGS}"
+TARGET_LDFLAGS = "${BUILD_LDFLAGS}"
 TARGET_FPU = ""
 
+
 target_libdir = "${SDKPATHNATIVE}${libdir_nativesdk}"
 target_includedir = "${SDKPATHNATIVE}${includedir_nativesdk}"
 target_base_libdir = "${SDKPATHNATIVE}${base_libdir_nativesdk}"

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


More information about the Openembedded-commits mailing list