summaryrefslogtreecommitdiff
path: root/meta/conf/machine/include/tune-arm926ejs.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-25 19:03:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-27 15:43:38 +0100
commit789dcb8e68a2ab9784ac10ab36815010c61af2fc (patch)
treee0930a7f1900bc907a2bd3e372d20512e4328fe3 /meta/conf/machine/include/tune-arm926ejs.inc
parentc64d075b3d367e6c76aafa17782585d026b1f31e (diff)
downloadopenembedded-core-789dcb8e68a2ab9784ac10ab36815010c61af2fc.tar.gz
openembedded-core-789dcb8e68a2ab9784ac10ab36815010c61af2fc.tar.bz2
openembedded-core-789dcb8e68a2ab9784ac10ab36815010c61af2fc.tar.xz
openembedded-core-789dcb8e68a2ab9784ac10ab36815010c61af2fc.zip
Add ARM tune file overhaul based largely on work from Mark Hatle
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine/include/tune-arm926ejs.inc')
-rw-r--r--meta/conf/machine/include/tune-arm926ejs.inc18
1 files changed, 10 insertions, 8 deletions
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}"