[OE-core] [RFC][PATCH] bitbake.conf: make OVERRIDES match what people expect

Richard Purdie richard.purdie at linuxfoundation.org
Thu May 26 23:37:37 UTC 2011


On Thu, 2011-05-26 at 17:18 +0200, Koen Kooi wrote:
> Op 24 mei 2011, om 16:04 heeft Koen Kooi het volgende geschreven:
> 
> > In the current situation TARGET_ARCH will override MACHINE, which is counter intuitive since the machine is more specific than the arch.
> > 
> > The order is now pn-$PN} -> arch -> machine -> distro as the machine is a set of defaults and the distro is the ultimate policy.
> > 
> > 'failfast' has been removed since it's not used anymore, just like 'local'
> > ---
> > meta/conf/bitbake.conf |   12 ++++++------
> > 1 files changed, 6 insertions(+), 6 deletions(-)
> > 
> > diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> > index a0af672..59238b8 100644
> > --- a/meta/conf/bitbake.conf
> > +++ b/meta/conf/bitbake.conf
> > @@ -602,15 +602,15 @@ AUTO_LIBNAME_PKGS = "${PACKAGES}"
> > # 
> > # This means that an envionment variable named '<foo>_arm' overrides an
> > # environment variable '<foo>' (when ${TARGET_ARCH} is arm).
> > -# An environment variable '<foo>_ramses' overrides '<foo>' but doesn't override
> > -# '<foo>_arm' when ${MACHINE} is 'ramses'. 
> > -# If you use combination ie '<foo>_arm_ramses', then '<foo>_arm_ramses' will override 
> > -# '<foo>_arm' and then '<foo>' will be overriden with that value from '<foo>_arm'.
> > -# And finally '<foo>_local' overrides any standard variable, but with lowest priority.
> > +# An environment variable '<foo>_qemuarm' overrides '<foo>' and overrides
> > +# '<foo>_arm' when ${MACHINE} is 'qemuarm'. 
> > +# If you use combination ie '<foo>_qemuarm_arm', then '<foo>_qemuarm_arm' will override 
> > +# '<foo>_qemuarm' and then '<foo>' will be overriden with that value from '<foo>_qemuarm'.
> > +# And finally '<foo>_forcevariable' overrides any standard variable, with the highest priority.
> > #
> > # This works for  functions as well, they are really just environment variables.
> > # Default OVERRIDES to make compilation fail fast in case of build system misconfiguration.
> > -OVERRIDES = "local:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${TARGET_OS}:${TARGET_ARCH}:build-${BUILD_OS}:fail-fast:pn-${PN}:forcevariable"
> > +OVERRIDES = "${TARGET_OS}:${TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:forcevariable"
> > DISTROOVERRIDES ?= "${DISTRO}"
> > MACHINEOVERRIDES ?= "${MACHINE}"
> 
> So what's the verdict on this one?

Its a major change so I'm leaving time for people to see it. I think the
discussion that was had has died out though.

Cheers,

Richard









More information about the Openembedded-core mailing list