[oe] [PATCH 2/2] conf/bitbake.conf: add DISTRO_ARCH and MACHINE_DISTRO_ARCH

Phil Blundell philb at gnu.org
Mon Feb 28 17:54:44 UTC 2011


On Mon, 2011-02-28 at 17:04 +0000, Otavio Salvador wrote:
> We have a set of products that reuse a common distro definition but
> has different needs on a small set of packages. To avoid having them
> all rebuild we set those to DISTRO_ARCH and the ones that depends on
> machine and distro to MACHINE_DISTRO_ARCH avoiding a lot of rebuilding
> and CPU time.

That sounds to me like you're using ${DISTRO} for a purpose that was not
really intended.  I do have some sympathy for the scenario you mention
but I'm not convinced that adding these new ARCHS for everyone is the
right answer. 

Obviously you're welcome to bash PACKAGE_ARCHS any way you want in your
own DISTRO.conf file and I think that's probably the right place for
this sort of thing rather than putting it in the global bitbake.conf and
causing extra complexity for everyone.  Or maybe you could consider
using ${MACHINE}, which is already a PACKAGE_ARCH, to discriminate
between the different packages.

p.






More information about the Openembedded-devel mailing list