diff options
author | Ross Burton <ross.burton@arm.com> | 2023-12-14 14:55:59 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-21 10:38:29 +0000 |
commit | 2f56aec05c584f094267efad26480d624821019b (patch) | |
tree | ab37327b8c87d8757990b0b44a64b619da2f0f85 /meta | |
parent | 194ffa6fea6e78b7791ad02bc972f5a282758229 (diff) | |
download | poky-2f56aec05c584f094267efad26480d624821019b.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/conf/machine/include/arm/arch-armv9a.inc | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/meta/conf/machine/include/arm/arch-armv9a.inc b/meta/conf/machine/include/arm/arch-armv9a.inc index 6945dea333..e8d7c08a63 100644 --- a/meta/conf/machine/include/arm/arch-armv9a.inc +++ b/meta/conf/machine/include/arm/arch-armv9a.inc | |||
@@ -1,33 +1,19 @@ | |||
1 | DEFAULTTUNE ?= "armv9a-crc" | 1 | DEFAULTTUNE ?= "armv9a" |
2 | 2 | ||
3 | TUNEVALID[armv9a] = "Enable instructions for ARMv9-a" | 3 | TUNEVALID[armv9a] = "Enable instructions for ARMv9-a" |
4 | TUNE_CCARGS_MARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'armv9a', ' -march=armv9-a', '', d)}" | 4 | TUNE_CCARGS_MARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'armv9a', ' -march=armv9-a', '', d)}" |
5 | MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv9a', 'armv9a:', '', d)}" | 5 | MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv9a', 'armv9a:', '', d)}" |
6 | 6 | ||
7 | require conf/machine/include/arm/arch-arm64.inc | 7 | require conf/machine/include/arm/arch-arm64.inc |
8 | require conf/machine/include/arm/feature-arm-crc.inc | ||
9 | require conf/machine/include/arm/feature-arm-crypto.inc | 8 | require conf/machine/include/arm/feature-arm-crypto.inc |
10 | require conf/machine/include/arm/feature-arm-sve.inc | ||
11 | 9 | ||
12 | # Little Endian base configs | 10 | # Little Endian base configs |
13 | AVAILTUNES += "armv9a armv9a-crc armv9a-crc-crypto armv9a-crc-crypto-sve armv9a-crypto" | 11 | AVAILTUNES += "armv9a armv9a-crypto" |
14 | ARMPKGARCH:tune-armv9a ?= "armv9a" | 12 | ARMPKGARCH:tune-armv9a ?= "armv9a" |
15 | ARMPKGARCH:tune-armv9a-crc ?= "armv9a" | 13 | ARMPKGARCH:tune-armv9a-crypto ?= "armv9a" |
16 | ARMPKGARCH:tune-armv9a-crypto ?= "armv9a" | ||
17 | ARMPKGARCH:tune-armv9a-crc-crypto ?= "armv9a" | ||
18 | ARMPKGARCH:tune-armv9a-crc-crypto-sve ?= "armv9a" | ||
19 | TUNE_FEATURES:tune-armv9a = "aarch64 armv9a" | 14 | TUNE_FEATURES:tune-armv9a = "aarch64 armv9a" |
20 | TUNE_FEATURES:tune-armv9a-crc = "${TUNE_FEATURES:tune-armv9a} crc" | ||
21 | TUNE_FEATURES:tune-armv9a-crypto = "${TUNE_FEATURES:tune-armv9a} crypto" | 15 | TUNE_FEATURES:tune-armv9a-crypto = "${TUNE_FEATURES:tune-armv9a} crypto" |
22 | TUNE_FEATURES:tune-armv9a-crc-crypto = "${TUNE_FEATURES:tune-armv9a-crc} crypto" | ||
23 | TUNE_FEATURES:tune-armv9a-crc-crypto-sve = "${TUNE_FEATURES:tune-armv9a-crc-crypto} sve" | ||
24 | PACKAGE_EXTRA_ARCHS:tune-armv9a = "aarch64 armv9a" | 16 | PACKAGE_EXTRA_ARCHS:tune-armv9a = "aarch64 armv9a" |
25 | PACKAGE_EXTRA_ARCHS:tune-armv9a-crc = "${PACKAGE_EXTRA_ARCHS:tune-armv9a} armv9a-crc" | ||
26 | PACKAGE_EXTRA_ARCHS:tune-armv9a-crypto = "${PACKAGE_EXTRA_ARCHS:tune-armv9a} armv9a-crypto" | 17 | PACKAGE_EXTRA_ARCHS:tune-armv9a-crypto = "${PACKAGE_EXTRA_ARCHS:tune-armv9a} armv9a-crypto" |
27 | PACKAGE_EXTRA_ARCHS:tune-armv9a-crc-crypto = "${PACKAGE_EXTRA_ARCHS:tune-armv9a-crc} armv9a-crypto armv9a-crc-crypto" | ||
28 | PACKAGE_EXTRA_ARCHS:tune-armv9a-crc-crypto-sve = "${PACKAGE_EXTRA_ARCHS:tune-armv9a-crc-crypto} armv9a-crc-crypto-sve" | ||
29 | BASE_LIB:tune-armv9a = "lib64" | 18 | BASE_LIB:tune-armv9a = "lib64" |
30 | BASE_LIB:tune-armv9a-crc = "lib64" | ||
31 | BASE_LIB:tune-armv9a-crypto = "lib64" | 19 | BASE_LIB:tune-armv9a-crypto = "lib64" |
32 | BASE_LIB:tune-armv9a-crc-crypto = "lib64" | ||
33 | BASE_LIB:tune-armv9a-crc-crypto-sve = "lib64" | ||