summaryrefslogtreecommitdiffstats
path: root/meta/conf/machine/include/arm/arch-armv7a.inc
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2012-10-02 17:22:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-26 10:01:22 +0000
commitc5b670e4c9f020ed951d5499a888c50b1d703b62 (patch)
treed1dae38d451be9df347098ff15a5d2333ca0f73e /meta/conf/machine/include/arm/arch-armv7a.inc
parent9be83df144a1675c8e7c9f0962e7e9e61ff767fd (diff)
downloadpoky-c5b670e4c9f020ed951d5499a888c50b1d703b62.tar.gz
arm/arch-arm*: define ARMPKGARCH_tune-* for default tunes
* tune-foo is not valid override, for it to work I had to add ARMPKGARCH = "${ARMPKGARCH_tune-${DEFAULTTUNE}}" but that doesn't work without value defined for every supported DEFAULTTUNE value, otherwise it's expanded like this TUNE_PKGARCH (${ARMPKGARCH_tune-armv5te}te). (From OE-Core rev: 31e4f2dee990ee7f5d7491b65565e71d7d580209) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine/include/arm/arch-armv7a.inc')
-rw-r--r--meta/conf/machine/include/arm/arch-armv7a.inc18
1 files changed, 16 insertions, 2 deletions
diff --git a/meta/conf/machine/include/arm/arch-armv7a.inc b/meta/conf/machine/include/arm/arch-armv7a.inc
index 8d6ec25050..d4a1d02591 100644
--- a/meta/conf/machine/include/arm/arch-armv7a.inc
+++ b/meta/conf/machine/include/arm/arch-armv7a.inc
@@ -1,7 +1,5 @@
1DEFAULTTUNE ?= "armv7a" 1DEFAULTTUNE ?= "armv7a"
2 2
3ARMPKGARCH ?= "armv7a"
4
5TUNEVALID[armv7a] = "Enable instructions for ARMv7-a" 3TUNEVALID[armv7a] = "Enable instructions for ARMv7-a"
6TUNECONFLICTS[armv7a] = "armv4 armv5 armv6 armv7" 4TUNECONFLICTS[armv7a] = "armv4 armv5 armv6 armv7"
7TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "armv7a", "-march=armv7-a", "", d)}" 5TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "armv7a", "-march=armv7-a", "", d)}"
@@ -12,6 +10,10 @@ require conf/machine/include/arm/feature-arm-neon.inc
12 10
13# Little Endian base configs 11# Little Endian base configs
14AVAILTUNES += "armv7a armv7at armv7a-neon armv7at-neon" 12AVAILTUNES += "armv7a armv7at armv7a-neon armv7at-neon"
13ARMPKGARCH_tune-armv7a ?= "armv7a"
14ARMPKGARCH_tune-armv7at ?= "armv7a"
15ARMPKGARCH_tune-armv7a-neon?= "armv7a"
16ARMPKGARCH_tune-armv7at-neon ?= "armv7a"
15TUNE_FEATURES_tune-armv7a ?= "armv7a vfp" 17TUNE_FEATURES_tune-armv7a ?= "armv7a vfp"
16TUNE_FEATURES_tune-armv7at ?= "armv7a vfp thumb" 18TUNE_FEATURES_tune-armv7at ?= "armv7a vfp thumb"
17TUNE_FEATURES_tune-armv7a-neon ?= "armv7a vfp neon" 19TUNE_FEATURES_tune-armv7a-neon ?= "armv7a vfp neon"
@@ -23,6 +25,10 @@ PACKAGE_EXTRA_ARCHS_tune-armv7at-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7at} arm
23 25
24# VFP Tunes 26# VFP Tunes
25AVAILTUNES += "armv7ahf armv7athf armv7ahf-neon armv7athf-neon" 27AVAILTUNES += "armv7ahf armv7athf armv7ahf-neon armv7athf-neon"
28ARMPKGARCH_tune-armv7ahf ?= "armv7a"
29ARMPKGARCH_tune-armv7athf ?= "armv7a"
30ARMPKGARCH_tune-armv7ahf-neon?= "armv7a"
31ARMPKGARCH_tune-armv7athf-neon ?= "armv7a"
26TUNE_FEATURES_tune-armv7ahf ?= "${TUNE_FEATURES_tune-armv7a} callconvention-hard" 32TUNE_FEATURES_tune-armv7ahf ?= "${TUNE_FEATURES_tune-armv7a} callconvention-hard"
27TUNE_FEATURES_tune-armv7athf ?= "${TUNE_FEATURES_tune-armv7at} callconvention-hard" 33TUNE_FEATURES_tune-armv7athf ?= "${TUNE_FEATURES_tune-armv7at} callconvention-hard"
28TUNE_FEATURES_tune-armv7ahf-neon ?= "${TUNE_FEATURES_tune-armv7a-neon} callconvention-hard" 34TUNE_FEATURES_tune-armv7ahf-neon ?= "${TUNE_FEATURES_tune-armv7a-neon} callconvention-hard"
@@ -34,6 +40,10 @@ PACKAGE_EXTRA_ARCHS_tune-armv7athf-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7athf}
34 40
35# Big Endian 41# Big Endian
36AVAILTUNES += "armv7ab armv7atb armv7ab-neon armv7atb-neon" 42AVAILTUNES += "armv7ab armv7atb armv7ab-neon armv7atb-neon"
43ARMPKGARCH_tune-armv7ab ?= "armv7a"
44ARMPKGARCH_tune-armv7atb ?= "armv7a"
45ARMPKGARCH_tune-armv7ab-neon?= "armv7a"
46ARMPKGARCH_tune-armv7atb-neon ?= "armv7a"
37TUNE_FEATURES_tune-armv7ab ?= "${TUNE_FEATURES_tune-armv7a} bigendian" 47TUNE_FEATURES_tune-armv7ab ?= "${TUNE_FEATURES_tune-armv7a} bigendian"
38TUNE_FEATURES_tune-armv7atb ?= "${TUNE_FEATURES_tune-armv7at} bigendian" 48TUNE_FEATURES_tune-armv7atb ?= "${TUNE_FEATURES_tune-armv7at} bigendian"
39TUNE_FEATURES_tune-armv7ab-neon ?= "${TUNE_FEATURES_tune-armv7a-neon} bigendian" 49TUNE_FEATURES_tune-armv7ab-neon ?= "${TUNE_FEATURES_tune-armv7a-neon} bigendian"
@@ -45,6 +55,10 @@ PACKAGE_EXTRA_ARCHS_tune-armv7atb-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7at} ar
45 55
46# Big Endian + VFP 56# Big Endian + VFP
47AVAILTUNES += "armv7ahfb armv7athfb armv7ahfb-neon armv7athfb-neon" 57AVAILTUNES += "armv7ahfb armv7athfb armv7ahfb-neon armv7athfb-neon"
58ARMPKGARCH_tune-armv7ahfb ?= "armv7a"
59ARMPKGARCH_tune-armv7athfb ?= "armv7a"
60ARMPKGARCH_tune-armv7ahfb-neon?= "armv7a"
61ARMPKGARCH_tune-armv7athfb-neon ?= "armv7a"
48TUNE_FEATURES_tune-armv7ahfb ?= "${TUNE_FEATURES_tune-armv7ab} callconvention-hard" 62TUNE_FEATURES_tune-armv7ahfb ?= "${TUNE_FEATURES_tune-armv7ab} callconvention-hard"
49TUNE_FEATURES_tune-armv7athfb ?= "${TUNE_FEATURES_tune-armv7atb} callconvention-hard" 63TUNE_FEATURES_tune-armv7athfb ?= "${TUNE_FEATURES_tune-armv7atb} callconvention-hard"
50TUNE_FEATURES_tune-armv7ahfb-neon ?= "${TUNE_FEATURES_tune-armv7ab-neon} callconvention-hard" 64TUNE_FEATURES_tune-armv7ahfb-neon ?= "${TUNE_FEATURES_tune-armv7ab-neon} callconvention-hard"