[bitbake-devel] [PATCH 2/3] data_smart: Allow numeric characters in overrides

richard.purdie at linuxfoundation.org richard.purdie at linuxfoundation.org
Wed Dec 19 19:59:49 UTC 2018


On Wed, 2018-12-19 at 16:12 +0000, Peter Kjellerstedt wrote:
> > -----Original Message-----
> > From: richard.purdie at linuxfoundation.org
> > <richard.purdie at linuxfoundation.org>
> > Sent: den 19 december 2018 12:42
> > To: Peter Kjellerstedt <peter.kjellerstedt at axis.com>; bitbake-
> > devel at lists.openembedded.org
> > Subject: Re: [bitbake-devel] [PATCH 2/3] data_smart: Allow numeric
> > characters in overrides
> > 
> > On Wed, 2018-12-19 at 10:55 +0000, Peter Kjellerstedt wrote:
> > > I don't understand the commit message either. It says that there
> > > are
> > > problems with x86-64 because it contains digits, but x86 (which
> > > the
> > > commit message says works) contains digits too, so that cannot
> > > really
> > > be the case. If it is actually the dash in x86-64 that is
> > > supposedly
> > > a cause of problems, then islower() ignores both digits and non-
> > > alpha
> > > characters like the dash so that cannot really be a reason to
> > > change
> > > the code either. All in all I'm confused by this commit and what
> > > it
> > > is trying to solve...
> > 
> > Consider this output from python:
> > 
> > > > > "64".islower()
> > False
> > > > > "x64".islower()
> > True
> > > > > "x64A".islower()
> > False
> > 
> > The problem is that "64".islower() returns False when we need True
> > (overrides get split by '_' so x86_64 turns into "x86" and "64" in
> > the
> > code in question).
> > 
> > Cheers,
> > 
> > Richard
> 
> Ok, that makes more sense, except for one thing: where/when is _x86_64 
> used as override(s)? The only related overrides I can find in OE-Core 
> all use _x86-64, which matches ${TRANSLATED_TARGET_ARCH} for, e.g., 
> qemux86-64.

Its not obvious as its indirect:

conf/distro/include/maintainers.inc:RECIPE_MAINTAINER_pn-gcc-cross-${TARGET_ARCH} = "Khem Raj <raj.khem at gmail.com>"

That worked for MACHINE=qemux86 but not for MACHINE=qemux86-64.

Arguably you could rename that to use TRANSLATED_TARGET_ARCH but I seem
to remember there were others which would have been harder to rename
out of.

We should add some testcases to bitbake-selftest for this.

Cheers,

Richard



More information about the bitbake-devel mailing list