diff options
author | Carlos Alberto Lopez Perez <clopez@igalia.com> | 2018-01-15 21:02:55 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-18 12:50:37 +0000 |
commit | d39e961192a750d50ef5dc43930dc1f8b3df0148 (patch) | |
tree | 17768155299402698a09dd91b8ddba68553551bf /meta/conf | |
parent | 72544a4ca8bb151612bc1f297151bf349c6a2ddc (diff) | |
download | poky-d39e961192a750d50ef5dc43930dc1f8b3df0148.tar.gz |
tune-i686: Add new tune for better support of 686-class CPUs.
There isn't currently any tune available for i686 x86 optimizations.
The tune for i586 doesn't enable i686 specific optimizations, and the
one for core2 enables things that won't work on a i686 CPU (like SSE3).
Make the tune for core2 inherits from this one and move there the
setting of X86ARCH32.
(From OE-Core rev: c08f76ba0654e43074b6b964f728765918dbfb09)
Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/machine/include/tune-core2.inc | 7 | ||||
-rw-r--r-- | meta/conf/machine/include/tune-i686.inc | 27 |
2 files changed, 29 insertions, 5 deletions
diff --git a/meta/conf/machine/include/tune-core2.inc b/meta/conf/machine/include/tune-core2.inc index f4ba43fbfd..6a03466650 100644 --- a/meta/conf/machine/include/tune-core2.inc +++ b/meta/conf/machine/include/tune-core2.inc | |||
@@ -8,11 +8,8 @@ | |||
8 | # | 8 | # |
9 | DEFAULTTUNE ?= "core2-32" | 9 | DEFAULTTUNE ?= "core2-32" |
10 | 10 | ||
11 | # Set x86 target arch to i686, so that glibc enables SSE optimised memcpy, etc. | ||
12 | X86ARCH32 ?= "i686" | ||
13 | |||
14 | # Include the previous tune to pull in PACKAGE_EXTRA_ARCHS | 11 | # Include the previous tune to pull in PACKAGE_EXTRA_ARCHS |
15 | require conf/machine/include/tune-i586.inc | 12 | require conf/machine/include/tune-i686.inc |
16 | 13 | ||
17 | # Extra tune features | 14 | # Extra tune features |
18 | TUNEVALID[core2] = "Enable core2 specific processor optimizations" | 15 | TUNEVALID[core2] = "Enable core2 specific processor optimizations" |
@@ -23,7 +20,7 @@ AVAILTUNES += "core2-32" | |||
23 | TUNE_FEATURES_tune-core2-32 = "${TUNE_FEATURES_tune-x86} core2" | 20 | TUNE_FEATURES_tune-core2-32 = "${TUNE_FEATURES_tune-x86} core2" |
24 | BASE_LIB_tune-core2-32 = "lib" | 21 | BASE_LIB_tune-core2-32 = "lib" |
25 | TUNE_PKGARCH_tune-core2-32 = "core2-32" | 22 | TUNE_PKGARCH_tune-core2-32 = "core2-32" |
26 | PACKAGE_EXTRA_ARCHS_tune-core2-32 = "${PACKAGE_EXTRA_ARCHS_tune-i586} core2-32" | 23 | PACKAGE_EXTRA_ARCHS_tune-core2-32 = "${PACKAGE_EXTRA_ARCHS_tune-i686} core2-32" |
27 | 24 | ||
28 | AVAILTUNES += "core2-64" | 25 | AVAILTUNES += "core2-64" |
29 | TUNE_FEATURES_tune-core2-64 = "${TUNE_FEATURES_tune-x86-64} core2" | 26 | TUNE_FEATURES_tune-core2-64 = "${TUNE_FEATURES_tune-x86-64} core2" |
diff --git a/meta/conf/machine/include/tune-i686.inc b/meta/conf/machine/include/tune-i686.inc new file mode 100644 index 0000000000..bdb4799209 --- /dev/null +++ b/meta/conf/machine/include/tune-i686.inc | |||
@@ -0,0 +1,27 @@ | |||
1 | # | ||
2 | # The i686 CPU family was introduced with the Intel Pentium Pro in 1995. | ||
3 | # It has as required feature flags: fpu tsc cx8 cmov. | ||
4 | # | ||
5 | # It is the minimum CPU required by the Debian i386 port. | ||
6 | # https://lists.debian.org/debian-devel-announce/2016/05/msg00001.html | ||
7 | # | ||
8 | # | ||
9 | |||
10 | DEFAULTTUNE ?= "i686" | ||
11 | |||
12 | # Set x86 target arch to i686, so that glibc enables SSE optimised memcpy, etc. | ||
13 | X86ARCH32 ?= "i686" | ||
14 | |||
15 | # Include the previous tune to pull in PACKAGE_EXTRA_ARCHS | ||
16 | require conf/machine/include/tune-i586.inc | ||
17 | |||
18 | # Extra tune features | ||
19 | TUNEVALID[i686] = "Enable i686 specific processor optimizations" | ||
20 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'i686', ' -march=i686', '', d)}" | ||
21 | |||
22 | # Extra tune selections | ||
23 | AVAILTUNES += "i686" | ||
24 | TUNE_FEATURES_tune-i686 = "${TUNE_FEATURES_tune-x86} i686" | ||
25 | BASE_LIB_tune-i686 = "lib" | ||
26 | TUNE_PKGARCH_tune-i686 = "i686" | ||
27 | PACKAGE_EXTRA_ARCHS_tune-i686 = "${PACKAGE_EXTRA_ARCHS_tune-i586} i686" | ||