From patchwork Mon Nov 7 15:53:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/6] machine/include/tune-atom.inc: add atom-specific settings Date: Mon, 07 Nov 2011 15:53:33 -0000 From: Tom Zanussi X-Patchwork-Id: 14427 Message-Id: <8451372b6ab4f34a0ef907f0a3e3713bcdf1932f.1320638388.git.tom.zanussi@intel.com> To: openembedded-core@lists.openembedded.org From: Tom Zanussi 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 --- 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"