diff options
author | Kevin Hao <kexin.hao@windriver.com> | 2020-12-28 12:58:44 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-01-04 18:08:46 -0800 |
commit | b5a7b58e9de0c44a478f612f5fae9ce0800b88c0 (patch) | |
tree | ef391284e45075ff39278509174b1664d5157d65 | |
parent | 216da5f0313271257fc564fb86445cf9c62d0101 (diff) | |
download | meta-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>
-rw-r--r-- | classes/clang.bbclass | 3 |
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", | |||
40 | TUNE_CCARGS_append_toolchain-clang = "${@bb.utils.contains_any("TUNE_FEATURES", "cortexa72-cortexa35", " -mtune=cortex-a35", "", d)}" | 40 | TUNE_CCARGS_append_toolchain-clang = "${@bb.utils.contains_any("TUNE_FEATURES", "cortexa72-cortexa35", " -mtune=cortex-a35", "", d)}" |
41 | TUNE_CCARGS_append_toolchain-clang = "${@bb.utils.contains_any("TUNE_FEATURES", "cortexa75-cortex-a55 cortexa76-cortex-a55", " -mtune=cortex-a55", "", d)}" | 41 | TUNE_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 | ||
44 | TUNE_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 |
44 | TUNE_CCARGS_append_toolchain-clang_riscv32 = " -mno-relax" | 47 | TUNE_CCARGS_append_toolchain-clang_riscv32 = " -mno-relax" |
45 | TUNE_CCARGS_append_toolchain-clang_riscv64 = " -mno-relax" | 48 | TUNE_CCARGS_append_toolchain-clang_riscv64 = " -mno-relax" |