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

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

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

diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass
index 2602153..8757303 100644
--- a/meta/classes/cross.bbclass
+++ b/meta/classes/cross.bbclass
@@ -28,6 +28,11 @@ MULTIMACH_TARGET_SYS = "${BUILD_ARCH}${BUILD_VENDOR}-${BUILD_OS}"
 export PKG_CONFIG_DIR = "${exec_prefix}/lib/pkgconfig"
 export PKG_CONFIG_SYSROOT_DIR = ""
 
+TARGET_CPPFLAGS = "${BUILD_CPPFLAGS}"
+TARGET_CFLAGS = "${BUILD_CFLAGS}"
+TARGET_CXXFLAGS = "${BUILD_CXXFLAGS}"
+TARGET_LDFLAGS = "${BUILD_LDFLAGS}"
+
 CPPFLAGS = "${BUILD_CPPFLAGS}"
 CFLAGS = "${BUILD_CFLAGS}"
 CXXFLAGS = "${BUILD_CFLAGS}"

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


More information about the Openembedded-commits mailing list