mirror of
https://git.yoctoproject.org/poky
synced 2026-05-07 16:59:22 +00:00
machine/arch-armv9: remove crc and sve tunes, they are mandatory
As per the Arm ARM section A2.3.2, FEAT_CRC32 is mandatory in Armv8.1 onwards, so there's no need to have an explicit optional tune for it. SVE (which was a choice here) and SVE2 (which was not) are both optional with v9.0, but GCC's -march=armv9-a defaults to enabling both SVE and SVE2 on the grounds that there are no implementations of Armv9 that don't support SVE2. This means there's no point having an explicit sve feature as it's enabled out of the box. (From OE-Core rev: 28fabebf812cdf8e76eb508115a4b76944f1e729) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
194ffa6fea
commit
2f56aec05c
@@ -1,33 +1,19 @@
|
||||
DEFAULTTUNE ?= "armv9a-crc"
|
||||
DEFAULTTUNE ?= "armv9a"
|
||||
|
||||
TUNEVALID[armv9a] = "Enable instructions for ARMv9-a"
|
||||
TUNE_CCARGS_MARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'armv9a', ' -march=armv9-a', '', d)}"
|
||||
MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv9a', 'armv9a:', '', d)}"
|
||||
|
||||
require conf/machine/include/arm/arch-arm64.inc
|
||||
require conf/machine/include/arm/feature-arm-crc.inc
|
||||
require conf/machine/include/arm/feature-arm-crypto.inc
|
||||
require conf/machine/include/arm/feature-arm-sve.inc
|
||||
|
||||
# Little Endian base configs
|
||||
AVAILTUNES += "armv9a armv9a-crc armv9a-crc-crypto armv9a-crc-crypto-sve armv9a-crypto"
|
||||
ARMPKGARCH:tune-armv9a ?= "armv9a"
|
||||
ARMPKGARCH:tune-armv9a-crc ?= "armv9a"
|
||||
ARMPKGARCH:tune-armv9a-crypto ?= "armv9a"
|
||||
ARMPKGARCH:tune-armv9a-crc-crypto ?= "armv9a"
|
||||
ARMPKGARCH:tune-armv9a-crc-crypto-sve ?= "armv9a"
|
||||
AVAILTUNES += "armv9a armv9a-crypto"
|
||||
ARMPKGARCH:tune-armv9a ?= "armv9a"
|
||||
ARMPKGARCH:tune-armv9a-crypto ?= "armv9a"
|
||||
TUNE_FEATURES:tune-armv9a = "aarch64 armv9a"
|
||||
TUNE_FEATURES:tune-armv9a-crc = "${TUNE_FEATURES:tune-armv9a} crc"
|
||||
TUNE_FEATURES:tune-armv9a-crypto = "${TUNE_FEATURES:tune-armv9a} crypto"
|
||||
TUNE_FEATURES:tune-armv9a-crc-crypto = "${TUNE_FEATURES:tune-armv9a-crc} crypto"
|
||||
TUNE_FEATURES:tune-armv9a-crc-crypto-sve = "${TUNE_FEATURES:tune-armv9a-crc-crypto} sve"
|
||||
PACKAGE_EXTRA_ARCHS:tune-armv9a = "aarch64 armv9a"
|
||||
PACKAGE_EXTRA_ARCHS:tune-armv9a-crc = "${PACKAGE_EXTRA_ARCHS:tune-armv9a} armv9a-crc"
|
||||
PACKAGE_EXTRA_ARCHS:tune-armv9a-crypto = "${PACKAGE_EXTRA_ARCHS:tune-armv9a} armv9a-crypto"
|
||||
PACKAGE_EXTRA_ARCHS:tune-armv9a-crc-crypto = "${PACKAGE_EXTRA_ARCHS:tune-armv9a-crc} armv9a-crypto armv9a-crc-crypto"
|
||||
PACKAGE_EXTRA_ARCHS:tune-armv9a-crc-crypto-sve = "${PACKAGE_EXTRA_ARCHS:tune-armv9a-crc-crypto} armv9a-crc-crypto-sve"
|
||||
BASE_LIB:tune-armv9a = "lib64"
|
||||
BASE_LIB:tune-armv9a-crc = "lib64"
|
||||
BASE_LIB:tune-armv9a-crypto = "lib64"
|
||||
BASE_LIB:tune-armv9a-crc-crypto = "lib64"
|
||||
BASE_LIB:tune-armv9a-crc-crypto-sve = "lib64"
|
||||
|
||||
Reference in New Issue
Block a user