All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tune/armv7: Add -mthumb to TUNE_CCARGS
@ 2012-03-25 16:48 Khem Raj
  2012-03-26 11:01 ` Richard Purdie
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2012-03-25 16:48 UTC (permalink / raw)
  To: openembedded-core

armv7 is least common denominator of armv7-a
armv7-m and armv7-r and armv7-m does not support
ARM instructions but only thumb2 instruction set
which means armv7 when chosen will complain if
code is compiled in arm mode which is default
in OE if not specified other wise

Fixes errors like below

error: target CPU does not support ARM mode

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/conf/machine/include/arm/arch-armv7.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/conf/machine/include/arm/arch-armv7.inc b/meta/conf/machine/include/arm/arch-armv7.inc
index 33d9f0d..563a6b4 100644
--- a/meta/conf/machine/include/arm/arch-armv7.inc
+++ b/meta/conf/machine/include/arm/arch-armv7.inc
@@ -4,7 +4,7 @@ ARMPKGARCH ?= "armv7"
 
 TUNEVALID[armv7] = "Enable instructions for ARMv7"
 TUNE_CONFLICTS[armv7] = "armv4 armv5 armv6"
-TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "armv7", "-march=armv7", "", d)}"
+TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "armv7", "-march=armv7 -mthumb", "", d)}"
 MACHINEOVERRIDES .= "${@bb.utils.contains("TUNE_FEATURES", "armv7", ":armv7", "" ,d)}"
 
 require conf/machine/include/arm/arch-armv6.inc
-- 
1.7.9.1




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

* Re: [PATCH] tune/armv7: Add -mthumb to TUNE_CCARGS
  2012-03-25 16:48 [PATCH] tune/armv7: Add -mthumb to TUNE_CCARGS Khem Raj
@ 2012-03-26 11:01 ` Richard Purdie
  2012-03-26 11:06   ` Phil Blundell
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2012-03-26 11:01 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Sun, 2012-03-25 at 09:48 -0700, Khem Raj wrote:
> armv7 is least common denominator of armv7-a
> armv7-m and armv7-r and armv7-m does not support
> ARM instructions but only thumb2 instruction set
> which means armv7 when chosen will complain if
> code is compiled in arm mode which is default
> in OE if not specified other wise
> 
> Fixes errors like below
> 
> error: target CPU does not support ARM mode
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/conf/machine/include/arm/arch-armv7.inc |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/conf/machine/include/arm/arch-armv7.inc b/meta/conf/machine/include/arm/arch-armv7.inc
> index 33d9f0d..563a6b4 100644
> --- a/meta/conf/machine/include/arm/arch-armv7.inc
> +++ b/meta/conf/machine/include/arm/arch-armv7.inc
> @@ -4,7 +4,7 @@ ARMPKGARCH ?= "armv7"
>  
>  TUNEVALID[armv7] = "Enable instructions for ARMv7"
>  TUNE_CONFLICTS[armv7] = "armv4 armv5 armv6"
> -TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "armv7", "-march=armv7", "", d)}"
> +TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "armv7", "-march=armv7 -mthumb", "", d)}"
>  MACHINEOVERRIDES .= "${@bb.utils.contains("TUNE_FEATURES", "armv7", ":armv7", "" ,d)}"
>  
>  require conf/machine/include/arm/arch-armv6.inc

Looking at this file, if the above is true and armv7 can't do anything
other than thumb, shouldn't we just delete the non-thumb configurations
for "armv7"?

Adding in "thumb" to the TUNE_FEATURES should add the -mthumb it needs
to work.

Cheers,

Richard





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

* Re: [PATCH] tune/armv7: Add -mthumb to TUNE_CCARGS
  2012-03-26 11:01 ` Richard Purdie
@ 2012-03-26 11:06   ` Phil Blundell
  2012-03-26 11:21     ` Richard Purdie
  0 siblings, 1 reply; 7+ messages in thread
From: Phil Blundell @ 2012-03-26 11:06 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, 2012-03-26 at 12:01 +0100, Richard Purdie wrote:
> Looking at this file, if the above is true and armv7 can't do anything
> other than thumb, shouldn't we just delete the non-thumb configurations
> for "armv7"?

It's not totally obvious to me that having a "lowest common denominator"
configuration for ARMv7 is really all that valuable.  In fact I would be
slightly surprised if anybody is targetting ARMv7-M with OE at all.
What's the use-case for that?

p.





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

* Re: [PATCH] tune/armv7: Add -mthumb to TUNE_CCARGS
  2012-03-26 11:06   ` Phil Blundell
@ 2012-03-26 11:21     ` Richard Purdie
  2012-03-26 14:13       ` Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2012-03-26 11:21 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, 2012-03-26 at 12:06 +0100, Phil Blundell wrote:
> On Mon, 2012-03-26 at 12:01 +0100, Richard Purdie wrote:
> > Looking at this file, if the above is true and armv7 can't do anything
> > other than thumb, shouldn't we just delete the non-thumb configurations
> > for "armv7"?
> 
> It's not totally obvious to me that having a "lowest common denominator"
> configuration for ARMv7 is really all that valuable.  In fact I would be
> slightly surprised if anybody is targetting ARMv7-M with OE at all.
> What's the use-case for that?

I have no idea, it appears the file doesn't make a lot of sense...

Cheers,

Richard




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

* Re: [PATCH] tune/armv7: Add -mthumb to TUNE_CCARGS
  2012-03-26 11:21     ` Richard Purdie
@ 2012-03-26 14:13       ` Khem Raj
  2012-03-26 14:37         ` Phil Blundell
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2012-03-26 14:13 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, Mar 26, 2012 at 4:21 AM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> On Mon, 2012-03-26 at 12:06 +0100, Phil Blundell wrote:
>> On Mon, 2012-03-26 at 12:01 +0100, Richard Purdie wrote:
>> > Looking at this file, if the above is true and armv7 can't do anything
>> > other than thumb, shouldn't we just delete the non-thumb configurations
>> > for "armv7"?
>>
>> It's not totally obvious to me that having a "lowest common denominator"
>> configuration for ARMv7 is really all that valuable.  In fact I would be
>> slightly surprised if anybody is targetting ARMv7-M with OE at all.
>> What's the use-case for that?
>
> I have no idea, it appears the file doesn't make a lot of sense...
>

on second thought I think we should delete this tune file since its
somewhat useless.

> Cheers,
>
> Richard
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core



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

* Re: [PATCH] tune/armv7: Add -mthumb to TUNE_CCARGS
  2012-03-26 14:13       ` Khem Raj
@ 2012-03-26 14:37         ` Phil Blundell
  2012-03-26 15:12           ` Richard Purdie
  0 siblings, 1 reply; 7+ messages in thread
From: Phil Blundell @ 2012-03-26 14:37 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, 2012-03-26 at 07:13 -0700, Khem Raj wrote:
> On Mon, Mar 26, 2012 at 4:21 AM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > On Mon, 2012-03-26 at 12:06 +0100, Phil Blundell wrote:
> >> On Mon, 2012-03-26 at 12:01 +0100, Richard Purdie wrote:
> >> > Looking at this file, if the above is true and armv7 can't do anything
> >> > other than thumb, shouldn't we just delete the non-thumb configurations
> >> > for "armv7"?
> >>
> >> It's not totally obvious to me that having a "lowest common denominator"
> >> configuration for ARMv7 is really all that valuable.  In fact I would be
> >> slightly surprised if anybody is targetting ARMv7-M with OE at all.
> >> What's the use-case for that?
> >
> > I have no idea, it appears the file doesn't make a lot of sense...
> >
> 
> on second thought I think we should delete this tune file since its
> somewhat useless.

Yes, agreed.  It looks like Richard added it originally so, if he
doesn't know ( / has forgotten) what it's good for I would guess that
nobody does.

p.





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

* Re: [PATCH] tune/armv7: Add -mthumb to TUNE_CCARGS
  2012-03-26 14:37         ` Phil Blundell
@ 2012-03-26 15:12           ` Richard Purdie
  0 siblings, 0 replies; 7+ messages in thread
From: Richard Purdie @ 2012-03-26 15:12 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, 2012-03-26 at 15:37 +0100, Phil Blundell wrote:
> On Mon, 2012-03-26 at 07:13 -0700, Khem Raj wrote:
> > On Mon, Mar 26, 2012 at 4:21 AM, Richard Purdie
> > <richard.purdie@linuxfoundation.org> wrote:
> > > On Mon, 2012-03-26 at 12:06 +0100, Phil Blundell wrote:
> > >> On Mon, 2012-03-26 at 12:01 +0100, Richard Purdie wrote:
> > >> > Looking at this file, if the above is true and armv7 can't do anything
> > >> > other than thumb, shouldn't we just delete the non-thumb configurations
> > >> > for "armv7"?
> > >>
> > >> It's not totally obvious to me that having a "lowest common denominator"
> > >> configuration for ARMv7 is really all that valuable.  In fact I would be
> > >> slightly surprised if anybody is targetting ARMv7-M with OE at all.
> > >> What's the use-case for that?
> > >
> > > I have no idea, it appears the file doesn't make a lot of sense...
> > >
> > 
> > on second thought I think we should delete this tune file since its
> > somewhat useless.
> 
> Yes, agreed.  It looks like Richard added it originally so, if he
> doesn't know ( / has forgotten) what it's good for I would guess that
> nobody does.

I was proxy for the tune file rewrite, I wasn't responsible for all the
details. I'm find with removing it assuming nobody objects. I'm cc'ing
Mark in case he remembers anything I don't.

Cheers,

Richard 




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

end of thread, other threads:[~2012-03-26 15:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-25 16:48 [PATCH] tune/armv7: Add -mthumb to TUNE_CCARGS Khem Raj
2012-03-26 11:01 ` Richard Purdie
2012-03-26 11:06   ` Phil Blundell
2012-03-26 11:21     ` Richard Purdie
2012-03-26 14:13       ` Khem Raj
2012-03-26 14:37         ` Phil Blundell
2012-03-26 15:12           ` Richard Purdie

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.