From 4717122ea12a0fe5b6f963c092979e653188ff7f Mon Sep 17 00:00:00 2001 From: Ruiqiang Hao Date: Thu, 4 Jul 2024 12:36:56 +0800 Subject: [PATCH] clang.bbclass: remove mcpu option with qualifiers for the octeontx2 core Currently, only the '-mcpu=octeontx2' option is removed, and any -mcpu parameters with qualifiers (such as +crc+crypto) are not removed, e.g., '-mcpu=octeontx2+crypto'. Remove these mcpu parameters with qualifiers by using '-mcpu=octeontx2${TUNE_CCARGS_MARCH_OPTS}'. Signed-off-by: Ruiqiang Hao --- classes/clang.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/clang.bbclass b/classes/clang.bbclass index d5fa67ab..304a78d2 100644 --- a/classes/clang.bbclass +++ b/classes/clang.bbclass @@ -56,7 +56,7 @@ TUNE_CCARGS:append:toolchain-clang = "${@bb.utils.contains_any("TUNE_FEATURES", TUNE_CCARGS_MARCH_OPTS:append:toolchain-clang = "${@bb.utils.contains_any("DEFAULTTUNE", "cortexa72 cortexa53", "+nocrypto", "", d)}" # Clang does not support octeontx2 processor -TUNE_CCARGS:remove:toolchain-clang = "-mcpu=octeontx2" +TUNE_CCARGS:remove:toolchain-clang = "-mcpu=octeontx2${TUNE_CCARGS_MARCH_OPTS}" # Reconcile some ppc anamolies TUNE_CCARGS:remove:toolchain-clang:powerpc = "-mhard-float -mno-spe"