summaryrefslogtreecommitdiffstats
path: root/meta/conf/machine
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-05-13 22:03:20 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-05-15 16:31:44 +0100
commit030f460b82d793d11a4721c56f9c6f78dc811c96 (patch)
tree0dc9cf9aad139b0f50deb5da487090ebaa06ace3 /meta/conf/machine
parent18f718cefdf737eb609876f0f927c4636e32f75b (diff)
downloadpoky-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.inc9
-rw-r--r--meta/conf/machine/include/tune-cortexa72-cortexa53.inc11
-rw-r--r--meta/conf/machine/include/tune-cortexa73-cortexa53.inc11
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 @@
1DEFAULTTUNE ?= "cortexa57-cortexa53" 1DEFAULTTUNE ?= "cortexa57-cortexa53"
2require conf/machine/include/arm/arch-armv8a.inc
3 2
4TUNEVALID[cortexa57-cortexa53] = "Enable big.LITTLE Cortex-A57.Cortex-A53 specific processor optimizations" 3TUNEVALID[cortexa57-cortexa53] = "Enable big.LITTLE Cortex-A57.Cortex-A53 specific processor optimizations"
5TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" 4TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a"
6 5TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa57-cortexa53", " -mcpu=cortex-a57.cortex-a53", "", d)}"
7TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "aarch64", " -march=armv8-a", "" ,d)}"
8
9MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa57-cortexa53", "cortexa57-cortexa53:", "" ,d)}" 6MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa57-cortexa53", "cortexa57-cortexa53:", "" ,d)}"
10 7
11TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa57-cortexa53", " -mtune=cortex-a57.cortex-a53", "", d)}" 8require conf/machine/include/arm/arch-armv8a.inc
12 9
13# Little Endian base configs 10# Little Endian base configs
14AVAILTUNES += "cortexa57-cortexa53" 11AVAILTUNES += "cortexa57-cortexa53"
15ARMPKGARCH_tune-cortexa57-cortexa53 = "cortexa57-cortexa53" 12ARMPKGARCH_tune-cortexa57-cortexa53 = "cortexa57-cortexa53"
16TUNE_FEATURES_tune-cortexa57-cortexa53 = "${TUNE_FEATURES_tune-aarch64} cortexa57-cortexa53" 13TUNE_FEATURES_tune-cortexa57-cortexa53 = "aarch64 cortexa57-cortexa53"
17PACKAGE_EXTRA_ARCHS_tune-cortexa57-cortexa53 = "${PACKAGE_EXTRA_ARCHS_tune-aarch64} cortexa57-cortexa53" 14PACKAGE_EXTRA_ARCHS_tune-cortexa57-cortexa53 = "${PACKAGE_EXTRA_ARCHS_tune-aarch64} cortexa57-cortexa53"
18BASE_LIB_tune-cortexa57-cortexa53 = "lib64" 15BASE_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 @@
1DEFAULTTUNE ?= "cortexa72-cortexa53" 1DEFAULTTUNE ?= "cortexa72-cortexa53"
2 2
3require conf/machine/include/arm/arch-armv8a.inc
4
5TUNEVALID[cortexa72-cortexa53] = "Enable big.LITTLE Cortex-A72.Cortex-A53 specific processor optimizations" 3TUNEVALID[cortexa72-cortexa53] = "Enable big.LITTLE Cortex-A72.Cortex-A53 specific processor optimizations"
6
7TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" 4TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a"
8 5TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa72-cortexa53", " -mcpu=cortex-a72.cortex-a53", "", d)}"
9MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa72-cortexa53", "cortexa72-cortexa53:", "" ,d)}" 6MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa72-cortexa53", "cortexa72-cortexa53:", "" ,d)}"
10 7
11TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa72-cortexa53", " -mtune=cortex-a72.cortex-a53", "", d)}" 8require conf/machine/include/arm/arch-armv8a.inc
12 9
13# cortexa72.cortexa53 implies crc support 10# cortexa72.cortexa53 implies crc support
14AVAILTUNES += "cortexa72-cortexa53 cortexa72-cortexa53-crypto" 11AVAILTUNES += "cortexa72-cortexa53 cortexa72-cortexa53-crypto"
15ARMPKGARCH_tune-cortexa72-cortexa53 = "cortexa72-cortexa53" 12ARMPKGARCH_tune-cortexa72-cortexa53 = "cortexa72-cortexa53"
16ARMPKGARCH_tune-cortexa72-cortexa53-crypto = "cortexa72-cortexa53" 13ARMPKGARCH_tune-cortexa72-cortexa53-crypto = "cortexa72-cortexa53"
17TUNE_FEATURES_tune-cortexa72-cortexa53 = "${TUNE_FEATURES_tune-armv8a-crc} cortexa72-cortexa53" 14TUNE_FEATURES_tune-cortexa72-cortexa53 = "aarch64 crc cortexa72-cortexa53"
18TUNE_FEATURES_tune-cortexa72-cortexa53-crypto = "${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa72-cortexa53" 15TUNE_FEATURES_tune-cortexa72-cortexa53-crypto = "aarch64 crc crypto cortexa72-cortexa53"
19PACKAGE_EXTRA_ARCHS_tune-cortexa72-cortexa53 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa72-cortexa53" 16PACKAGE_EXTRA_ARCHS_tune-cortexa72-cortexa53 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa72-cortexa53"
20PACKAGE_EXTRA_ARCHS_tune-cortexa72-cortexa53-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa72-cortexa53 cortexa72-cortexa53-crypto" 17PACKAGE_EXTRA_ARCHS_tune-cortexa72-cortexa53-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa72-cortexa53 cortexa72-cortexa53-crypto"
21BASE_LIB_tune-cortexa72-cortexa53 = "lib64" 18BASE_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 @@
1DEFAULTTUNE ?= "cortexa73-cortexa53" 1DEFAULTTUNE ?= "cortexa73-cortexa53"
2 2
3require conf/machine/include/arm/arch-armv8a.inc
4
5TUNEVALID[cortexa73-cortexa53] = "Enable big.LITTLE Cortex-A73.Cortex-A53 specific processor optimizations" 3TUNEVALID[cortexa73-cortexa53] = "Enable big.LITTLE Cortex-A73.Cortex-A53 specific processor optimizations"
6
7TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" 4TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a"
8
9MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa53", "cortexa73-cortexa53:", "" ,d)}" 5MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa53", "cortexa73-cortexa53:", "" ,d)}"
6TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa53", " -mcpu=cortex-a73.cortex-a53", "", d)}"
10 7
11TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa53", " -mtune=cortex-a73.cortex-a53", "", d)}" 8require conf/machine/include/arm/arch-armv8a.inc
12 9
13# cortexa73.cortexa53 implies crc support 10# cortexa73.cortexa53 implies crc support
14AVAILTUNES += "cortexa73-cortexa53 cortexa73-cortexa53-crypto" 11AVAILTUNES += "cortexa73-cortexa53 cortexa73-cortexa53-crypto"
15ARMPKGARCH_tune-cortexa73-cortexa53 = "cortexa73-cortexa53" 12ARMPKGARCH_tune-cortexa73-cortexa53 = "cortexa73-cortexa53"
16ARMPKGARCH_tune-cortexa73-cortexa53-crypto = "cortexa73-cortexa53" 13ARMPKGARCH_tune-cortexa73-cortexa53-crypto = "cortexa73-cortexa53"
17TUNE_FEATURES_tune-cortexa73-cortexa53 = "${TUNE_FEATURES_tune-armv8a-crc} cortexa73-cortexa53" 14TUNE_FEATURES_tune-cortexa73-cortexa53 = "aarch64 crc cortexa73-cortexa53"
18TUNE_FEATURES_tune-cortexa73-cortexa53-crypto = "${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa73-cortexa53" 15TUNE_FEATURES_tune-cortexa73-cortexa53-crypto = "aarch64 crc crypto cortexa73-cortexa53"
19PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa53 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa73-cortexa53" 16PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa53 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa73-cortexa53"
20PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa53-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa73-cortexa53 cortexa73-cortexa53-crypto" 17PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa53-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa73-cortexa53 cortexa73-cortexa53-crypto"
21BASE_LIB_tune-cortexa73-cortexa53 = "lib64" 18BASE_LIB_tune-cortexa73-cortexa53 = "lib64"