From: Tom Zanussi <[email protected]> Add a tune file for Intel Core i7 machines both with and without AVX support.
Signed-off-by: Tom Zanussi <[email protected]> --- 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" -- 1.7.6.4 _______________________________________________ Openembedded-core mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
