summaryrefslogtreecommitdiffstats
path: root/meta/conf/machine/include/tune-core2.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/conf/machine/include/tune-core2.inc')
-rw-r--r--meta/conf/machine/include/tune-core2.inc21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/conf/machine/include/tune-core2.inc b/meta/conf/machine/include/tune-core2.inc
new file mode 100644
index 0000000000..138ca170d0
--- /dev/null
+++ b/meta/conf/machine/include/tune-core2.inc
@@ -0,0 +1,21 @@
1DEFAULTTUNE ?= "core2"
2TUNE_ARCH ?= "${@bb.utils.contains("TUNE_FEATURES", "m32", "i686", "x86_64", d)}"
3TUNE_PKGARCH ?= "${@bb.utils.contains("TUNE_FEATURES", "m32", "core2", "core2-64", d)}"
4
5require conf/machine/include/tune-i586.inc
6
7# Extra tune features
8TUNEVALID[core2] = "Enable core2 specific processor optimizations"
9TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "core2", "-march=core2 -msse3 -mtune=generic -mfpmath=sse", "", d)}"
10
11# Extra tune selections
12AVAILTUNES += "core2"
13TUNE_FEATURES_tune-core2 ?= "${TUNE_FEATURES_tune-x86} core2"
14BASE_LIB_tune-core2 ?= "lib"
15PACKAGE_EXTRA_ARCHS_tune-core2 = "${PACKAGE_EXTRA_ARCHS_tune-x86} i386 i486 i586 i686 core2"
16
17AVAILTUNES += "core2-64"
18TUNE_FEATURES_tune-core2-64 ?= "${TUNE_FEATURES_tune-x86-64} core2"
19BASE_LIB_tune-core2-64 ?= "lib64"
20PACKAGE_EXTRA_ARCHS_tune-core2-64 = "${PACKAGE_EXTRA_ARCHS_tune-x86-64} core2-64"
21