diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-07-28 18:49:11 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-31 10:48:35 +0100 |
| commit | 1d7c3515ca6b126a1f438bacb6db8dafaacaaa31 (patch) | |
| tree | c993ba3f903aff99214bd030581a933394dacd09 | |
| parent | cfa0c48ca390a2a7de0666f532a0888b49b93abc (diff) | |
| download | poky-1d7c3515ca6b126a1f438bacb6db8dafaacaaa31.tar.gz | |
tune-octeonx2: Do not use -mcpu=octeontx2 with clang
-mcpu=octeontx2 is not implemented in clang, therefore
replace it with -march option denoting underlying
armv8 architecture revision.
Fixes:
| error: unsupported argument 'octeontx2+crypto' to option '-mcpu='
| error: unknown target CPU 'octeontx2'
(From OE-Core rev: 64df77a396923a119544cc6842eb7b9ba955126c)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc b/meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc index e9d7a59c51..5eed3e5d15 100644 --- a/meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc +++ b/meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc | |||
| @@ -1,7 +1,9 @@ | |||
| 1 | DEFAULTTUNE ?= "octeontx2" | 1 | DEFAULTTUNE ?= "octeontx2" |
| 2 | 2 | ||
| 3 | TUNEVALID[octeontx2] = "Enable Marvell octeontx2 specific processor optimizations" | 3 | TUNEVALID[octeontx2] = "Enable Marvell octeontx2 specific processor optimizations" |
| 4 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'octeontx2', ' -mcpu=octeontx2', '', d)}" | 4 | CPU_TUNE_OCTEONTX2 ?= "-mcpu=octeontx2" |
| 5 | CPU_TUNE_OCTEONTX2:toolchain-clang = "-march=armv8.2-a" | ||
| 6 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'octeontx2', ' ${CPU_TUNE_OCTEONTX2}', '', d)}" | ||
| 5 | 7 | ||
| 6 | require conf/machine/include/arm/arch-armv8-2a.inc | 8 | require conf/machine/include/arm/arch-armv8-2a.inc |
| 7 | 9 | ||
