[linux-yocto] [PATCH] configme : Match KARCH onto kernel.org arch

Saul Wold sgw at linux.intel.com
Tue Jan 5 21:45:13 PST 2016


On Tue, 2016-01-05 at 23:16 -0500, Bruce Ashfield wrote:
> On 2016-01-05 5:12 PM, Megha Dey wrote:
> > When qemux86 is selected as MACHINE type, and a custom linux kernel
> > is built, yocto assumes KARCH to be x86. This leads to a 64 bit
> > config file getting generated instead of a 32 bit one. Hence,
> > always
> > make KARCH as i386 when a 32 bit MACHINE type is selected.
> > 
> > Signed-off-by: Megha Dey <megha.dey at intel.com>
> > ---
> >   tools/configme | 3 +++
> >   1 file changed, 3 insertions(+)
> > 
> > diff --git a/tools/configme b/tools/configme
> > index 903b3c1..9651280 100755
> > --- a/tools/configme
> > +++ b/tools/configme
> > @@ -201,6 +201,9 @@ run_board_config()
> >       if [ $KARCH == "mips64" ]; then
> >   	KARCH=mips
> >       fi
> > +    if [ $KARCH == "x86" ]; then
> > +	KARCH=i386
> 
> i386 is obsolete, and x86 should be used with the appropriate
> 32 bit configs.
> 
> I purged all i386 references quite some time ago, since they
> can trigger other subtle errors.
> 
> Can you elaborate on what exactly what you are building, and
> what fragments are in play that a 64 bit kernel is being
> generated incorrectly ? We always go out of our way to specify
> 32 or 64 bit for that reason.
> 
Is this similar to the problem that Jianxun encountered and sent a
patch before the break to the OE-Core list
http://lists.openembedded.org/pipermail/openembedded-core/2015-December
/113708.html

It looks very close, we are working on validating this patch with a
lttng-modules failures first.


Sau!


> Bruce
> 
> > +    fi
> > 
> >       if [ -z "$BUILD_DIR" ]; then
> >   	echo No build dir specified.  Use \"-o\" to specify one.
> > 
> 


More information about the linux-yocto mailing list