poky/meta
Tom Zanussi 00b016b010 Revert "kernel/kernel-arch: Explicitly mapping between, i386/x86_64 and x86 for kernel ARCH"
This reverts commit a6f52930a6.

In addition to also causing the problem in [YOCTO #9579], this commit
was reverted in krogoth and master but wasn't reverted in jethro but
should be.  The original revert message was:

This reverts commit 8d310b24927d0f348fb431895f0583733db2aad0.

That commit completely breaks KBUILD_DEFCONFIG because it relies on
$ARCH to match between the target OE arch and the kernel subdirectory
containing the defconfigs. In the kernel all defconfigs for everything
x86-based (including x86_64) is stored in dir arch/x86/configs/

kernel-yocto.bbclass correctly searches for all the defconfigs inside
${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG}

Commit 8d310b249 makes it search in wrong places and _only_ if you
define TARGET_ARCH = "athlon" will it search x86 which is nonsensical.

The commit further adds an if clause to hack the mungled kernel arches
back to their original values (ugh) in do_shared_workdir which is run
after do compile, but of course the build breaks before that in
do_kernel_metadata because of the KBUILD_DEFCONFIG mentioned above (so
that hack is useless).

Please fix that corner case bug in another way which does not completely
screw up the kernel arch mapping & defconfig logic. If 64bit configs are
generated in the kernel for 32bit machines because the host is asked,
then it it a bug in the kernel, it is of no use to hack around it in OE.

(From OE-Core rev: bc02a478a5d4a5de7b3943ed809d5c22711f5b1f)

(From OE-Core rev: 88e0032f13f635c868c426e963db4d8a6fc42e9d)

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-11 12:37:06 +01:00
..
classes Revert "kernel/kernel-arch: Explicitly mapping between, i386/x86_64 and x86 for kernel ARCH" 2016-05-11 12:37:06 +01:00
conf tune-corei7.inc: Fix PACKAGE_EXTRA_ARCHS for corei7-32 2016-03-15 11:29:04 +00:00
files toolchain-shar-extract.sh: do not allow $ in paths for ext SDK 2016-01-12 08:42:29 +00:00
lib lib/oe/patch: Make GitApplyTree._applypatch() support read-only .git/hooks 2016-03-20 09:55:53 +00:00
recipes-bsp grub: Security fix CVE-2015-8370 2016-02-04 23:20:16 +00:00
recipes-connectivity bind: CVE-2016-1285 CVE-2016-1286 2016-05-09 14:37:28 +01:00
recipes-core glibc: Fix CVE-2015-8778 2016-05-11 12:37:06 +01:00
recipes-devtools gdb: fix QA warning (uClibc) 2016-05-11 12:37:06 +01:00
recipes-extended tzdata: update to 2016d 2016-05-09 14:37:28 +01:00
recipes-gnome gcr: Require x11 DISTRO_FEATURE 2016-02-04 23:20:17 +00:00
recipes-graphics glew: Correct version in autotooling patches 2016-05-11 12:37:06 +01:00
recipes-kernel lttng-tools: fix regression tests hang 2016-04-11 22:02:04 +01:00
recipes-lsb4 libpng12: update URL that no longer exists 2016-02-04 23:20:17 +00:00
recipes-multimedia libpng: Security fix CVE-2015-8472 2016-02-07 22:55:24 +00:00
recipes-qt qt4: Fix kmap2qmap build with clang 2015-09-23 09:53:00 +01:00
recipes-rt rt-tests: drop unnecessary added-missing-dependencies.patch 2015-09-01 11:44:04 +01:00
recipes-sato webkitgtk, gcr, libsecret: force ARM mode 2015-10-12 14:36:30 +01:00
recipes-support boost: ensure boost to remain an empty metapackage 2016-04-11 22:02:04 +01:00
site siteinfo: Add nios2-linux 2015-09-23 09:53:07 +01:00
COPYING.GPLv2
COPYING.MIT
recipes.txt