From b5a7b58e9de0c44a478f612f5fae9ce0800b88c0 Mon Sep 17 00:00:00 2001 From: Kevin Hao Date: Mon, 28 Dec 2020 12:58:44 +0800 Subject: 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 --- classes/clang.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'classes') 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", TUNE_CCARGS_append_toolchain-clang = "${@bb.utils.contains_any("TUNE_FEATURES", "cortexa72-cortexa35", " -mtune=cortex-a35", "", d)}" TUNE_CCARGS_append_toolchain-clang = "${@bb.utils.contains_any("TUNE_FEATURES", "cortexa75-cortex-a55 cortexa76-cortex-a55", " -mtune=cortex-a55", "", d)}" +# Clang does not support octeontx2 processor +TUNE_CCARGS_remove_toolchain-clang = "-mcpu=octeontx2" + # LLD does not yet support relaxation for RISCV e.g. https://reviews.freebsd.org/D25210 TUNE_CCARGS_append_toolchain-clang_riscv32 = " -mno-relax" TUNE_CCARGS_append_toolchain-clang_riscv64 = " -mno-relax" -- cgit v1.2.3-54-g00ecf