Skip to content

Commit

Permalink
clang16.bbclass: remove mcpu option with qualifiers for the octeontx2…
Browse files Browse the repository at this point in the history
… 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 <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
  • Loading branch information
zboszor committed Aug 5, 2024
1 parent 4fde668 commit f725e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/clang16.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ TUNE_CCARGS:append:toolchain-clang16 = "${@bb.utils.contains_any("TUNE_FEATURES"
TUNE_CCARGS_MARCH_OPTS:append:toolchain-clang16 = "${@bb.utils.contains_any("DEFAULTTUNE", "cortexa72 cortexa53", "+nocrypto", "", d)}"

# Clang does not support octeontx2 processor
TUNE_CCARGS:remove:toolchain-clang16 = "-mcpu=octeontx2"
TUNE_CCARGS:remove:toolchain-clang16 = "-mcpu=octeontx2${TUNE_CCARGS_MARCH_OPTS}"

# Reconcile some ppc anamolies
TUNE_CCARGS:remove:toolchain-clang16:powerpc = "-mhard-float -mno-spe"
Expand Down

0 comments on commit f725e59

Please sign in to comment.