summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorKevin Hao <kexin.hao@windriver.com>2020-12-28 12:58:44 +0800
committerKhem Raj <raj.khem@gmail.com>2021-01-04 18:08:46 -0800
commitb5a7b58e9de0c44a478f612f5fae9ce0800b88c0 (patch)
treeef391284e45075ff39278509174b1664d5157d65 /classes
parent216da5f0313271257fc564fb86445cf9c62d0101 (diff)
downloadmeta-clang-b5a7b58e9de0c44a478f612f5fae9ce0800b88c0.tar.gz
clang.bbclass: Remove -mcpu option for the octeontx2 core
The tune file for octeontx2 has been added into oe-core by commit ad4f82742c6f ("tune-octeontx2.inc: Add tune for Marvell OCTEON TX2 core"). But the clang doesn't support this core yet. So remove the -mcpu from the TUNE_CCARGS to fix the build failure for the octeontx2 core. Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/clang.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/clang.bbclass b/classes/clang.bbclass
index 2d1fa2d..5f9d0b8 100644
--- a/classes/clang.bbclass
+++ b/classes/clang.bbclass
@@ -40,6 +40,9 @@ TUNE_CCARGS_append_toolchain-clang = "${@bb.utils.contains_any("TUNE_FEATURES",
40TUNE_CCARGS_append_toolchain-clang = "${@bb.utils.contains_any("TUNE_FEATURES", "cortexa72-cortexa35", " -mtune=cortex-a35", "", d)}" 40TUNE_CCARGS_append_toolchain-clang = "${@bb.utils.contains_any("TUNE_FEATURES", "cortexa72-cortexa35", " -mtune=cortex-a35", "", d)}"
41TUNE_CCARGS_append_toolchain-clang = "${@bb.utils.contains_any("TUNE_FEATURES", "cortexa75-cortex-a55 cortexa76-cortex-a55", " -mtune=cortex-a55", "", d)}" 41TUNE_CCARGS_append_toolchain-clang = "${@bb.utils.contains_any("TUNE_FEATURES", "cortexa75-cortex-a55 cortexa76-cortex-a55", " -mtune=cortex-a55", "", d)}"
42 42
43# Clang does not support octeontx2 processor
44TUNE_CCARGS_remove_toolchain-clang = "-mcpu=octeontx2"
45
43# LLD does not yet support relaxation for RISCV e.g. https://reviews.freebsd.org/D25210 46# LLD does not yet support relaxation for RISCV e.g. https://reviews.freebsd.org/D25210
44TUNE_CCARGS_append_toolchain-clang_riscv32 = " -mno-relax" 47TUNE_CCARGS_append_toolchain-clang_riscv32 = " -mno-relax"
45TUNE_CCARGS_append_toolchain-clang_riscv64 = " -mno-relax" 48TUNE_CCARGS_append_toolchain-clang_riscv64 = " -mno-relax"