[OE-core] Add basic PowerPC core tune config (bug?)

2011-07-28 Thread Kumar Gala
For some reason when I get to do_rootfs for core-image-sato when using rpms I 
run into an issue in that:

${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}

Isn't expanding or taking the assignment in 
meta/conf/machine/include/tune-ppcFOO.inc but just using what it found in 
meta/conf/bitbake.conf

the tune-ppcFOO.inc looks like:

DEFAULTTUNE ?= ppce5500

require conf/machine/include/powerpc/arch-powerpc64.inc

TUNEVALID[ppce5500] = Enable ppce5500 specific processor optimizations
TUNE_CCARGS += ${@bb.utils.contains(TUNE_FEATURES, ppce5500, 
-mcpu=e5500, , d)}
TUNE_PKGARCH .= ${@bb.utils.contains(TUNE_FEATURES, ppce5500, ppce5500, 
, d)}

AVAILTUNES += ppce5500
TUNE_FEATURES_tune-ppce5500 = m64 hard-fpu ppce5500
PACKAGE_EXTRA_ARCHS_tune-ppce5500 = powerpc64 ppce5500

any ideas?

- k
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] Add basic PowerPC core tune config (bug?)

2011-07-28 Thread Saul Wold

On 07/27/2011 10:25 PM, Kumar Gala wrote:

For some reason when I get to do_rootfs for core-image-sato when using rpms I 
run into an issue in that:

${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}

Isn't expanding or taking the assignment in 
meta/conf/machine/include/tune-ppcFOO.inc but just using what it found in 
meta/conf/bitbake.conf

the tune-ppcFOO.inc looks like:

DEFAULTTUNE ?= ppce5500

require conf/machine/include/powerpc/arch-powerpc64.inc

TUNEVALID[ppce5500] = Enable ppce5500 specific processor optimizations
TUNE_CCARGS += ${@bb.utils.contains(TUNE_FEATURES, ppce5500, -mcpu=e5500, , 
d)}
TUNE_PKGARCH .= ${@bb.utils.contains(TUNE_FEATURES, ppce5500, ppce5500, , 
d)}

AVAILTUNES += ppce5500
TUNE_FEATURES_tune-ppce5500 = m64 hard-fpu ppce5500
PACKAGE_EXTRA_ARCHS_tune-ppce5500 = powerpc64 ppce5500

any ideas?

I believe that I am seeing this also with an atom-pc build, where the 
PACKAGE_EXTRA_ARCHS seems OK, but ends up just being i586 instead of a 
list of ARCHS that includes core2 (which atom-pc should be).


I am looking into this issue.

Sau!


- k
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core



___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] Add basic PowerPC core tune config (bug?)

2011-07-28 Thread Cui, Dexuan
Saul Wold wrote on 2011-07-28:
 On 07/27/2011 10:25 PM, Kumar Gala wrote:
 For some reason when I get to do_rootfs for core-image-sato when using
 rpms I run into an issue in that:
 
 ${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}
 
 Isn't expanding or taking the assignment in
 meta/conf/machine/include/tune-ppcFOO.inc but just using what it
 found in meta/conf/bitbake.conf
 
 I believe that I am seeing this also with an atom-pc build, where the
 PACKAGE_EXTRA_ARCHS seems OK, but ends up just being i586 instead of a
 list of ARCHS that includes core2 (which atom-pc should be).
Hi, I'm suffering from the exactly same issue... :-(
I don't know why PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE} isn't expending yet.

Thanks,
-- Dexuan



___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] Add basic PowerPC core tune config (bug?)

2011-07-28 Thread Paul Eggleton
On Thursday 28 July 2011 08:48:43 Cui, Dexuan wrote:
 Saul Wold wrote on 2011-07-28:
  On 07/27/2011 10:25 PM, Kumar Gala wrote:
  For some reason when I get to do_rootfs for core-image-sato when using
  rpms I run into an issue in that:
  
  ${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}
  
  Isn't expanding or taking the assignment in
  meta/conf/machine/include/tune-ppcFOO.inc but just using what it
  found in meta/conf/bitbake.conf
  
  I believe that I am seeing this also with an atom-pc build, where the
  PACKAGE_EXTRA_ARCHS seems OK, but ends up just being i586 instead of a
  list of ARCHS that includes core2 (which atom-pc should be).
 
 Hi, I'm suffering from the exactly same issue... :-(
 I don't know why PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE} isn't expending
 yet.

It seems to me that ??= gets confused because the variable name needs 
expanding. If you change the ${DEFAULTTUNE} reference to core2 in 
PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE} ??= ${TARGET_ARCH} it all works. I 
don't know if that indicates a BitBake bug or whether we should try to work 
around it.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] Add basic PowerPC core tune config (bug?)

2011-07-28 Thread Koen Kooi

Op 28 jul. 2011, om 10:47 heeft Paul Eggleton het volgende geschreven:

 On Thursday 28 July 2011 08:48:43 Cui, Dexuan wrote:
 Saul Wold wrote on 2011-07-28:
 On 07/27/2011 10:25 PM, Kumar Gala wrote:
 For some reason when I get to do_rootfs for core-image-sato when using
 rpms I run into an issue in that:
 
 ${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}
 
 Isn't expanding or taking the assignment in
 meta/conf/machine/include/tune-ppcFOO.inc but just using what it
 found in meta/conf/bitbake.conf
 
 I believe that I am seeing this also with an atom-pc build, where the
 PACKAGE_EXTRA_ARCHS seems OK, but ends up just being i586 instead of a
 list of ARCHS that includes core2 (which atom-pc should be).
 
 Hi, I'm suffering from the exactly same issue... :-(
 I don't know why PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE} isn't expending
 yet.
 
 It seems to me that ??= gets confused because the variable name needs 
 expanding. If you change the ${DEFAULTTUNE} reference to core2 in 
 PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE} ??= ${TARGET_ARCH} it all works. I 
 don't know if that indicates a BitBake bug or whether we should try to work 
 around it.

I think it has to do with when the anonymous python runs. Try comparing 
'bitbake -e' and and 'bitbake -e some-image':

koen@dominion:/OE/tentacle/sources/openembedded-core/meta$ bitbake -e | grep 
PACKAGE_EXTRA_ARCHS\=
# PACKAGE_EXTRA_ARCHS=${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}
PACKAGE_EXTRA_ARCHS=arm armv4 armv4t armv5 armv5t armv5-vfp armv5t-vfp armv5e 
armv5te armv5e-vfp armv5te-vfp armv6-vfp armv6t-vfp armv7-vfp armv7t2-vfp 
armv7a-vfp armv7at2-vfp armv7a-vfp-neon armv7at2-vfp-neon

koen@dominion:/OE/tentacle/sources/openembedded-core/meta$ bitbake -e 
efl-nodm-image | grep PACKAGE_EXTRA_ARCHS\=
# PACKAGE_EXTRA_ARCHS=${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}
PACKAGE_EXTRA_ARCHS=arm

regards,

Koen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] Add basic PowerPC core tune config (bug?)

2011-07-28 Thread Koen Kooi

Op 28 jul. 2011, om 11:20 heeft Phil Blundell het volgende geschreven:

 On Thu, 2011-07-28 at 10:57 +0200, Koen Kooi wrote:
 Op 28 jul. 2011, om 10:47 heeft Paul Eggleton het volgende geschreven:
 
 On Thursday 28 July 2011 08:48:43 Cui, Dexuan wrote:
 Saul Wold wrote on 2011-07-28:
 On 07/27/2011 10:25 PM, Kumar Gala wrote:
 For some reason when I get to do_rootfs for core-image-sato when using
 rpms I run into an issue in that:
 
 ${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}
 
 Isn't expanding or taking the assignment in
 meta/conf/machine/include/tune-ppcFOO.inc but just using what it
 found in meta/conf/bitbake.conf
 
 I believe that I am seeing this also with an atom-pc build, where the
 PACKAGE_EXTRA_ARCHS seems OK, but ends up just being i586 instead of a
 list of ARCHS that includes core2 (which atom-pc should be).
 
 Hi, I'm suffering from the exactly same issue... :-(
 I don't know why PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE} isn't expending
 yet.
 
 It seems to me that ??= gets confused because the variable name needs 
 expanding. If you change the ${DEFAULTTUNE} reference to core2 in 
 PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE} ??= ${TARGET_ARCH} it all works. 
 I 
 don't know if that indicates a BitBake bug or whether we should try to work 
 around it.
 
 I think it has to do with when the anonymous python runs. Try comparing 
 'bitbake -e' and and 'bitbake -e some-image':
 
 koen@dominion:/OE/tentacle/sources/openembedded-core/meta$ bitbake -e | grep 
 PACKAGE_EXTRA_ARCHS\=
 # PACKAGE_EXTRA_ARCHS=${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}
 PACKAGE_EXTRA_ARCHS=arm armv4 armv4t armv5 armv5t armv5-vfp armv5t-vfp 
 armv5e armv5te armv5e-vfp armv5te-vfp armv6-vfp armv6t-vfp armv7-vfp 
 armv7t2-vfp armv7a-vfp armv7at2-vfp armv7a-vfp-neon armv7at2-vfp-neon
 
 koen@dominion:/OE/tentacle/sources/openembedded-core/meta$ bitbake -e 
 efl-nodm-image | grep PACKAGE_EXTRA_ARCHS\=
 # PACKAGE_EXTRA_ARCHS=${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}
 PACKAGE_EXTRA_ARCHS=arm
 
 No, I think Paul is right about the cause (though I don't agree with him
 that it is a bug exactly).  The timing of anonymous python oughtn't to
 be different in those two cases so I don't think that will be making a
 difference.
 
 That assignment to PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE} in
 bitbake.conf is just fundamentally bogus.  As far as the bitbake parser
 is concerned, PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE} and
 PACKAGE_EXTRA_ARCHS_tune-arm926ejs are different variables (assuming
 DEFAULTTUNE=arm926ejs for the sake of an example) and it will create
 both of them.  Then, later, when the lvalues get expanded the latter
 will be overwritten by the former which seems like it is exactly the
 opposite to the effect that's wanted here.
 
 This is long-standing bitbake behaviour and I'm not sure it would be
 practical to change.  I think the metadata just needs to be written to
 work with the semantics that we have.

Removing the PACKAGE_EXTRA_ARCHS line from bitbake.conf makes it work for me 
again, is that an acceptable solution?

regards,

Koen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] Add basic PowerPC core tune config (bug?)

2011-07-28 Thread Phil Blundell
On Thu, 2011-07-28 at 12:00 +0200, Koen Kooi wrote:
 Removing the PACKAGE_EXTRA_ARCHS line from bitbake.conf makes it work for me 
 again, is that an acceptable solution?

Sounds about right to me.  If ${TARGET_ARCH} really does need to go into
PACKAGE_EXTRA_ARCHS by default (which sounds implausible to me) then
we'll have to find some other way to achieve that.

p.



___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core