poky/meta/classes
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
..
allarch.bbclass allarch: Force TARGET_*FLAGS variable values 2015-12-08 10:27:14 +00:00
archiver.bbclass archiver.bbclass: Fixes and improves archiver class for kernel and gcc packages 2015-10-21 22:59:27 +01:00
autotools_stage.bbclass
autotools-brokensep.bbclass autotools-brokensep: Mark recipes with broken separate build dir support 2014-02-28 14:01:16 +00:00
autotools.bbclass autotools: Allow recipe-individual configure scripts 2016-01-12 08:42:30 +00:00
base.bbclass base: check for existing prefix when expanding names in PACKAGECONFIG 2016-03-11 23:15:01 +00:00
bin_package.bbclass
binconfig-disabled.bbclass binconfig-disabled: write an message to stderr to help confused developers 2015-08-19 18:05:43 +01:00
binconfig.bbclass *.bbclass (shell): avoid pipe with sed 2014-05-08 13:00:33 +01:00
blacklist.bbclass Revert "base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()" 2015-08-11 09:28:52 -07:00
bluetooth.bbclass bluetooth.bbclass: simplify recipe inference of bluetooth provider 2015-02-17 13:43:38 +00:00
boot-directdisk.bbclass boot-directdisk.bbclass: remove HDDIMG before create 2016-05-09 14:37:28 +01:00
bootimg.bbclass IMAGES_FSTYPES: default to EXT4 2015-08-16 22:40:51 +01:00
bugzilla.bbclass
buildhistory.bbclass buildhistory: fix not recording SDK information 2016-01-15 15:51:40 +00:00
buildstats-summary.bbclass buildstats-summary: add eventmask 2015-05-24 07:19:18 +01:00
buildstats.bbclass classes/buildstats: misc cleanups 2015-05-07 13:40:36 +01:00
ccache.bbclass
chrpath.bbclass meta: Add explict getVar param for (non) expansion 2015-06-23 11:57:25 +01:00
clutter.bbclass
cmake.bbclass classes/cmake: add arch conversion routine 2015-08-24 23:46:58 +01:00
cml1.bbclass cml1.bbclass: make menuconfig task configurable 2015-08-11 09:28:50 -07:00
compress_doc.bbclass compress_doc.bbclass: support update-alternatives 2014-12-03 12:23:59 +00:00
copyleft_compliance.bbclass archiver.bbclass: make it can filter the license 2014-03-25 09:55:35 +00:00
copyleft_filter.bbclass copyleft_filter.bbclass: Allow to filter on name 2015-06-23 11:46:57 +01:00
core-image.bbclass packagegroup-core-nfs: provide the nfs-client IMAGE_FEATURES 2015-09-12 22:48:32 +01:00
cpan_build.bbclass perl: Remove errornous extra path-specs for Module::Build based modules 2015-10-29 07:31:17 +00:00
cpan-base.bbclass perl: fix Perl5 module builds 2015-10-29 07:31:17 +00:00
cpan.bbclass perl: fix Perl5 module builds 2015-10-29 07:31:17 +00:00
cross-canadian.bbclass cross-canadian.bbclass: big-endian ARM is also gnueabi. 2015-10-01 07:43:33 +01:00
cross.bbclass cross.bbclass: override MULTIMACH_TARGET_SYS 2015-08-01 07:34:05 +01:00
crosssdk.bbclass crosssdk: Clear MACHINEOVERRIDES 2014-08-16 08:22:45 +01:00
debian.bbclass debian: Add versions to RPROVIDES 2015-07-20 10:40:40 +01:00
deploy.bbclass deploy: Mark deploy tasks as MACHINE specific 2015-10-01 07:43:36 +01:00
devshell.bbclass devshell: allow the starting directory to be overridden 2015-03-16 17:41:55 +00:00
distro_features_check.bbclass distro_features_check: add any of test 2015-05-09 22:26:45 +01:00
distrodata.bbclass classes/distrodata: split SRC_URI properly before determining type 2016-01-12 08:42:27 +00:00
distutils-base.bbclass classes/distutils: Introduce PYTHON_PN 2014-02-02 22:37:38 +00:00
distutils-common-base.bbclass distutils-common-base: add to, don't set, FILES_${PN} 2015-06-23 11:47:39 +01:00
distutils-native-base.bbclass classes/distutils: Introduce PYTHON_PN 2014-02-02 22:37:38 +00:00
distutils-tools.bbclass classes: Add distutils for python3 2014-02-02 22:37:39 +00:00
distutils.bbclass distutils.bbclass: Handle python-backport modules 2015-09-14 20:46:38 +01:00
distutils3-base.bbclass python3: Change python BASEVERSION to 3.4 2015-05-07 13:40:33 +01:00
distutils3-native-base.bbclass python3: Change python BASEVERSION to 3.4 2015-05-07 13:40:33 +01:00
distutils3.bbclass distutils3: Avoid MACHINE specific checksums 2015-10-01 07:43:36 +01:00
externalsrc.bbclass classes/externalsrc: fix setting of deps varflag as a string 2015-09-23 09:53:13 +01:00
extrausers.bbclass
fontcache.bbclass fontcache: allow to pass extra parameters and environment to fc-cache 2015-10-01 17:54:55 +01:00
fs-uuid.bbclass boot loader: support root=UUID 2015-09-06 15:26:25 +01:00
gconf.bbclass meta: Add explict getVar param for (non) expansion 2015-06-23 11:57:25 +01:00
gettext.bbclass
gnome.bbclass gnome: move introspection options to gnomebase 2015-08-24 23:46:53 +01:00
gnomebase.bbclass classes/gnomebase: change tarball compression to xz 2015-08-24 23:46:58 +01:00
grub-efi.bbclass grub-efi, gummiboot: Emit correct path in startup.nsh 2015-10-19 17:57:58 +01:00
gsettings.bbclass
gtk-doc.bbclass gtk-doc: Add pkgconfig inherit 2014-06-25 13:51:48 +01:00
gtk-icon-cache.bbclass gtk-icon-cache: pass the native libdir to the intercept 2015-10-29 07:31:16 +00:00
gtk-immodules-cache.bbclass meta: Add explict getVar param for (non) expansion 2015-06-23 11:57:25 +01:00
gummiboot.bbclass grub-efi, gummiboot: Emit correct path in startup.nsh 2015-10-19 17:57:58 +01:00
gzipnative.bbclass
icecc.bbclass meta: Add explict getVar param for (non) expansion 2015-06-23 11:57:25 +01:00
image_types_uboot.bbclass image_types_uboot: add cpio.gz.uboot to supported IMAGE_TYPES 2016-03-11 10:57:03 +00:00
image_types.bbclass image_types.bbclass: Rebuild when WICVARS change 2016-03-11 10:57:03 +00:00
image-buildinfo.bbclass image-buildinfo.bbclass: new class, writes build information to image 2014-11-09 10:21:22 +00:00
image-live.bbclass image-live: make SYSLINUX_ROOT changable in image recipes 2015-10-19 17:57:59 +01:00
image-mklibs.bbclass image-mklibs.bbclass: update i586 TARGET_ARCH test to i*86 2015-10-27 07:24:27 +00:00
image-prelink.bbclass image/image-prelink/image-mklibs/sanity: Drop pointless EXPORT_FUNCTIONS 2014-04-01 23:37:01 +01:00
image-swab.bbclass image-swab.bbclass: Account for eglibc -> glibc move 2014-09-01 18:03:04 +01:00
image-vm.bbclass image types: add hdddirect 2015-09-28 12:00:21 +01:00
image.bbclass image.bbclass: tweak the key location for dropbear when rootfs is readonly 2015-10-01 07:43:37 +01:00
insane.bbclass classes/insane: rename invalid-pkgconfig QA check to invalid-packageconfig 2015-10-27 07:24:26 +00:00
kernel-arch.bbclass Revert "kernel/kernel-arch: Explicitly mapping between, i386/x86_64 and x86 for kernel ARCH" 2016-05-11 12:37:06 +01:00
kernel-fitimage.bbclass kernel: Add basic fitImage support 2015-05-26 10:57:52 +01:00
kernel-grub.bbclass *.bbclass (shell): avoid pipe with sed 2014-05-08 13:00:33 +01:00
kernel-module-split.bbclass kernel-module-split.bbclass: Avoid bogus recommends for modules ending with -dev 2015-03-25 12:39:42 +00:00
kernel-uboot.bbclass kernel: Correct mishandling of linux.bin for building uImage 2015-08-14 08:30:33 +01:00
kernel-uimage.bbclass kernel: Build uImage only when really needed 2015-05-26 10:57:52 +01:00
kernel-yocto.bbclass kernel-yocto: fix checkout bare-cloned kernel repositories 2016-02-04 23:20:15 +00:00
kernel.bbclass Revert "kernel/kernel-arch: Explicitly mapping between, i386/x86_64 and x86 for kernel ARCH" 2016-05-11 12:37:06 +01:00
kernelsrc.bbclass kernelsrc.bbclass: fix KERNEL_VERSION 2015-03-16 17:41:56 +00:00
lib_package.bbclass
libc-common.bbclass libc-common.bbclass: rename ALL the packages 2014-08-23 23:01:57 +01:00
libc-package.bbclass libc-package: Fix localedef multilib dependency issues 2015-10-20 10:12:01 +01:00
license.bbclass license.bbclass: fix warnings when run in unprivileged "container" env 2016-05-09 14:37:28 +01:00
linux-kernel-base.bbclass kernel: Rearrange for 1.8 2014-12-21 12:37:53 +00:00
logging.bbclass classes/logging: allow shell message functions to work in devshell 2015-07-16 15:09:24 +01:00
meta.bbclass meta: fix no newline at end of file 2014-07-03 17:41:16 +01:00
metadata_scm.bbclass classes/metadata_scm: fix git errors showing up on non-git repositories 2016-01-12 08:42:28 +00:00
migrate_localcount.bbclass
mime.bbclass mime.bbclass: remove the --disable-update-mimedb 2014-01-06 11:13:56 +00:00
mirrors.bbclass mirrors.bbclass: Update gnutls mirrors 2015-09-01 11:44:00 +01:00
module-base.bbclass module/module-base/lttng-modules: Improve kernel module dependencies 2015-05-14 11:43:56 +01:00
module.bbclass module/module-base/lttng-modules: Improve kernel module dependencies 2015-05-14 11:43:56 +01:00
multilib_global.bbclass multilib_global: Add handling of SIGGEN variables for multilib 2015-10-01 07:43:35 +01:00
multilib_header.bbclass multilib_header: Do not install mutlilib headers for musl 2014-06-01 14:29:29 +01:00
multilib.bbclass mulitlib: Ensure SDKTARGETSYSROOT is set correctly 2015-09-28 12:00:17 +01:00
native.bbclass native: Move virtclass override to earlier so DEPENDS is handled correctly 2015-07-21 23:37:21 +01:00
nativesdk.bbclass nativesdk.bbclass: set sbindir to bindir 2015-08-30 12:35:59 +01:00
oelint.bbclass meta: Add explict getVar param for (non) expansion 2015-06-23 11:57:25 +01:00
own-mirrors.bbclass mirrors.bbclass: drop support for svk sources 2015-05-05 22:15:17 +01:00
package_deb.bbclass package_*.bbclass: Ensure OVERRIDES doesn't change sstate signature 2015-08-30 12:36:01 +01:00
package_ipk.bbclass package_*.bbclass: Ensure OVERRIDES doesn't change sstate signature 2015-08-30 12:36:01 +01:00
package_rpm.bbclass package_rpm: support signing of rpm packages 2015-09-03 12:43:19 +01:00
package_tar.bbclass meta: Add explict getVar param for (non) expansion 2015-06-23 11:57:25 +01:00
package.bbclass prserv.bbclass: remove it since it is null 2015-10-27 07:24:28 +00:00
packagedata.bbclass packagedata: Fix to ensure variables expand correctly 2015-06-16 14:21:29 +01:00
packagegroup.bbclass packagegroup.bbclass: Use immediate expanded PACKAGE_ARCH value 2014-09-10 15:38:57 +01:00
packageinfo.bbclass
patch.bbclass patch.bbclass: unset TMPDIR after use 2014-06-29 09:04:22 +01:00
perlnative.bbclass
pixbufcache.bbclass gtk-icon-cache/pixbufcache: don't set GDK_PIXBUF_MODULEDIR 2015-09-28 12:00:17 +01:00
pkgconfig.bbclass
populate_sdk_base.bbclass populate_sdk_base: Ensure PKGDATA_DIR exists 2015-10-27 07:24:29 +00:00
populate_sdk_ext.bbclass classes/populate_sdk_ext: disable signature warnings 2016-01-15 15:51:41 +00:00
populate_sdk.bbclass
prexport.bbclass
primport.bbclass
ptest-gnome.bbclass ptest-gnome: add ptest helper for GNOME packages 2014-07-25 15:33:59 +01:00
ptest.bbclass ptest: run-ptest not required to run do_install_ptest 2015-10-01 15:07:48 +01:00
python-dir.bbclass distutils: Introduce PYTHON_ABI variable 2014-02-02 22:37:39 +00:00
python3native.bbclass python3: Change python BASEVERSION to 3.4 2015-05-07 13:40:33 +01:00
pythonnative.bbclass pythonnative: set PYTHON_EXECUTABLE so that cmake can find it 2014-12-25 08:18:13 +00:00
qemu.bbclass qemu/libc-package: Fix qemu option handling 2014-12-05 18:01:08 +00:00
qmake_base.bbclass qmake_base.bbclass: fix hardcoded paths in a generated qt.conf 2015-02-14 08:40:57 +00:00
qmake2.bbclass
qt4e.bbclass Revert "qt4*.bbclass: disable build qt on mips64 with 64 bits userspace" 2014-12-05 18:01:05 +00:00
qt4x11.bbclass recipes-qt: add x11 to required DISTRO_FEATURES 2015-01-29 15:36:51 +00:00
recipe_sanity.bbclass recipe_sanity.bbclass: avoid error when running 'bitbake -e' 2014-04-23 11:43:27 +01:00
relocatable.bbclass
report-error.bbclass report-error.bbclass: Support Unicode reports 2015-10-07 00:11:20 +01:00
rm_work.bbclass kernel/rm_work: Improve interaction 2015-05-15 17:44:59 +01:00
rootfs_deb.bbclass rootfs_*: Refactor common depends/lockfile task flags 2014-08-15 18:21:46 +01:00
rootfs_ipk.bbclass opkg: Merge in opkg-collateral 2015-02-03 14:53:56 +00:00
rootfs_rpm.bbclass rootfs_*: Refactor common depends/lockfile task flags 2014-08-15 18:21:46 +01:00
rootfsdebugfiles.bbclass rootfsdebugfiles.bbclass: quick-and-dirty installation of additional files 2015-04-24 11:06:55 +01:00
sanity.bbclass sanity: check that the host has file installed 2015-10-27 07:24:29 +00:00
scons.bbclass Use die() or bbfatal_log() where the log should definitely be printed 2015-07-16 15:09:23 +01:00
sdl.bbclass
setuptools.bbclass classes: Add distutils for python3 2014-02-02 22:37:39 +00:00
setuptools3.bbclass python3-distribute: Upgrade to python3-setuptools 15.2 2015-06-08 17:34:04 +01:00
sign_package_feed.bbclass package signing: automatically export public keys 2015-10-27 07:24:25 +00:00
sign_rpm.bbclass package signing: automatically export public keys 2015-10-27 07:24:25 +00:00
sip.bbclass *.bbclass (shell): avoid pipe with sed 2014-05-08 13:00:33 +01:00
siteconfig.bbclass meta-environment: Fix config-site with a multilib config 2014-11-12 15:38:33 +00:00
siteinfo.bbclass siteinfo.bbclass: Add MicroBlaze big endian target info 2015-05-05 22:15:17 +01:00
spdx.bbclass spdx.bbclass: improved error handling and code cleanup 2014-11-20 14:08:14 +00:00
sstate.bbclass sstate: run recipe-provided hooks outside of ${B} 2015-09-28 12:00:22 +01:00
staging.bbclass staging: Strip files in sysroot 2015-06-23 16:07:23 +01:00
syslinux.bbclass boot loader: support root=UUID 2015-09-06 15:26:25 +01:00
systemd.bbclass systemd.bbclass: Use systemd_system_unitdir 2015-08-10 12:40:29 -07:00
terminal.bbclass terminal.bbclass: do not export PS1 2014-01-10 15:16:52 +00:00
testimage-auto.bbclass testimage: add task level lock 2014-03-05 15:50:20 +00:00
testimage.bbclass testimage: Added IO commands to dumps 2015-10-01 17:54:55 +01:00
texinfo.bbclass texinfo.bbclass: native/cross uses dummy texinfo; target uses host's Texinfo. 2014-06-13 12:31:38 +01:00
tinderclient.bbclass
toaster.bbclass toaster.bbclass: Fix ValueError 2015-07-27 12:28:00 +01:00
toolchain-scripts.bbclass toolchain-scripts.bbclass: unset command_not_found_handle 2016-01-12 08:42:30 +00:00
typecheck.bbclass
uboot-config.bbclass uboot-config.bbclass: Allow multiple U-Boot config for machine 2015-02-08 08:00:24 +00:00
uninative.bbclass uninative.bbclass: Choose the correct loader based on BUILD_ARCH 2016-01-12 08:42:27 +00:00
update-alternatives.bbclass meta: Add explict getVar param for (non) expansion 2015-06-23 11:57:25 +01:00
update-rc.d.bbclass update-rc.d.bbclass: explicitly dep on initscripts 2015-08-30 12:35:58 +01:00
useradd_base.bbclass useradd_base.bbclass: Do not warn without a reason 2015-10-21 22:56:05 +01:00
useradd-staticids.bbclass useradd-staticids.bbclass: Do not require trailing colons 2015-10-29 07:31:16 +00:00
useradd.bbclass classes/useradd: don't read bbnote/bbwarn/bbfatal values 2015-07-16 15:09:23 +01:00
utility-tasks.bbclass meta: Add explict getVar param for (non) expansion 2015-06-23 11:57:25 +01:00
utils.bbclass utils: Handle MLPREFIX in all_multilib_tune_values() 2015-08-01 07:34:04 +01:00
vala.bbclass vala.bbclass: enable PARALLEL_MAKE 2015-02-15 21:58:27 +00:00
waf.bbclass