From patchwork Tue Nov 8 19:22:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [CONSOLIDATED, PULL, 12/17] tune-corei7: Add tune file for Intel Core i7 machines Date: Tue, 08 Nov 2011 19:22:52 -0000 From: Saul Wold X-Patchwork-Id: 14551 Message-Id: <4437d0b9e418b4b62922ae9a7c37468e56a553d0.1320780004.git.sgw@linux.intel.com> To: openembedded-core@lists.openembedded.org From: Tom Zanussi Add a tune file for Intel Core i7 machines both with and without AVX support. Signed-off-by: Tom Zanussi --- meta/conf/machine/include/tune-corei7.inc | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) create mode 100644 meta/conf/machine/include/tune-corei7.inc diff --git a/meta/conf/machine/include/tune-corei7.inc b/meta/conf/machine/include/tune-corei7.inc new file mode 100644 index 0000000..2e0c67f --- /dev/null +++ b/meta/conf/machine/include/tune-corei7.inc @@ -0,0 +1,17 @@ +DEFAULTTUNE ?= "corei7" +TUNE_PKGARCH ?= "${@bb.utils.contains("TUNE_FEATURES", "avx", "corei7-avx", "corei7", d)}" + +require conf/machine/include/tune-x86_64.inc + +TUNEVALID[corei7] = "Enable corei7-specific processor optimizations" +TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "corei7", "-march=corei7${COREI7_AVX}", "", d)}" + +COREI7_AVX = "${@bb.utils.contains("TUNE_FEATURES", [ "corei7", "avx" ], "-avx", "", d)}" + +AVAILTUNES += "corei7" +TUNE_FEATURES_tune-corei7 = "${TUNE_FEATURES_tune-x86-64} corei7" +PACKAGE_EXTRA_ARCHS_tune-corei7 = "${PACKAGE_EXTRA_ARCHS_tune-x86-64} corei7" + +AVAILTUNES += "corei7-avx" +TUNE_FEATURES_tune-corei7-avx = "${TUNE_FEATURES_tune-x86-64} corei7 avx" +PACKAGE_EXTRA_ARCHS_tune-corei7-avx = "${PACKAGE_EXTRA_ARCHS_tune-x86-64} corei7-avx"