diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2012-10-02 17:22:00 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-11-26 10:01:22 +0000 |
commit | c5b670e4c9f020ed951d5499a888c50b1d703b62 (patch) | |
tree | d1dae38d451be9df347098ff15a5d2333ca0f73e /meta | |
parent | 9be83df144a1675c8e7c9f0962e7e9e61ff767fd (diff) | |
download | poky-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')
-rw-r--r-- | meta/conf/machine/include/arm/arch-arm.inc | 2 | ||||
-rw-r--r-- | meta/conf/machine/include/arm/arch-armv4.inc | 6 | ||||
-rw-r--r-- | meta/conf/machine/include/arm/arch-armv5-dsp.inc | 12 | ||||
-rw-r--r-- | meta/conf/machine/include/arm/arch-armv5.inc | 14 | ||||
-rw-r--r-- | meta/conf/machine/include/arm/arch-armv6.inc | 10 | ||||
-rw-r--r-- | meta/conf/machine/include/arm/arch-armv7a.inc | 18 |
6 files changed, 53 insertions, 9 deletions
diff --git a/meta/conf/machine/include/arm/arch-arm.inc b/meta/conf/machine/include/arm/arch-arm.inc index da51044093..90b80c4c36 100644 --- a/meta/conf/machine/include/arm/arch-arm.inc +++ b/meta/conf/machine/include/arm/arch-arm.inc | |||
@@ -1,7 +1,7 @@ | |||
1 | 1 | ||
2 | TUNEVALID[bigendian] = "Enable big-endian mode." | 2 | TUNEVALID[bigendian] = "Enable big-endian mode." |
3 | 3 | ||
4 | ARMPKGARCH ??= "arm" | 4 | ARMPKGARCH = "${ARMPKGARCH_tune-${DEFAULTTUNE}}" |
5 | ARMPKGSFX_ENDIAN = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", "b", "", d)}" | 5 | ARMPKGSFX_ENDIAN = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", "b", "", d)}" |
6 | ARMPKGSFX_FPU ??= "" | 6 | ARMPKGSFX_FPU ??= "" |
7 | ARMPKGSFX_DSP ??= "" | 7 | ARMPKGSFX_DSP ??= "" |
diff --git a/meta/conf/machine/include/arm/arch-armv4.inc b/meta/conf/machine/include/arm/arch-armv4.inc index cb747acba6..07e8eec8a7 100644 --- a/meta/conf/machine/include/arm/arch-armv4.inc +++ b/meta/conf/machine/include/arm/arch-armv4.inc | |||
@@ -1,7 +1,5 @@ | |||
1 | DEFAULTTUNE ?= "armv4" | 1 | DEFAULTTUNE ?= "armv4" |
2 | 2 | ||
3 | ARMPKGARCH ?= "armv4" | ||
4 | |||
5 | TUNEVALID[armv4] = "Enable instructions for ARMv4" | 3 | TUNEVALID[armv4] = "Enable instructions for ARMv4" |
6 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "armv4", "-march=armv4${ARMPKGSFX_THUMB}", "", d)}" | 4 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "armv4", "-march=armv4${ARMPKGSFX_THUMB}", "", d)}" |
7 | TARGET_LD_KERNEL_ARCH += "${@bb.utils.contains("TUNE_FEATURES", "armv4", "--fix-v4bx", "", d)}" | 5 | TARGET_LD_KERNEL_ARCH += "${@bb.utils.contains("TUNE_FEATURES", "armv4", "--fix-v4bx", "", d)}" |
@@ -12,6 +10,8 @@ require conf/machine/include/arm/feature-arm-thumb.inc | |||
12 | 10 | ||
13 | # Little Endian | 11 | # Little Endian |
14 | AVAILTUNES += "armv4 armv4t" | 12 | AVAILTUNES += "armv4 armv4t" |
13 | ARMPKGARCH_tune-armv4 ?= "armv4" | ||
14 | ARMPKGARCH_tune-armv4t ?= "armv4" | ||
15 | TUNE_FEATURES_tune-armv4 ?= "armv4" | 15 | TUNE_FEATURES_tune-armv4 ?= "armv4" |
16 | TUNE_FEATURES_tune-armv4t ?= "armv4 thumb" | 16 | TUNE_FEATURES_tune-armv4t ?= "armv4 thumb" |
17 | PACKAGE_EXTRA_ARCHS_tune-armv4 = "arm armv4" | 17 | PACKAGE_EXTRA_ARCHS_tune-armv4 = "arm armv4" |
@@ -19,6 +19,8 @@ PACKAGE_EXTRA_ARCHS_tune-armv4t = "${PACKAGE_EXTRA_ARCHS_tune-armv4} armv4t" | |||
19 | 19 | ||
20 | # Big Endian | 20 | # Big Endian |
21 | AVAILTUNES += "armv4b armv4tb" | 21 | AVAILTUNES += "armv4b armv4tb" |
22 | ARMPKGARCH_tune-armv4b ?= "armv4" | ||
23 | ARMPKGARCH_tune-armv4tb ?= "armv4" | ||
22 | TUNE_FEATURES_tune-armv4b ?= "${TUNE_FEATURES_tune-armv4} bigendian" | 24 | TUNE_FEATURES_tune-armv4b ?= "${TUNE_FEATURES_tune-armv4} bigendian" |
23 | TUNE_FEATURES_tune-armv4tb ?= "${TUNE_FEATURES_tune-armv4t} bigendian" | 25 | TUNE_FEATURES_tune-armv4tb ?= "${TUNE_FEATURES_tune-armv4t} bigendian" |
24 | PACKAGE_EXTRA_ARCHS_tune-armv4b = "armeb armv4b" | 26 | PACKAGE_EXTRA_ARCHS_tune-armv4b = "armeb armv4b" |
diff --git a/meta/conf/machine/include/arm/arch-armv5-dsp.inc b/meta/conf/machine/include/arm/arch-armv5-dsp.inc index 0f64562f4b..0ae6411d40 100644 --- a/meta/conf/machine/include/arm/arch-armv5-dsp.inc +++ b/meta/conf/machine/include/arm/arch-armv5-dsp.inc | |||
@@ -5,6 +5,8 @@ require conf/machine/include/arm/arch-armv5.inc | |||
5 | 5 | ||
6 | # Little Endian | 6 | # Little Endian |
7 | AVAILTUNES += "armv5e armv5te" | 7 | AVAILTUNES += "armv5e armv5te" |
8 | ARMPKGARCH_tune-armv5e ?= "armv5" | ||
9 | ARMPKGARCH_tune-armv5te ?= "armv5" | ||
8 | TUNE_FEATURES_tune-armv5e ?= "armv5 dsp" | 10 | TUNE_FEATURES_tune-armv5e ?= "armv5 dsp" |
9 | TUNE_FEATURES_tune-armv5te ?= "armv5 dsp thumb" | 11 | TUNE_FEATURES_tune-armv5te ?= "armv5 dsp thumb" |
10 | PACKAGE_EXTRA_ARCHS_tune-armv5e = "${PACKAGE_EXTRA_ARCHS_tune-armv5} armv5e" | 12 | PACKAGE_EXTRA_ARCHS_tune-armv5e = "${PACKAGE_EXTRA_ARCHS_tune-armv5} armv5e" |
@@ -12,6 +14,10 @@ PACKAGE_EXTRA_ARCHS_tune-armv5te = "${PACKAGE_EXTRA_ARCHS_tune-armv5t} armv5e ar | |||
12 | 14 | ||
13 | # Little Endian + VFP/DSP | 15 | # Little Endian + VFP/DSP |
14 | AVAILTUNES += "armv5e-vfp armv5te-vfp armv5ehf-vfp armv5tehf-vfp" | 16 | AVAILTUNES += "armv5e-vfp armv5te-vfp armv5ehf-vfp armv5tehf-vfp" |
17 | ARMPKGARCH_tune-armv5e-vfp ?= "armv5" | ||
18 | ARMPKGARCH_tune-armv5te-vfp ?= "armv5" | ||
19 | ARMPKGARCH_tune-armv5ehf-vfp ?= "armv5" | ||
20 | ARMPKGARCH_tune-armv5tehf-vfp ?= "armv5" | ||
15 | TUNE_FEATURES_tune-armv5e-vfp ?= "armv5 vfp dsp" | 21 | TUNE_FEATURES_tune-armv5e-vfp ?= "armv5 vfp dsp" |
16 | TUNE_FEATURES_tune-armv5te-vfp ?= "armv5 vfp dsp thumb" | 22 | TUNE_FEATURES_tune-armv5te-vfp ?= "armv5 vfp dsp thumb" |
17 | TUNE_FEATURES_tune-armv5ehf-vfp ?= "${TUNE_FEATURES_tune-armv5e-vfp} callconvention-hard" | 23 | TUNE_FEATURES_tune-armv5ehf-vfp ?= "${TUNE_FEATURES_tune-armv5e-vfp} callconvention-hard" |
@@ -23,6 +29,8 @@ PACKAGE_EXTRA_ARCHS_tune-armv5tehf-vfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5thf-vf | |||
23 | 29 | ||
24 | # Big Endian | 30 | # Big Endian |
25 | AVAILTUNES += "armv5eb armv5teb" | 31 | AVAILTUNES += "armv5eb armv5teb" |
32 | ARMPKGARCH_tune-armv5eb ?= "armv5" | ||
33 | ARMPKGARCH_tune-armv5teb ?= "armv5" | ||
26 | TUNE_FEATURES_tune-armv5eb ?= "${TUNE_FEATURES_tune-armv5e} bigendian" | 34 | TUNE_FEATURES_tune-armv5eb ?= "${TUNE_FEATURES_tune-armv5e} bigendian" |
27 | TUNE_FEATURES_tune-armv5teb ?= "${TUNE_FEATURES_tune-armv5te} bigendian" | 35 | TUNE_FEATURES_tune-armv5teb ?= "${TUNE_FEATURES_tune-armv5te} bigendian" |
28 | PACKAGE_EXTRA_ARCHS_tune-armv5eb = "${PACKAGE_EXTRA_ARCHS_tune-armv5b} armv5eb" | 36 | PACKAGE_EXTRA_ARCHS_tune-armv5eb = "${PACKAGE_EXTRA_ARCHS_tune-armv5b} armv5eb" |
@@ -30,6 +38,10 @@ PACKAGE_EXTRA_ARCHS_tune-armv5teb = "${PACKAGE_EXTRA_ARCHS_tune-armv5tb} armv5eb | |||
30 | 38 | ||
31 | # Big Endian + VFP/DSP | 39 | # Big Endian + VFP/DSP |
32 | AVAILTUNES += "armv5eb-vfp armv5teb-vfp armv5ehfb-vfp armv5tehfb-vfp" | 40 | AVAILTUNES += "armv5eb-vfp armv5teb-vfp armv5ehfb-vfp armv5tehfb-vfp" |
41 | ARMPKGARCH_tune-armv5eb-vfp ?= "armv5" | ||
42 | ARMPKGARCH_tune-armv5teb-vfp ?= "armv5" | ||
43 | ARMPKGARCH_tune-armv5ehfb-vfp ?= "armv5" | ||
44 | ARMPKGARCH_tune-armv5tehfb-vfp ?= "armv5" | ||
33 | TUNE_FEATURES_tune-armv5eb-vfp ?= "${TUNE_FEATURES_tune-armv5e-vfp} bigendian" | 45 | TUNE_FEATURES_tune-armv5eb-vfp ?= "${TUNE_FEATURES_tune-armv5e-vfp} bigendian" |
34 | TUNE_FEATURES_tune-armv5teb-vfp ?= "${TUNE_FEATURES_tune-armv5te-vfp} bigendian" | 46 | TUNE_FEATURES_tune-armv5teb-vfp ?= "${TUNE_FEATURES_tune-armv5te-vfp} bigendian" |
35 | TUNE_FEATURES_tune-armv5ehfb-vfp ?= "${TUNE_FEATURES_tune-armv5eb-vfp} callconvention-hard" | 47 | TUNE_FEATURES_tune-armv5ehfb-vfp ?= "${TUNE_FEATURES_tune-armv5eb-vfp} callconvention-hard" |
diff --git a/meta/conf/machine/include/arm/arch-armv5.inc b/meta/conf/machine/include/arm/arch-armv5.inc index 98780e55c5..5ed56bc659 100644 --- a/meta/conf/machine/include/arm/arch-armv5.inc +++ b/meta/conf/machine/include/arm/arch-armv5.inc | |||
@@ -1,7 +1,5 @@ | |||
1 | DEFAULTTUNE ?= "armv5" | 1 | DEFAULTTUNE ?= "armv5" |
2 | 2 | ||
3 | ARMPKGARCH ?= "armv5" | ||
4 | |||
5 | TUNEVALID[armv5] = "Enable instructions for ARMv5" | 3 | TUNEVALID[armv5] = "Enable instructions for ARMv5" |
6 | TUNECONFLICTS[armv5] = "armv4" | 4 | TUNECONFLICTS[armv5] = "armv4" |
7 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "armv5", "-march=armv5${ARMPKGSFX_THUMB}${ARMPKGSFX_DSP}", "", d)}" | 5 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "armv5", "-march=armv5${ARMPKGSFX_THUMB}${ARMPKGSFX_DSP}", "", d)}" |
@@ -14,6 +12,8 @@ require conf/machine/include/arm/feature-arm-vfp.inc | |||
14 | 12 | ||
15 | # Little Endian | 13 | # Little Endian |
16 | AVAILTUNES += "armv5 armv5t" | 14 | AVAILTUNES += "armv5 armv5t" |
15 | ARMPKGARCH_tune-armv5 ?= "armv5" | ||
16 | ARMPKGARCH_tune-armv5t ?= "armv5" | ||
17 | TUNE_FEATURES_tune-armv5 ?= "armv5" | 17 | TUNE_FEATURES_tune-armv5 ?= "armv5" |
18 | TUNE_FEATURES_tune-armv5t ?= "armv5 thumb" | 18 | TUNE_FEATURES_tune-armv5t ?= "armv5 thumb" |
19 | PACKAGE_EXTRA_ARCHS_tune-armv5 = "${PACKAGE_EXTRA_ARCHS_tune-armv4} armv5" | 19 | PACKAGE_EXTRA_ARCHS_tune-armv5 = "${PACKAGE_EXTRA_ARCHS_tune-armv4} armv5" |
@@ -21,6 +21,10 @@ PACKAGE_EXTRA_ARCHS_tune-armv5t = "${PACKAGE_EXTRA_ARCHS_tune-armv4t} armv5 armv | |||
21 | 21 | ||
22 | # Little Endian + VFP/DSP | 22 | # Little Endian + VFP/DSP |
23 | AVAILTUNES += "armv5-vfp armv5t-vfp armv5hf-vfp armv5thf-vfp" | 23 | AVAILTUNES += "armv5-vfp armv5t-vfp armv5hf-vfp armv5thf-vfp" |
24 | ARMPKGARCH_tune-armv5-vfp ?= "armv5" | ||
25 | ARMPKGARCH_tune-armv5t-vfp ?= "armv5" | ||
26 | ARMPKGARCH_tune-armv5hf-vfp ?= "armv5" | ||
27 | ARMPKGARCH_tune-armv5thf-vfp ?= "armv5" | ||
24 | TUNE_FEATURES_tune-armv5-vfp ?= "armv5 vfp" | 28 | TUNE_FEATURES_tune-armv5-vfp ?= "armv5 vfp" |
25 | TUNE_FEATURES_tune-armv5t-vfp ?= "armv5 vfp" | 29 | TUNE_FEATURES_tune-armv5t-vfp ?= "armv5 vfp" |
26 | TUNE_FEATURES_tune-armv5hf-vfp ?= "${TUNE_FEATURES_tune-armv5-vfp} callconvention-hard" | 30 | TUNE_FEATURES_tune-armv5hf-vfp ?= "${TUNE_FEATURES_tune-armv5-vfp} callconvention-hard" |
@@ -33,6 +37,8 @@ PACKAGE_EXTRA_ARCHS_tune-armv5tehf-vfp = "${PACKAGE_EXTRA_ARCHS_tune-armv5thf-vf | |||
33 | 37 | ||
34 | # Big Endian | 38 | # Big Endian |
35 | AVAILTUNES += "armv5b armv5tb" | 39 | AVAILTUNES += "armv5b armv5tb" |
40 | ARMPKGARCH_tune-armv5b ?= "armv5" | ||
41 | ARMPKGARCH_tune-armv5tb ?= "armv5" | ||
36 | TUNE_FEATURES_tune-armv5b ?= "${TUNE_FEATURES_tune-armv5} bigendian" | 42 | TUNE_FEATURES_tune-armv5b ?= "${TUNE_FEATURES_tune-armv5} bigendian" |
37 | TUNE_FEATURES_tune-armv5tb ?= "${TUNE_FEATURES_tune-armv5t} bigendian" | 43 | TUNE_FEATURES_tune-armv5tb ?= "${TUNE_FEATURES_tune-armv5t} bigendian" |
38 | PACKAGE_EXTRA_ARCHS_tune-armv5b = "${PACKAGE_EXTRA_ARCHS_tune-armv4} armv5b" | 44 | PACKAGE_EXTRA_ARCHS_tune-armv5b = "${PACKAGE_EXTRA_ARCHS_tune-armv4} armv5b" |
@@ -40,6 +46,10 @@ PACKAGE_EXTRA_ARCHS_tune-armv5tb = "${PACKAGE_EXTRA_ARCHS_tune-armv4t} armv5b ar | |||
40 | 46 | ||
41 | # Big Endian + VFP/DSP | 47 | # Big Endian + VFP/DSP |
42 | AVAILTUNES += "armv5b-vfp armv5tb-vfp armv5hfb-vfp armv5thfb-vfp" | 48 | AVAILTUNES += "armv5b-vfp armv5tb-vfp armv5hfb-vfp armv5thfb-vfp" |
49 | ARMPKGARCH_tune-armv5b-vfp ?= "armv5" | ||
50 | ARMPKGARCH_tune-armv5tb-vfp ?= "armv5" | ||
51 | ARMPKGARCH_tune-armv5hfb-vfp ?= "armv5" | ||
52 | ARMPKGARCH_tune-armv5thfb-vfp ?= "armv5" | ||
43 | TUNE_FEATURES_tune-armv5b-vfp ?= "${TUNE_FEATURES_tune-armv5-vfp} bigendian" | 53 | TUNE_FEATURES_tune-armv5b-vfp ?= "${TUNE_FEATURES_tune-armv5-vfp} bigendian" |
44 | TUNE_FEATURES_tune-armv5tb-vfp ?= "${TUNE_FEATURES_tune-armv5t-vfp} bigendian" | 54 | TUNE_FEATURES_tune-armv5tb-vfp ?= "${TUNE_FEATURES_tune-armv5t-vfp} bigendian" |
45 | TUNE_FEATURES_tune-armv5hfb-vfp ?= "${TUNE_FEATURES_tune-armv5b-vfp} callconvention-hard" | 55 | TUNE_FEATURES_tune-armv5hfb-vfp ?= "${TUNE_FEATURES_tune-armv5b-vfp} callconvention-hard" |
diff --git a/meta/conf/machine/include/arm/arch-armv6.inc b/meta/conf/machine/include/arm/arch-armv6.inc index f0fee93d3f..451a008e3e 100644 --- a/meta/conf/machine/include/arm/arch-armv6.inc +++ b/meta/conf/machine/include/arm/arch-armv6.inc | |||
@@ -1,7 +1,5 @@ | |||
1 | DEFAULTTUNE ?= "armv6" | 1 | DEFAULTTUNE ?= "armv6" |
2 | 2 | ||
3 | ARMPKGARCH ?= "armv6" | ||
4 | |||
5 | TUNEVALID[armv6] = "Enable instructions for ARMv6" | 3 | TUNEVALID[armv6] = "Enable instructions for ARMv6" |
6 | TUNECONFLICTS[armv6] = "armv4 armv5" | 4 | TUNECONFLICTS[armv6] = "armv4 armv5" |
7 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "armv6", "-march=armv6", "", d)}" | 5 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "armv6", "-march=armv6", "", d)}" |
@@ -11,6 +9,10 @@ require conf/machine/include/arm/arch-armv5-dsp.inc | |||
11 | 9 | ||
12 | # Little Endian | 10 | # Little Endian |
13 | AVAILTUNES += "armv6 armv6t armv6hf armv6thf" | 11 | AVAILTUNES += "armv6 armv6t armv6hf armv6thf" |
12 | ARMPKGARCH_tune-armv6 ?= "armv6" | ||
13 | ARMPKGARCH_tune-armv6t ?= "armv6" | ||
14 | ARMPKGARCH_tune-armv6hf ?= "armv6" | ||
15 | ARMPKGARCH_tune-armv6thf ?= "armv6" | ||
14 | TUNE_FEATURES_tune-armv6 ?= "armv6 vfp" | 16 | TUNE_FEATURES_tune-armv6 ?= "armv6 vfp" |
15 | TUNE_FEATURES_tune-armv6t ?= "armv6 vfp thumb" | 17 | TUNE_FEATURES_tune-armv6t ?= "armv6 vfp thumb" |
16 | TUNE_FEATURES_tune-armv6hf ?= "${TUNE_FEATURES_tune-armv6} callconvention-hard" | 18 | TUNE_FEATURES_tune-armv6hf ?= "${TUNE_FEATURES_tune-armv6} callconvention-hard" |
@@ -22,6 +24,10 @@ PACKAGE_EXTRA_ARCHS_tune-armv6thf = "${PACKAGE_EXTRA_ARCHS_tune-armv5tehf-vfp} a | |||
22 | 24 | ||
23 | # Big Endian | 25 | # Big Endian |
24 | AVAILTUNES += "armv6b armv6tb armv6hfb armv6thfb" | 26 | AVAILTUNES += "armv6b armv6tb armv6hfb armv6thfb" |
27 | ARMPKGARCH_tune-armv6b ?= "armv6" | ||
28 | ARMPKGARCH_tune-armv6tb ?= "armv6" | ||
29 | ARMPKGARCH_tune-armv6hfb ?= "armv6" | ||
30 | ARMPKGARCH_tune-armv6thfb ?= "armv6" | ||
25 | TUNE_FEATURES_tune-armv6b ?= "${TUNE_FEATURES_tune-armv6} bigendian" | 31 | TUNE_FEATURES_tune-armv6b ?= "${TUNE_FEATURES_tune-armv6} bigendian" |
26 | TUNE_FEATURES_tune-armv6tb ?= "${TUNE_FEATURES_tune-armv6t} bigendian" | 32 | TUNE_FEATURES_tune-armv6tb ?= "${TUNE_FEATURES_tune-armv6t} bigendian" |
27 | TUNE_FEATURES_tune-armv6hfb ?= "${TUNE_FEATURES_tune-armv6b} callconvention-hard" | 33 | TUNE_FEATURES_tune-armv6hfb ?= "${TUNE_FEATURES_tune-armv6b} callconvention-hard" |
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 @@ | |||
1 | DEFAULTTUNE ?= "armv7a" | 1 | DEFAULTTUNE ?= "armv7a" |
2 | 2 | ||
3 | ARMPKGARCH ?= "armv7a" | ||
4 | |||
5 | TUNEVALID[armv7a] = "Enable instructions for ARMv7-a" | 3 | TUNEVALID[armv7a] = "Enable instructions for ARMv7-a" |
6 | TUNECONFLICTS[armv7a] = "armv4 armv5 armv6 armv7" | 4 | TUNECONFLICTS[armv7a] = "armv4 armv5 armv6 armv7" |
7 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "armv7a", "-march=armv7-a", "", d)}" | 5 | TUNE_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 |
14 | AVAILTUNES += "armv7a armv7at armv7a-neon armv7at-neon" | 12 | AVAILTUNES += "armv7a armv7at armv7a-neon armv7at-neon" |
13 | ARMPKGARCH_tune-armv7a ?= "armv7a" | ||
14 | ARMPKGARCH_tune-armv7at ?= "armv7a" | ||
15 | ARMPKGARCH_tune-armv7a-neon?= "armv7a" | ||
16 | ARMPKGARCH_tune-armv7at-neon ?= "armv7a" | ||
15 | TUNE_FEATURES_tune-armv7a ?= "armv7a vfp" | 17 | TUNE_FEATURES_tune-armv7a ?= "armv7a vfp" |
16 | TUNE_FEATURES_tune-armv7at ?= "armv7a vfp thumb" | 18 | TUNE_FEATURES_tune-armv7at ?= "armv7a vfp thumb" |
17 | TUNE_FEATURES_tune-armv7a-neon ?= "armv7a vfp neon" | 19 | TUNE_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 |
25 | AVAILTUNES += "armv7ahf armv7athf armv7ahf-neon armv7athf-neon" | 27 | AVAILTUNES += "armv7ahf armv7athf armv7ahf-neon armv7athf-neon" |
28 | ARMPKGARCH_tune-armv7ahf ?= "armv7a" | ||
29 | ARMPKGARCH_tune-armv7athf ?= "armv7a" | ||
30 | ARMPKGARCH_tune-armv7ahf-neon?= "armv7a" | ||
31 | ARMPKGARCH_tune-armv7athf-neon ?= "armv7a" | ||
26 | TUNE_FEATURES_tune-armv7ahf ?= "${TUNE_FEATURES_tune-armv7a} callconvention-hard" | 32 | TUNE_FEATURES_tune-armv7ahf ?= "${TUNE_FEATURES_tune-armv7a} callconvention-hard" |
27 | TUNE_FEATURES_tune-armv7athf ?= "${TUNE_FEATURES_tune-armv7at} callconvention-hard" | 33 | TUNE_FEATURES_tune-armv7athf ?= "${TUNE_FEATURES_tune-armv7at} callconvention-hard" |
28 | TUNE_FEATURES_tune-armv7ahf-neon ?= "${TUNE_FEATURES_tune-armv7a-neon} callconvention-hard" | 34 | TUNE_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 |
36 | AVAILTUNES += "armv7ab armv7atb armv7ab-neon armv7atb-neon" | 42 | AVAILTUNES += "armv7ab armv7atb armv7ab-neon armv7atb-neon" |
43 | ARMPKGARCH_tune-armv7ab ?= "armv7a" | ||
44 | ARMPKGARCH_tune-armv7atb ?= "armv7a" | ||
45 | ARMPKGARCH_tune-armv7ab-neon?= "armv7a" | ||
46 | ARMPKGARCH_tune-armv7atb-neon ?= "armv7a" | ||
37 | TUNE_FEATURES_tune-armv7ab ?= "${TUNE_FEATURES_tune-armv7a} bigendian" | 47 | TUNE_FEATURES_tune-armv7ab ?= "${TUNE_FEATURES_tune-armv7a} bigendian" |
38 | TUNE_FEATURES_tune-armv7atb ?= "${TUNE_FEATURES_tune-armv7at} bigendian" | 48 | TUNE_FEATURES_tune-armv7atb ?= "${TUNE_FEATURES_tune-armv7at} bigendian" |
39 | TUNE_FEATURES_tune-armv7ab-neon ?= "${TUNE_FEATURES_tune-armv7a-neon} bigendian" | 49 | TUNE_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 |
47 | AVAILTUNES += "armv7ahfb armv7athfb armv7ahfb-neon armv7athfb-neon" | 57 | AVAILTUNES += "armv7ahfb armv7athfb armv7ahfb-neon armv7athfb-neon" |
58 | ARMPKGARCH_tune-armv7ahfb ?= "armv7a" | ||
59 | ARMPKGARCH_tune-armv7athfb ?= "armv7a" | ||
60 | ARMPKGARCH_tune-armv7ahfb-neon?= "armv7a" | ||
61 | ARMPKGARCH_tune-armv7athfb-neon ?= "armv7a" | ||
48 | TUNE_FEATURES_tune-armv7ahfb ?= "${TUNE_FEATURES_tune-armv7ab} callconvention-hard" | 62 | TUNE_FEATURES_tune-armv7ahfb ?= "${TUNE_FEATURES_tune-armv7ab} callconvention-hard" |
49 | TUNE_FEATURES_tune-armv7athfb ?= "${TUNE_FEATURES_tune-armv7atb} callconvention-hard" | 63 | TUNE_FEATURES_tune-armv7athfb ?= "${TUNE_FEATURES_tune-armv7atb} callconvention-hard" |
50 | TUNE_FEATURES_tune-armv7ahfb-neon ?= "${TUNE_FEATURES_tune-armv7ab-neon} callconvention-hard" | 64 | TUNE_FEATURES_tune-armv7ahfb-neon ?= "${TUNE_FEATURES_tune-armv7ab-neon} callconvention-hard" |