All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] tune-xscale.inc: Use TARGET_ARCH to find endianness
@ 2009-09-08 21:58 Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2009-09-08 21:58 UTC (permalink / raw)
  To: openembedded-devel

* 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




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] tune-xscale.inc: Use TARGET_ARCH to find endianness
  2009-09-07 19:11 ` [PATCH 2/2] tune-xscale.inc: Use TARGET_ARCH to find endianness Khem Raj
  2009-09-10  6:12   ` Holger Hans Peter Freyther
@ 2009-09-10  9:32   ` Leon Woestenberg
  1 sibling, 0 replies; 4+ messages in thread
From: Leon Woestenberg @ 2009-09-10  9:32 UTC (permalink / raw)
  To: openembedded-devel

On Mon, Sep 7, 2009 at 9:11 PM, Khem Raj<raj.khem@gmail.com> wrote:
> * Use TARGET_ARCH to find endianness instead of
>  SITEINFO_ENDIANNESS which is not yet evaluated.
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
Acked-by: Leon Woestenberg <leon@sidebranch.com>
-- 
Leon



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] tune-xscale.inc: Use TARGET_ARCH to find endianness
  2009-09-07 19:11 ` [PATCH 2/2] tune-xscale.inc: Use TARGET_ARCH to find endianness Khem Raj
@ 2009-09-10  6:12   ` Holger Hans Peter Freyther
  2009-09-10  9:32   ` Leon Woestenberg
  1 sibling, 0 replies; 4+ messages in thread
From: Holger Hans Peter Freyther @ 2009-09-10  6:12 UTC (permalink / raw)
  To: openembedded-devel

On Monday 07 September 2009 21:11:44 Khem Raj wrote:
> * Use TARGET_ARCH to find endianness instead of
>   SITEINFO_ENDIANNESS which is not yet evaluated.
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Holger Hans Peter Freyther <zecke@selfish.org>

> ---
>  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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] tune-xscale.inc: Use TARGET_ARCH to find endianness
  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
  2009-09-10  6:12   ` Holger Hans Peter Freyther
  2009-09-10  9:32   ` Leon Woestenberg
  0 siblings, 2 replies; 4+ messages in thread
From: Khem Raj @ 2009-09-07 19:11 UTC (permalink / raw)
  To: openembedded-devel

* 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




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-09-10  9:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-08 21:58 [PATCH 2/2] tune-xscale.inc: Use TARGET_ARCH to find endianness Khem Raj
  -- strict thread matches above, loose matches on Subject: below --
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 ` [PATCH 2/2] tune-xscale.inc: Use TARGET_ARCH to find endianness Khem Raj
2009-09-10  6:12   ` Holger Hans Peter Freyther
2009-09-10  9:32   ` Leon Woestenberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.