]> code.ossystems Code Review - openembedded-core.git/commit
kernel/kernel-arch: Explicitly mapping between i386/x86_64 and x86 for kernel ARCH
authorJianxun Zhang <jianxun.zhang@linux.intel.com>
Tue, 12 Jan 2016 21:53:56 +0000 (13:53 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Jan 2016 15:44:37 +0000 (15:44 +0000)
commit8d310b24927d0f348fb431895f0583733db2aad0
tree2ba8f2fb90e7cfff0701ef82f3ce0b7e3c75f9f7
parent9a2d4a3b8d7bb1cf7f1fb7fe47d5c002d9941c89
kernel/kernel-arch: Explicitly mapping between i386/x86_64 and x86 for kernel ARCH

For a bare-bone kernel recipe which specifies 32 bit x86 target,
a 64 bit .config will be generated from do_configure task when
building 32-bit qemux86, once all of these conditions are true:

* arch of host is x86_64
* kernel source tree used in build has commit ffee0de41 which
  actually chooses i386 or x86_64 defconfig by asking host when
  ARCH is "x86" (arch/x86/Makefile)
* bare-bone kernel recipe inherits directly from kernel without
  other special treatments.

Build will fail because of the mismatched kernel architecture.

The patch sets ARCH i386 or x86_64 explicitly to configure
task to avoid this host contamination. Kernel artifact is also
changed so that it can map i386 and x64 back to arch/x86 when
needed.

Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-arch.bbclass
meta/classes/kernel.bbclass