diff options
Diffstat (limited to 'meta/conf/machine/include/x86/tune-core2.inc')
-rw-r--r-- | meta/conf/machine/include/x86/tune-core2.inc | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/conf/machine/include/x86/tune-core2.inc b/meta/conf/machine/include/x86/tune-core2.inc new file mode 100644 index 0000000000..082fd4efc3 --- /dev/null +++ b/meta/conf/machine/include/x86/tune-core2.inc | |||
@@ -0,0 +1,38 @@ | |||
1 | # Settings for the GCC(1) cpu-type "core2": | ||
2 | # | ||
3 | # Intel Core2 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3 and SSSE3 | ||
4 | # instruction set support. | ||
5 | # | ||
6 | # This tune is recommended for the Intel Core 2 CPU family, including Conroe, | ||
7 | # Merom and beyond, as well as the first Atom CPUs, Diamondville, and beyond. | ||
8 | # | ||
9 | DEFAULTTUNE ?= "core2-32" | ||
10 | |||
11 | # Include the previous tune to pull in PACKAGE_EXTRA_ARCHS | ||
12 | require conf/machine/include/x86/tune-i686.inc | ||
13 | |||
14 | # Extra tune features | ||
15 | TUNEVALID[core2] = "Enable core2 specific processor optimizations" | ||
16 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'core2', ' -march=core2 -mtune=core2 -msse3 -mfpmath=sse', '', d)}" | ||
17 | |||
18 | # Extra tune selections | ||
19 | AVAILTUNES += "core2-32" | ||
20 | TUNE_FEATURES:tune-core2-32 = "${TUNE_FEATURES:tune-x86} core2" | ||
21 | BASE_LIB:tune-core2-32 = "lib" | ||
22 | TUNE_PKGARCH:tune-core2-32 = "core2-32" | ||
23 | PACKAGE_EXTRA_ARCHS:tune-core2-32 = "${PACKAGE_EXTRA_ARCHS:tune-i686} core2-32" | ||
24 | QEMU_EXTRAOPTIONS_core2-32 = " -cpu Nehalem,check=false" | ||
25 | |||
26 | AVAILTUNES += "core2-64" | ||
27 | TUNE_FEATURES:tune-core2-64 = "${TUNE_FEATURES:tune-x86-64} core2" | ||
28 | BASE_LIB:tune-core2-64 = "lib64" | ||
29 | TUNE_PKGARCH:tune-core2-64 = "core2-64" | ||
30 | PACKAGE_EXTRA_ARCHS:tune-core2-64 = "${PACKAGE_EXTRA_ARCHS:tune-x86-64} core2-64" | ||
31 | QEMU_EXTRAOPTIONS_core2-64 = " -cpu Nehalem,check=false" | ||
32 | |||
33 | AVAILTUNES += "core2-64-x32" | ||
34 | TUNE_FEATURES:tune-core2-64-x32 = "${TUNE_FEATURES:tune-x86-64-x32} core2" | ||
35 | BASE_LIB:tune-core2-64-x32 = "libx32" | ||
36 | TUNE_PKGARCH:tune-core2-64-x32 = "core2-64-x32" | ||
37 | PACKAGE_EXTRA_ARCHS:tune-core2-64-x32 = "${PACKAGE_EXTRA_ARCHS:tune-x86-64-x32} core2-64-x32" | ||
38 | QEMU_EXTRAOPTIONS_core2-64-x32 = " -cpu Nehalem,check=false" | ||