[oe] [RFC] A case of distro config overriding DISTRO var

Richard Purdie rpurdie at rpsys.net
Sat Feb 9 19:04:33 UTC 2008


On Sat, 2008-02-09 at 21:04 +0200, Paul Sokolovsky wrote:
> On Sat, 09 Feb 2008 18:42:49 +0000
> Richard Purdie <rpurdie at rpsys.net> wrote:
> > On Sat, 2008-02-09 at 11:56 +0200, Paul Sokolovsky wrote:
> > > ============================================================
> > > --- classes/image.bbclass
> > > 4d92381733b09bae07a07da35bd0024744924c3c +++
> > > classes/image.bbclass
> > > 6eeae6a01c36465bc36cc737d42ea6b8ab09b152 @@ -90,6 +90,7 @@ fakeroot
> > > do_rootfs () { ${IMAGE_PREPROCESS_COMMAND} 
> > >  	export TOPDIR=${TOPDIR}
> > > +	export DISTRO=${USERDISTRO}
> > >  	export MACHINE=${MACHINE}
> > 
> > This could be rather confusing, can we not have:
> > 
> > USERDISTRO=${USERDISTRO}
> > 
> > then its obvious which variable we mean?
> 
> Not sure I understand. USERDISTRO is the variable which holds *real*
> DISTRO value, and here, we just use that real value to set a top-level
> parameter DISTRO for a tool which expects such top-level parameter
> (bbimage in this case).

Can it not expect USERDISTRO though? Where exactly is this being used?

I just worry that people are going to get confused if we call this
DISTRO since its not the value in the "DISTRO" variable...

Cheers,

Richard







More information about the Openembedded-devel mailing list