[OE-core] [PATCH 2/5] tune-bonnell.inc: support for first generation Intel Atom CPUs

Andre McCurdy armccurdy at gmail.com
Mon Oct 19 18:59:34 UTC 2015


Signed-off-by: Andre McCurdy <armccurdy at gmail.com>
---
 meta/conf/machine/include/tune-bonnell.inc | 35 ++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-bonnell.inc

diff --git a/meta/conf/machine/include/tune-bonnell.inc b/meta/conf/machine/include/tune-bonnell.inc
new file mode 100644
index 0000000..f6d92dc
--- /dev/null
+++ b/meta/conf/machine/include/tune-bonnell.inc
@@ -0,0 +1,35 @@
+# Settings for the GCC(1) cpu-type "bonnell":
+#
+#      Intel Bonnell CPU with 64-bit extensions, MOVBE, MMX, SSE, SSE2, SSE3
+#      and SSSE3 instruction set support. 
+#
+# This tune is recommended for the processors based on the first generation
+# Bonnell (45nm) and Saltwell (32nm) Intel Atom CPUs.
+#
+DEFAULTTUNE ?= "bonnell-32"
+
+# Include the previous tune to pull in PACKAGE_EXTRA_ARCHS
+require conf/machine/include/tune-core2.inc
+
+# Extra tune features
+TUNEVALID[bonnell] = "Enable bonnell specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "bonnell", " -march=bonnell -mtune=bonnell -msse3 -mfpmath=sse", "", d)}"
+
+# Extra tune selections
+AVAILTUNES += "bonnell-32"
+TUNE_FEATURES_tune-bonnell-32 = "${TUNE_FEATURES_tune-x86} bonnell"
+BASE_LIB_tune-bonnell-32 = "lib"
+TUNE_PKGARCH_tune-bonnell-32 = "bonnell-32"
+PACKAGE_EXTRA_ARCHS_tune-bonnell-32 = "${PACKAGE_EXTRA_ARCHS_tune-core2-32} bonnell-32"
+
+AVAILTUNES += "bonnell-64"
+TUNE_FEATURES_tune-bonnell-64 = "${TUNE_FEATURES_tune-x86-64} bonnell"
+BASE_LIB_tune-bonnell-64 = "lib64"
+TUNE_PKGARCH_tune-bonnell-64 = "bonnell-64"
+PACKAGE_EXTRA_ARCHS_tune-bonnell-64 = "${PACKAGE_EXTRA_ARCHS_tune-core2-64} bonnell-64"
+
+AVAILTUNES += "bonnell-64-x32"
+TUNE_FEATURES_tune-bonnell-64-x32 = "${TUNE_FEATURES_tune-x86-64-x32} bonnell"
+BASE_LIB_tune-bonnell-64-x32 = "libx32"
+TUNE_PKGARCH_tune-bonnell-64-x32 = "bonnell-64-x32"
+PACKAGE_EXTRA_ARCHS_tune-bonnell-64-x32 = "${PACKAGE_EXTRA_ARCHS_tune-core2-64-x32} bonnell-64-x32"
-- 
1.9.1




More information about the Openembedded-core mailing list