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:
Khem Raj
2025-07-28 18:49:11 -07:00
committed by Richard Purdie
parent cfa0c48ca3
commit 1d7c3515ca

View File

@@ -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