Re: [oe] [PATCH] handle PACKAGE_ARCH change in an amend.inc

2010-11-21 Thread Chris Larson
On Sun, Nov 21, 2010 at 12:42 PM, Eric Bénard wrote: > * setting PACKAGE_ARCH = "${MACHINE_ARCH}" in an amend.inc actually > leads to a package with the correct machine arch but the > work/stage/stamp dirs are not correct because MULTIMACH_ARCH is not > updated after amend.inc is parsed. > > * th

[oe] [PATCH] handle PACKAGE_ARCH change in an amend.inc

2010-11-21 Thread Eric Bénard
* setting PACKAGE_ARCH = "${MACHINE_ARCH}" in an amend.inc actually leads to a package with the correct machine arch but the work/stage/stamp dirs are not correct because MULTIMACH_ARCH is not updated after amend.inc is parsed. * this patch : - factorizes the code which compute MULTIMACH_ARCH in b

Re: [oe] [PATCH] handle PACKAGE_ARCH change in an amend.inc

2010-11-21 Thread Eric Bénard
On 21/11/2010 18:53, Chris Larson wrote: 2010/11/21 Eric Bénard +# +# We always try to scan SRC_URI for urls with machine overrides +# unless the package sets SRC_URI_OVERRIDES_PACKAGE_ARCH=0 +# +override = bb.data.getVar('SRC_URI_OVERRIDES_PACKAGE_ARCH', d, 1) +if overr

Re: [oe] [PATCH] handle PACKAGE_ARCH change in an amend.inc

2010-11-21 Thread Chris Larson
2010/11/21 Eric Bénard > +# > +# We always try to scan SRC_URI for urls with machine overrides > +# unless the package sets SRC_URI_OVERRIDES_PACKAGE_ARCH=0 > +# > +override = bb.data.getVar('SRC_URI_OVERRIDES_PACKAGE_ARCH', d, 1) > +if override != '0' and is_machine_speci

Re: [oe] [PATCH] handle PACKAGE_ARCH change in an amend.inc

2010-11-21 Thread Khem Raj
2010/11/21 Eric Bénard : > * setting PACKAGE_ARCH = "${MACHINE_ARCH}" in an amend.inc actually > leads to a package with the correct machine arch but the > work/stage/stamp dirs are not correct because MULTIMACH_ARCH is not > updated after amend.inc is parsed. > > * this patch : > - factorizes the

[oe] [PATCH] handle PACKAGE_ARCH change in an amend.inc

2010-11-21 Thread Eric Bénard
* setting PACKAGE_ARCH = "${MACHINE_ARCH}" in an amend.inc actually leads to a package with the correct machine arch but the work/stage/stamp dirs are not correct because MULTIMACH_ARCH is not updated after amend.inc is parsed. * this patch : - factorizes the code which compute MULTIMACH_ARCH in b