From 789dcb8e68a2ab9784ac10ab36815010c61af2fc Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 25 Jul 2011 19:03:24 +0100 Subject: Add ARM tune file overhaul based largely on work from Mark Hatle Signed-off-by: Richard Purdie --- meta/conf/machine/include/tune-arm926ejs.inc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'meta/conf/machine/include/tune-arm926ejs.inc') diff --git a/meta/conf/machine/include/tune-arm926ejs.inc b/meta/conf/machine/include/tune-arm926ejs.inc index 543ab62c7..7f2cc4e65 100644 --- a/meta/conf/machine/include/tune-arm926ejs.inc +++ b/meta/conf/machine/include/tune-arm926ejs.inc @@ -1,9 +1,11 @@ -require conf/machine/include/arm/arch-arm.inc - -TUNE_PKGARCH = "armv5te" -PACKAGE_EXTRA_ARCHS = "arm armv4 armv4t armv5te" -# For gcc 3.x you need: -#TUNE_CCARGS = "-march=armv5te -mtune=arm926ejs" -# For gcc 4.x you need: -TUNE_CCARGS = "-march=armv5te -mtune=arm926ej-s" +DEFAULTTUNE ?= "arm926ejs" + +require conf/machine/include/arm/arch-armv5-dsp.inc + +TUNEVALID[arm926ejs] = "Enable arm926ejs specific processor optimizations" +TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "arm926ejs", "-mtune=arm926ej-s", "", d)}" + +AVAILTUNES += "arm926ejs" +TUNE_FEATURES_tune-arm926ejs = "${TUNE_FEATURES_tune-armv5te} arm926ejs" +PACKAGE_EXTRA_ARCHS_tune-arm926ejs = "${PACKAGE_EXTRA_ARCHS_tune-armv5te}" -- cgit v1.2.3