mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02:00
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>
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
DEFAULTTUNE ?= "octeontx2"
|
||||
|
||||
TUNEVALID[octeontx2] = "Enable Marvell octeontx2 specific processor optimizations"
|
||||
TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'octeontx2', ' -mcpu=octeontx2', '', d)}"
|
||||
CPU_TUNE_OCTEONTX2 ?= "-mcpu=octeontx2"
|
||||
CPU_TUNE_OCTEONTX2:toolchain-clang = "-march=armv8.2-a"
|
||||
TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'octeontx2', ' ${CPU_TUNE_OCTEONTX2}', '', d)}"
|
||||
|
||||
require conf/machine/include/arm/arch-armv8-2a.inc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user