summaryrefslogtreecommitdiffstats
path: root/meta/conf/machine/include/x86/tune-core2.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/conf/machine/include/x86/tune-core2.inc')
-rw-r--r--meta/conf/machine/include/x86/tune-core2.inc38
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#
9DEFAULTTUNE ?= "core2-32"
10
11# Include the previous tune to pull in PACKAGE_EXTRA_ARCHS
12require conf/machine/include/x86/tune-i686.inc
13
14# Extra tune features
15TUNEVALID[core2] = "Enable core2 specific processor optimizations"
16TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'core2', ' -march=core2 -mtune=core2 -msse3 -mfpmath=sse', '', d)}"
17
18# Extra tune selections
19AVAILTUNES += "core2-32"
20TUNE_FEATURES:tune-core2-32 = "${TUNE_FEATURES:tune-x86} core2"
21BASE_LIB:tune-core2-32 = "lib"
22TUNE_PKGARCH:tune-core2-32 = "core2-32"
23PACKAGE_EXTRA_ARCHS:tune-core2-32 = "${PACKAGE_EXTRA_ARCHS:tune-i686} core2-32"
24QEMU_EXTRAOPTIONS_core2-32 = " -cpu Nehalem,check=false"
25
26AVAILTUNES += "core2-64"
27TUNE_FEATURES:tune-core2-64 = "${TUNE_FEATURES:tune-x86-64} core2"
28BASE_LIB:tune-core2-64 = "lib64"
29TUNE_PKGARCH:tune-core2-64 = "core2-64"
30PACKAGE_EXTRA_ARCHS:tune-core2-64 = "${PACKAGE_EXTRA_ARCHS:tune-x86-64} core2-64"
31QEMU_EXTRAOPTIONS_core2-64 = " -cpu Nehalem,check=false"
32
33AVAILTUNES += "core2-64-x32"
34TUNE_FEATURES:tune-core2-64-x32 = "${TUNE_FEATURES:tune-x86-64-x32} core2"
35BASE_LIB:tune-core2-64-x32 = "libx32"
36TUNE_PKGARCH:tune-core2-64-x32 = "core2-64-x32"
37PACKAGE_EXTRA_ARCHS:tune-core2-64-x32 = "${PACKAGE_EXTRA_ARCHS:tune-x86-64-x32} core2-64-x32"
38QEMU_EXTRAOPTIONS_core2-64-x32 = " -cpu Nehalem,check=false"