[oe-commits] Khem Raj : tune-xscale.inc: Use TARGET_ARCH to find endianness
git version control
git at git.openembedded.org
Wed Sep 9 03:37:34 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 3e0e303e7ad1c6e34a446e37c7ba8fcfb3b72125
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=3e0e303e7ad1c6e34a446e37c7ba8fcfb3b72125
Author: Khem Raj <raj.khem at gmail.com>
Date: Mon Sep 7 12:09:18 2009 -0700
tune-xscale.inc: Use TARGET_ARCH to find endianness
* Use TARGET_ARCH to find endianness instead of
SITEINFO_ENDIANNESS which is not yet evaluated.
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
conf/machine/include/tune-xscale.inc | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/conf/machine/include/tune-xscale.inc b/conf/machine/include/tune-xscale.inc
index 7fa6447..3a6bd0e 100644
--- a/conf/machine/include/tune-xscale.inc
+++ b/conf/machine/include/tune-xscale.inc
@@ -1,9 +1,12 @@
-FEED_ARCH = "${@['armv5teb', 'armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, 1) == 'le']}"
+# this depends on fact that for ARM the TARGET_ARCH is 'arm' for little endian and 'armeb' for bigendian
+# this is the case as of now for all arm machines in OE.
+
+FEED_ARCH = "${@['armv5teb', 'armv5te'][bb.data.getVar('TARGET_ARCH', d, 1) == 'arm']}"
TARGET_CC_ARCH = "-march=armv5te -mtune=xscale"
TARGET_CC_KERNEL_ARCH = "-march=armv5te -mtune=xscale"
-PACKAGE_EXTRA_ARCHS += "${@['armv4b armv4tb armv5teb', 'armv4 armv4t armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, 1) == 'le']}"
-BASE_PACKAGE_ARCH := "${@['armv5teb', 'armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, 1) == 'le']}"
+PACKAGE_EXTRA_ARCHS += "${@['armv4b armv4tb armv5teb', 'armv4 armv4t armv5te'][ bb.data.getVar('TARGET_ARCH', d, 1) == 'arm']}"
+BASE_PACKAGE_ARCH = "${@['armv5teb', 'armv5te'][bb.data.getVar('TARGET_ARCH', d, 1) == 'arm']}"
# Include tune file for thumb support, it defaults to off so DISTROs can turn it on if they wish
require conf/machine/include/tune-thumb.inc
More information about the Openembedded-commits
mailing list