From: Tom Zanussi <tom.zanu...@intel.com> Atom tunings are currently the same as core2; this patch changes them to make use of atom-specific settings such as the atom arch and instruction support in gcc.
Signed-off-by: Tom Zanussi <tom.zanu...@intel.com> --- meta/conf/machine/include/tune-atom.inc | 26 ++++++++++++++++++++++++-- 1 files changed, 24 insertions(+), 2 deletions(-) diff --git a/meta/conf/machine/include/tune-atom.inc b/meta/conf/machine/include/tune-atom.inc index 5e1bb74..ab4aa14 100644 --- a/meta/conf/machine/include/tune-atom.inc +++ b/meta/conf/machine/include/tune-atom.inc @@ -1,2 +1,24 @@ -# Atom tunings are the same as core2 for now... -require conf/machine/include/tune-core2.inc +DEFAULTTUNE ?= "atom" +TUNE_PKGARCH ?= "${@bb.utils.contains("TUNE_FEATURES", "m32", "atom", "atom-64", d)}" + +require conf/machine/include/tune-i586.inc + +# Extra tune features +TUNEVALID[atom] = "Enable atom-specific processor optimizations" +TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "atom", "-march=atom -mssse3 -mfpmath=sse", "", d)}" + +# Extra tune selections +AVAILTUNES += "atom" +TUNE_FEATURES_tune-atom ?= "${TUNE_FEATURES_tune-x86} atom" +BASE_LIB_tune-atom ?= "lib" +PACKAGE_EXTRA_ARCHS_tune-atom = "${PACKAGE_EXTRA_ARCHS_tune-x86} i386 i486 i586 i686 atom" + +AVAILTUNES += "atom-64" +TUNE_FEATURES_tune-atom-64 ?= "${TUNE_FEATURES_tune-x86-64} atom" +BASE_LIB_tune-atom-64 ?= "lib64" +PACKAGE_EXTRA_ARCHS_tune-atom-64 = "${PACKAGE_EXTRA_ARCHS_tune-x86-64} atom-64" + +AVAILTUNES += "atom-64-x32" +TUNE_FEATURES_tune-atom-64-x32 ?= "${TUNE_FEATURES_tune-x86-64-x32} atom" +BASE_LIB_tune-atom-64-x32 ?= "libx32" +PACKAGE_EXTRA_ARCHS_tune-atom-64-x32 = "${PACKAGE_EXTRA_ARCHS_tune-x86-64-x32} atom-64-x32" -- 1.7.6.4 _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core