diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-05-13 22:03:20 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-15 16:31:44 +0100 |
commit | 030f460b82d793d11a4721c56f9c6f78dc811c96 (patch) | |
tree | 0dc9cf9aad139b0f50deb5da487090ebaa06ace3 /meta/conf/machine | |
parent | 18f718cefdf737eb609876f0f927c4636e32f75b (diff) | |
download | poky-030f460b82d793d11a4721c56f9c6f78dc811c96.tar.gz |
aarch64: Adjust big.LITTLE tune files to use -mcpu
mcpu is more appropriate on aarch64 and generates more optimized code
forr a given SOC, unlike -march/-mtune combination as decribed here [1]
[1] https://community.arm.com/developer/tools-software/tools/b/tools-software-ides-blog/posts/compiler-flags-across-architectures-march-mtune-and-mcpu
(From OE-Core rev: e114c670d1e670397c1c04292688b7550f54027c)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine')
-rw-r--r-- | meta/conf/machine/include/tune-cortexa57-cortexa53.inc | 9 | ||||
-rw-r--r-- | meta/conf/machine/include/tune-cortexa72-cortexa53.inc | 11 | ||||
-rw-r--r-- | meta/conf/machine/include/tune-cortexa73-cortexa53.inc | 11 |
3 files changed, 11 insertions, 20 deletions
diff --git a/meta/conf/machine/include/tune-cortexa57-cortexa53.inc b/meta/conf/machine/include/tune-cortexa57-cortexa53.inc index d05e93f51e..ba4b073852 100644 --- a/meta/conf/machine/include/tune-cortexa57-cortexa53.inc +++ b/meta/conf/machine/include/tune-cortexa57-cortexa53.inc | |||
@@ -1,18 +1,15 @@ | |||
1 | DEFAULTTUNE ?= "cortexa57-cortexa53" | 1 | DEFAULTTUNE ?= "cortexa57-cortexa53" |
2 | require conf/machine/include/arm/arch-armv8a.inc | ||
3 | 2 | ||
4 | TUNEVALID[cortexa57-cortexa53] = "Enable big.LITTLE Cortex-A57.Cortex-A53 specific processor optimizations" | 3 | TUNEVALID[cortexa57-cortexa53] = "Enable big.LITTLE Cortex-A57.Cortex-A53 specific processor optimizations" |
5 | TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" | 4 | TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" |
6 | 5 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa57-cortexa53", " -mcpu=cortex-a57.cortex-a53", "", d)}" | |
7 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "aarch64", " -march=armv8-a", "" ,d)}" | ||
8 | |||
9 | MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa57-cortexa53", "cortexa57-cortexa53:", "" ,d)}" | 6 | MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa57-cortexa53", "cortexa57-cortexa53:", "" ,d)}" |
10 | 7 | ||
11 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa57-cortexa53", " -mtune=cortex-a57.cortex-a53", "", d)}" | 8 | require conf/machine/include/arm/arch-armv8a.inc |
12 | 9 | ||
13 | # Little Endian base configs | 10 | # Little Endian base configs |
14 | AVAILTUNES += "cortexa57-cortexa53" | 11 | AVAILTUNES += "cortexa57-cortexa53" |
15 | ARMPKGARCH_tune-cortexa57-cortexa53 = "cortexa57-cortexa53" | 12 | ARMPKGARCH_tune-cortexa57-cortexa53 = "cortexa57-cortexa53" |
16 | TUNE_FEATURES_tune-cortexa57-cortexa53 = "${TUNE_FEATURES_tune-aarch64} cortexa57-cortexa53" | 13 | TUNE_FEATURES_tune-cortexa57-cortexa53 = "aarch64 cortexa57-cortexa53" |
17 | PACKAGE_EXTRA_ARCHS_tune-cortexa57-cortexa53 = "${PACKAGE_EXTRA_ARCHS_tune-aarch64} cortexa57-cortexa53" | 14 | PACKAGE_EXTRA_ARCHS_tune-cortexa57-cortexa53 = "${PACKAGE_EXTRA_ARCHS_tune-aarch64} cortexa57-cortexa53" |
18 | BASE_LIB_tune-cortexa57-cortexa53 = "lib64" | 15 | BASE_LIB_tune-cortexa57-cortexa53 = "lib64" |
diff --git a/meta/conf/machine/include/tune-cortexa72-cortexa53.inc b/meta/conf/machine/include/tune-cortexa72-cortexa53.inc index f208b98e3e..5c54aa33ea 100644 --- a/meta/conf/machine/include/tune-cortexa72-cortexa53.inc +++ b/meta/conf/machine/include/tune-cortexa72-cortexa53.inc | |||
@@ -1,21 +1,18 @@ | |||
1 | DEFAULTTUNE ?= "cortexa72-cortexa53" | 1 | DEFAULTTUNE ?= "cortexa72-cortexa53" |
2 | 2 | ||
3 | require conf/machine/include/arm/arch-armv8a.inc | ||
4 | |||
5 | TUNEVALID[cortexa72-cortexa53] = "Enable big.LITTLE Cortex-A72.Cortex-A53 specific processor optimizations" | 3 | TUNEVALID[cortexa72-cortexa53] = "Enable big.LITTLE Cortex-A72.Cortex-A53 specific processor optimizations" |
6 | |||
7 | TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" | 4 | TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" |
8 | 5 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa72-cortexa53", " -mcpu=cortex-a72.cortex-a53", "", d)}" | |
9 | MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa72-cortexa53", "cortexa72-cortexa53:", "" ,d)}" | 6 | MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa72-cortexa53", "cortexa72-cortexa53:", "" ,d)}" |
10 | 7 | ||
11 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa72-cortexa53", " -mtune=cortex-a72.cortex-a53", "", d)}" | 8 | require conf/machine/include/arm/arch-armv8a.inc |
12 | 9 | ||
13 | # cortexa72.cortexa53 implies crc support | 10 | # cortexa72.cortexa53 implies crc support |
14 | AVAILTUNES += "cortexa72-cortexa53 cortexa72-cortexa53-crypto" | 11 | AVAILTUNES += "cortexa72-cortexa53 cortexa72-cortexa53-crypto" |
15 | ARMPKGARCH_tune-cortexa72-cortexa53 = "cortexa72-cortexa53" | 12 | ARMPKGARCH_tune-cortexa72-cortexa53 = "cortexa72-cortexa53" |
16 | ARMPKGARCH_tune-cortexa72-cortexa53-crypto = "cortexa72-cortexa53" | 13 | ARMPKGARCH_tune-cortexa72-cortexa53-crypto = "cortexa72-cortexa53" |
17 | TUNE_FEATURES_tune-cortexa72-cortexa53 = "${TUNE_FEATURES_tune-armv8a-crc} cortexa72-cortexa53" | 14 | TUNE_FEATURES_tune-cortexa72-cortexa53 = "aarch64 crc cortexa72-cortexa53" |
18 | TUNE_FEATURES_tune-cortexa72-cortexa53-crypto = "${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa72-cortexa53" | 15 | TUNE_FEATURES_tune-cortexa72-cortexa53-crypto = "aarch64 crc crypto cortexa72-cortexa53" |
19 | PACKAGE_EXTRA_ARCHS_tune-cortexa72-cortexa53 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa72-cortexa53" | 16 | PACKAGE_EXTRA_ARCHS_tune-cortexa72-cortexa53 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa72-cortexa53" |
20 | PACKAGE_EXTRA_ARCHS_tune-cortexa72-cortexa53-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa72-cortexa53 cortexa72-cortexa53-crypto" | 17 | PACKAGE_EXTRA_ARCHS_tune-cortexa72-cortexa53-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa72-cortexa53 cortexa72-cortexa53-crypto" |
21 | BASE_LIB_tune-cortexa72-cortexa53 = "lib64" | 18 | BASE_LIB_tune-cortexa72-cortexa53 = "lib64" |
diff --git a/meta/conf/machine/include/tune-cortexa73-cortexa53.inc b/meta/conf/machine/include/tune-cortexa73-cortexa53.inc index 8df418227f..431d244fe2 100644 --- a/meta/conf/machine/include/tune-cortexa73-cortexa53.inc +++ b/meta/conf/machine/include/tune-cortexa73-cortexa53.inc | |||
@@ -1,21 +1,18 @@ | |||
1 | DEFAULTTUNE ?= "cortexa73-cortexa53" | 1 | DEFAULTTUNE ?= "cortexa73-cortexa53" |
2 | 2 | ||
3 | require conf/machine/include/arm/arch-armv8a.inc | ||
4 | |||
5 | TUNEVALID[cortexa73-cortexa53] = "Enable big.LITTLE Cortex-A73.Cortex-A53 specific processor optimizations" | 3 | TUNEVALID[cortexa73-cortexa53] = "Enable big.LITTLE Cortex-A73.Cortex-A53 specific processor optimizations" |
6 | |||
7 | TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" | 4 | TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" |
8 | |||
9 | MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa53", "cortexa73-cortexa53:", "" ,d)}" | 5 | MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa53", "cortexa73-cortexa53:", "" ,d)}" |
6 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa53", " -mcpu=cortex-a73.cortex-a53", "", d)}" | ||
10 | 7 | ||
11 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa53", " -mtune=cortex-a73.cortex-a53", "", d)}" | 8 | require conf/machine/include/arm/arch-armv8a.inc |
12 | 9 | ||
13 | # cortexa73.cortexa53 implies crc support | 10 | # cortexa73.cortexa53 implies crc support |
14 | AVAILTUNES += "cortexa73-cortexa53 cortexa73-cortexa53-crypto" | 11 | AVAILTUNES += "cortexa73-cortexa53 cortexa73-cortexa53-crypto" |
15 | ARMPKGARCH_tune-cortexa73-cortexa53 = "cortexa73-cortexa53" | 12 | ARMPKGARCH_tune-cortexa73-cortexa53 = "cortexa73-cortexa53" |
16 | ARMPKGARCH_tune-cortexa73-cortexa53-crypto = "cortexa73-cortexa53" | 13 | ARMPKGARCH_tune-cortexa73-cortexa53-crypto = "cortexa73-cortexa53" |
17 | TUNE_FEATURES_tune-cortexa73-cortexa53 = "${TUNE_FEATURES_tune-armv8a-crc} cortexa73-cortexa53" | 14 | TUNE_FEATURES_tune-cortexa73-cortexa53 = "aarch64 crc cortexa73-cortexa53" |
18 | TUNE_FEATURES_tune-cortexa73-cortexa53-crypto = "${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa73-cortexa53" | 15 | TUNE_FEATURES_tune-cortexa73-cortexa53-crypto = "aarch64 crc crypto cortexa73-cortexa53" |
19 | PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa53 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa73-cortexa53" | 16 | PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa53 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa73-cortexa53" |
20 | PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa53-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa73-cortexa53 cortexa73-cortexa53-crypto" | 17 | PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa53-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa73-cortexa53 cortexa73-cortexa53-crypto" |
21 | BASE_LIB_tune-cortexa73-cortexa53 = "lib64" | 18 | BASE_LIB_tune-cortexa73-cortexa53 = "lib64" |