From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH 2/2] tune-xscale.inc: Use TARGET_ARCH to find endianness
Date: Mon, 7 Sep 2009 12:11:44 -0700 [thread overview]
Message-ID: <1252350704-9530-2-git-send-email-raj.khem@gmail.com> (raw)
In-Reply-To: <1252350704-9530-1-git-send-email-raj.khem@gmail.com>
* Use TARGET_ARCH to find endianness instead of
SITEINFO_ENDIANNESS which is not yet evaluated.
Signed-off-by: Khem Raj <raj.khem@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
--
1.6.3.3
next prev parent reply other threads:[~2009-09-09 10:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-07 19:11 [PATCH 1/2] tar_1.22.bb: Add recipe for 1.22 release Khem Raj
2009-09-07 19:11 ` Khem Raj [this message]
2009-09-10 6:12 ` [PATCH 2/2] tune-xscale.inc: Use TARGET_ARCH to find endianness Holger Hans Peter Freyther
2009-09-10 9:32 ` Leon Woestenberg
2009-09-10 6:11 ` [PATCH 1/2] tar_1.22.bb: Add recipe for 1.22 release Holger Hans Peter Freyther
2009-09-10 9:31 ` Leon Woestenberg
-- strict thread matches above, loose matches on Subject: below --
2009-09-08 21:58 [PATCH 2/2] tune-xscale.inc: Use TARGET_ARCH to find endianness Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1252350704-9530-2-git-send-email-raj.khem@gmail.com \
--to=raj.khem@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox