summaryrefslogtreecommitdiffstats
path: root/recipes-core/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-05-10 19:28:58 -0700
committerKhem Raj <raj.khem@gmail.com>2016-05-10 19:28:58 -0700
commit8a8d7388843ea4e16796459d7a4e60201ce92b3b (patch)
treef6d455f9ebc6adb1936113c4d0cd70775f0aab39 /recipes-core/meta
parentf9c60c776a55df7a673ff6dddff1bc1b79147447 (diff)
downloadmeta-clang-8a8d7388843ea4e16796459d7a4e60201ce92b3b.tar.gz
meta-environment: Remove cmdline options unknown to clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-core/meta')
-rw-r--r--recipes-core/meta/meta-environment.bbappend7
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-core/meta/meta-environment.bbappend b/recipes-core/meta/meta-environment.bbappend
index 3149492..72d9807 100644
--- a/recipes-core/meta/meta-environment.bbappend
+++ b/recipes-core/meta/meta-environment.bbappend
@@ -2,6 +2,13 @@ export TARGET_CLANGCC_ARCH = "${TARGET_CC_ARCH}"
2TARGET_CLANGCC_ARCH_remove = "-mthumb-interwork" 2TARGET_CLANGCC_ARCH_remove = "-mthumb-interwork"
3TARGET_CLANGCC_ARCH_remove = "-mmusl" 3TARGET_CLANGCC_ARCH_remove = "-mmusl"
4TARGET_CLANGCC_ARCH_remove = "-muclibc" 4TARGET_CLANGCC_ARCH_remove = "-muclibc"
5TARGET_CLANGCC_ARCH_remove = "-march=armv7ve"
6TARGET_CLANGCC_ARCH_append_toolchain-clang = "${@bb.utils.contains("TUNE_FEATURES", "armv7ve", " -march=armv7a", "", d)}"
7TARGET_CLANGCC_ARCH_remove_toolchain-clang = "-meb"
8TARGET_CLANGCC_ARCH_remove_toolchain-clang = "-mel"
9TARGET_CLANGCC_ARCH_append_toolchain-clang = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -mbig-endian", " -mlittle-endian", d)}"
10TARGET_CLANGCC_ARCH_remove_toolchain-clang_powerpc = "-mhard-float"
11TARGET_CLANGCC_ARCH_remove_toolchain-clang_powerpc = "-mno-spe"
5 12
6create_sdk_files_append() { 13create_sdk_files_append() {
7 script=${SDK_OUTPUT}/${SDKPATH}/environment-setup-${REAL_MULTIMACH_TARGET_SYS} 14 script=${SDK_OUTPUT}/${SDKPATH}/environment-setup-${REAL_MULTIMACH_TARGET_SYS}