poky/meta/classes
Juro Bystricky 0e730770a9 sanity.bbclass: Improved error message
When a non-existing MACHINE is specified, sanity check issues
the following message:

    Please set a valid MACHINE in your local.conf or environment

However, MACHINE can also be set in multiconfig .conf file(s).
Hence we may have several different MACHINE settings within one
(multiconfig) build, so the present error message is fairly
ambiguous.

This patch remedies this by explicitly naming the offending MACHINE and
by amending the list of places where this erroneous MACHINE definition
could have originated.

    MACHINE=xyz is invalid. Please set a valid MACHINE in your local.conf, environment or other configuration file.

[YOCTO#10810]

(From OE-Core rev: 7b7cbba0bb93893029118e5798ec5831838a5bd9)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a7cb408dd784178197687a2129e936620bf6a0d3)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-04-05 15:23:05 +01:00
..
allarch.bbclass allarch: Fixes to stop rebuilds when change multilibs 2016-10-01 21:45:57 +01:00
archiver.bbclass archiver: avoid archiving source for glibc-locale 2018-04-05 15:13:48 +01:00
autotools-brokensep.bbclass
autotools.bbclass classes/externalsrc: re-run do_configure when configure files change 2016-10-11 23:04:44 +01:00
base.bbclass base.bbclass: Use bb.fatal() instead of raising FuncFailed 2016-10-04 16:29:04 +01:00
bash-completion.bbclass bash-completion: add bash-completion to DEPENDS for target packages 2016-08-25 23:03:45 +01: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
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
bugzilla.bbclass
buildhistory.bbclass buildhistory: fix latest_srcrev in the common case 2018-04-05 15:13:48 +01:00
buildstats-summary.bbclass buildstats-summary: round the floating point percentage 2016-07-12 23:10:16 +01:00
buildstats.bbclass buildstats.bbclass: Avoid index exception in /proc/PID/io parsing 2018-03-14 07:55:53 -07:00
ccache.bbclass ccache.bbclass: don't remove CCACHE_DIR as part of do_clean 2016-08-17 10:35:40 +01:00
chrpath.bbclass chrpath.bbclass: Use bb.fatal() instead of raising FuncFailed 2016-10-04 16:29:05 +01:00
clutter.bbclass
cmake.bbclass cmake.bbclass: Set CXXFLAGS and CFLAGS 2017-01-11 17:21:41 +00:00
cml1.bbclass cml1: fix tasks after default [dirs] changed 2016-08-04 15:22:22 +01:00
compress_doc.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
copyleft_compliance.bbclass
copyleft_filter.bbclass copyleft_filter.bbclass: Allow to filter on name 2015-06-23 11:46:57 +01:00
core-image.bbclass Drop unneeded LIC_FILES_CHKSUM values 2016-05-11 10:33:43 +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 meta: Drop now pointless manual -dbg packaging 2015-12-16 11:56:30 +00:00
cpan.bbclass perl: fix Perl5 module builds 2015-10-29 07:31:17 +00:00
cross-canadian.bbclass cross-canadian/libgcc-common: Fixes for arm multilib 2016-09-30 16:51:15 +01:00
cross.bbclass classes/cross: set lt_cv_sys_lib_dlsearch_path_spec 2016-10-04 16:29:04 +01:00
crosssdk.bbclass bbclass: fix spelling mistakes 2015-11-24 15:50:27 +00:00
cve-check.bbclass cve-check: allow recipes to override the product name 2017-01-11 17:21:45 +00:00
debian.bbclass debian: Fix superfluous setting for RPROVIDES 2016-02-14 11:42:19 +00:00
deploy.bbclass deploy: Mark deploy tasks as MACHINE specific 2015-10-01 07:43:36 +01:00
devshell.bbclass devpyshell: python3: flush stdout explicitly 2016-07-08 09:57:23 +01:00
distro_features_check.bbclass distro_features_check: add any of test 2015-05-09 22:26:45 +01:00
distrodata.bbclass package_regex.inc: remove deprecated file 2016-05-19 22:32:07 +01:00
distutils-base.bbclass
distutils-common-base.bbclass distutils-common-base.bbclass: remove EXTRA_OEMAKE workaround 2016-09-03 09:58:40 +01:00
distutils-tools.bbclass python-native, python3-native: remove the use of exported HOST_SYS and BUILD_SYS variables 2016-06-01 12:38:41 +01:00
distutils.bbclass python-native, python3-native: remove the use of exported HOST_SYS and BUILD_SYS variables 2016-06-01 12:38:41 +01:00
distutils3-base.bbclass python3-dir.bbclass: add a separate class for Python 3 2016-06-01 12:38:41 +01:00
distutils3.bbclass python-native, python3-native: remove the use of exported HOST_SYS and BUILD_SYS variables 2016-06-01 12:38:41 +01:00
externalsrc.bbclass classes/externalsrc: re-run do_configure when configure files change 2016-10-11 23:04:44 +01:00
extrausers.bbclass extrausers.bbclass: drop retry count for perform_user/group* calls 2016-04-09 23:00:45 +01:00
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
gio-module-cache.bbclass gio-module-cache: Add class for Gio modules 2016-03-28 15:55:49 +01:00
gnome.bbclass gnome: move introspection options to gnomebase 2015-08-24 23:46:53 +01:00
gnomebase.bbclass gnomebase.bbclass: do not disable gobject introspection 2016-03-12 22:11:45 +00:00
gobject-introspection-data.bbclass classes/gobject-introspecton-data: lazy assign GI_DATA_ENABLED 2016-09-14 22:22:08 +01:00
gobject-introspection.bbclass pythonnative.bbclass, python3native.bbclass: export STAGING_INCDIR, STAGING_LIBDIR, PYTHON variables 2016-07-01 16:22:42 +01:00
grub-efi.bbclass grub-efi.bbclass: Use bb.fatal() instead of raising FuncFailed 2016-10-04 16:29:04 +01:00
gsettings.bbclass
gtk-doc.bbclass classes/gtk-doc: lazy assign GTKDOC_ENABLED 2016-09-14 22:22:08 +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 gtk-immodules-cache.bbclass: Use bb.fatal() instead of raising FuncFailed 2016-10-04 16:29:04 +01:00
gummiboot.bbclass gummiboot.bbclass: Use bb.fatal() instead of raising FuncFailed 2016-10-04 16:29:04 +01:00
gzipnative.bbclass
icecc.bbclass icecc.bbclass: prevent nativesdk builds depending on target specific KERNEL_CC 2017-08-29 16:50:54 +01:00
image_types_uboot.bbclass image.bbclass: Correct chaining compression support 2017-08-29 16:50:54 +01:00
image_types.bbclass image_types.bbclass: fix image dependency chain collection 2017-05-18 13:07:32 +01:00
image-buildinfo.bbclass image-buildinfo: restore trailing newline 2016-10-01 21:45:55 +01:00
image-live.bbclass image: Deploy images to IMGDEPLOYDIR 2016-09-04 00:07:28 +01:00
image-mklibs.bbclass image-mklibs: handle position independent binaries 2016-03-10 23:13:54 +00:00
image-prelink.bbclass image-prelink: use STAGING_*_NATIVE variables 2016-03-09 16:58:12 +00:00
image-vm.bbclass Remove RM_OLD_IMAGE, it's no longer useful 2016-10-15 10:01:42 +01:00
image.bbclass image/packagegroup/populate_sdk: Drop do_populate_sysroot task properly 2018-04-05 15:13:48 +01:00
insane.bbclass insane: consider INSANE_SKIP without package-specifier too 2018-03-04 11:12:12 +00:00
kernel-arch.bbclass kernel-arch.bbclass: Add xtensa and arc into valid_archs table 2016-10-15 10:01:43 +01:00
kernel-fitimage.bbclass kernel-fitimage: Add x86 support 2016-08-10 10:46:33 +01:00
kernel-grub.bbclass kernel: Add KERNEL_IMAGETYPES to build multi types kernel at one time 2016-05-30 15:58:11 +01:00
kernel-module-split.bbclass kernel-module-split.bbclass: no need for running depmod 2016-09-09 11:53:36 +01: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-uimage.bbclass: indeed update var KERNEL_IMAGETYPE_FOR_MAKE 2016-07-26 08:56:30 +01:00
kernel-yocto.bbclass kernel-yocto: explicitly trap subcommand errors 2017-01-11 17:21:45 +00:00
kernel.bbclass kernel.bbclass: fix KERNEL_IMAGETYPE(S) for Image.gz 2017-10-10 17:27:39 +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: Use sed instead of grep 2016-05-13 13:41:30 +01:00
libc-package.bbclass libc-package.bbclass: split binary localedata even more if asked to 2018-04-05 15:13:48 +01:00
license.bbclass kernel, license, sstate, rootfs.py: Remove deploy directory README 2017-08-29 23:43:50 +01:00
linux-kernel-base.bbclass kernel: Rearrange for 1.8 2014-12-21 12:37:53 +00:00
linuxloader.bbclass linuxloader.bbclass: Adjust mips to cover all mips/mips64 2016-10-07 16:43:58 +01:00
live-vm-common.bbclass live-vm-common.bbclass: Allow to use different kernel image than KERNEL_IMAGETYPE for /vmlinuz 2016-10-15 10:01:43 +01:00
logging.bbclass classes/logging: allow shell message functions to work in devshell 2015-07-16 15:09:24 +01:00
meta.bbclass
metadata_scm.bbclass metadata_scm.bbclass: Do not assume ${COREBASE} is a Git repo 2016-05-11 10:33:42 +01:00
migrate_localcount.bbclass
mime.bbclass
mirrors.bbclass GNU_MIRROR: switch from ftp to https 2017-08-29 16:50:53 +01:00
module-base.bbclass bbclass: fix spelling mistakes 2015-11-24 15:50:27 +00:00
module.bbclass module.bbclass: use Module.symvers for dependants 2016-09-09 11:53:36 +01:00
multilib_global.bbclass Fix random python backtrace in mutlilib handling code. 2016-08-04 15:22:22 +01:00
multilib_header.bbclass multilib_header: avoid sstate checksum issues for -nativesdk recipes 2016-10-01 21:45:56 +01:00
multilib.bbclass base.bbclass: drop obsolete HOSTTOOLS_WHITELIST_GPL-3.0 2016-04-01 07:14:30 +01:00
native.bbclass classes/native: set lt_cv_sys_lib_dlsearch_path_spec 2016-10-04 16:29:04 +01:00
nativesdk.bbclass classes/nativesdk: set SDK_OLDEST_KERNEL appropriately 2016-11-16 10:37:56 +00:00
nopackages.bbclass nopackages.bbclass: deltask foo_setscene 2016-05-30 15:58:11 +01:00
npm.bbclass recipetool: create: support node.js code outside of npm 2016-09-08 00:36:49 +01:00
oelint.bbclass classes/oeqa: Update for print statements and file() -> open() for python3 2016-05-16 09:31:23 +01:00
own-mirrors.bbclass mirrors/own-mirrors/sanity: Updates after npm fetcher addition 2016-02-28 11:32:57 +00:00
package_deb.bbclass package_deb.bbclass: Use bb.fatal() instead of raising FuncFailed 2016-10-04 16:29:04 +01:00
package_ipk.bbclass package_ipk: Clean up Source entry in ipk packages 2017-06-16 10:21:06 +01:00
package_rpm.bbclass package_rpm.bbclass: Use bb.fatal() instead of raising FuncFailed 2016-10-04 16:29:04 +01:00
package_tar.bbclass package_tar: avoid chdir warnings and restore cwd after packaging 2016-10-15 10:01:43 +01:00
package.bbclass package.bbclass: Use bb.fatal() instead of raising FuncFailed 2016-10-04 16:29:05 +01:00
packagedata.bbclass packagedata: Fix to ensure variables expand correctly 2015-06-16 14:21:29 +01:00
packagefeed-stability.bbclass packagefeed-stability.bbclass: cleansstate should remove pkgs from deploy dir 2016-08-20 16:06:04 +01:00
packagegroup.bbclass image/packagegroup/populate_sdk: Drop do_populate_sysroot task properly 2018-04-05 15:13:48 +01:00
patch.bbclass lib/oe/patch: commit with a dummy user/email when PATCHTOOL=git 2016-09-03 23:45:52 +01:00
perlnative.bbclass
pixbufcache.bbclass pixbufcache: handle gdk-pixbuf not being present 2016-10-15 10:01:42 +01:00
pkgconfig.bbclass
populate_sdk_base.bbclass image/packagegroup/populate_sdk: Drop do_populate_sysroot task properly 2018-04-05 15:13:48 +01:00
populate_sdk_ext.bbclass populate_sdk: install UTF-8 locales in SDKs 2018-04-05 15:13:47 +01:00
populate_sdk.bbclass
prexport.bbclass prexport.bbclass: avoid export for native and crosssdk 2015-11-16 11:39:27 +00:00
primport.bbclass
ptest-gnome.bbclass ptest-gnome: extend EXTRA_OECONF in all builds, not just target 2015-11-24 15:50:25 +00:00
ptest.bbclass classes: Ensure pass setVar/setVarFlag strings, not integers 2015-11-24 15:50:26 +00:00
python-dir.bbclass python3-dir.bbclass: add a separate class for Python 3 2016-06-01 12:38:41 +01:00
python3-dir.bbclass python3-dir.bbclass: add a separate class for Python 3 2016-06-01 12:38:41 +01:00
python3native.bbclass pythonnative.bbclass, python3native.bbclass: use DEPENDS_append instead of DEPENDS += 2016-07-01 16:22:43 +01:00
pythonnative.bbclass pythonnative.bbclass, python3native.bbclass: use DEPENDS_append instead of DEPENDS += 2016-07-01 16:22:43 +01:00
qemu.bbclass qemu.bbclass: Allow use different QEMU binary depending of target 2016-09-24 07:30:10 +01:00
qemuboot.bbclass Remove RM_OLD_IMAGE, it's no longer useful 2016-10-15 10:01:42 +01:00
recipe_sanity.bbclass meta: cleanup d.getVar(var, 0) 2016-09-14 22:22:07 +01:00
relocatable.bbclass
remove-libtool.bbclass remove-libtool: add new class 2016-02-02 14:44:16 +00:00
report-error.bbclass report-error: Fix tracebacks 2016-08-17 10:23:43 +01:00
rm_work.bbclass rm_work: Ensure we don't remove sigbasedata files 2016-11-16 10:37:58 +00:00
rootfs_deb.bbclass lib/oe/package_manager/sdk: Ensure do_populate_sdk_ext and do_populate_sdk repos don't conflict 2018-01-22 10:40:02 +00:00
rootfs_ipk.bbclass lib/oe/package_manager/sdk: Ensure do_populate_sdk_ext and do_populate_sdk repos don't conflict 2018-01-22 10:40:02 +00:00
rootfs_rpm.bbclass lib/oe/package_manager/sdk: Ensure do_populate_sdk_ext and do_populate_sdk repos don't conflict 2018-01-22 10:40:02 +00:00
rootfs-postcommands.bbclass Remove RM_OLD_IMAGE, it's no longer useful 2016-10-15 10:01:42 +01:00
rootfsdebugfiles.bbclass rootfsdebugfiles.bbclass: quick-and-dirty installation of additional files 2015-04-24 11:06:55 +01:00
sanity.bbclass sanity.bbclass: Improved error message 2018-04-05 15:23:05 +01:00
scons.bbclass scons.bbclass: rework parameters for install task 2016-09-24 07:30:10 +01:00
setuptools.bbclass
setuptools3.bbclass python3-distribute: Upgrade to python3-setuptools 15.2 2015-06-08 17:34:04 +01:00
sign_ipk.bbclass gpg_sign: add local ipk package signing functionality 2016-03-11 16:50:45 +00:00
sign_package_feed.bbclass sign_package_feed: add feed signature type 2016-03-11 16:50:45 +00:00
sign_rpm.bbclass sign_rpm.bbclass: force rpm serial signing 2017-10-10 17:27:39 +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 mipsisa{32, 64}r6{el, } support 2016-10-07 16:43:57 +01:00
spdx.bbclass subprocess: remove Popen in favor of check_output 2016-10-01 21:45:56 +01:00
sstate.bbclass kernel, license, sstate, rootfs.py: Remove deploy directory README 2017-08-29 23:43:50 +01:00
staging.bbclass staging: Drop unused SYSROOT_LOCK 2017-01-11 17:21:44 +00:00
syslinux.bbclass syslinux.bbclass: Use bb.fatal() instead of raising FuncFailed 2016-10-04 16:29:04 +01:00
systemd-boot.bbclass systemd-boot.bbclass: Use bb.fatal() instead of raising FuncFailed 2016-10-04 16:29:04 +01:00
systemd.bbclass systemd.bbclass: don't block on service restart 2017-01-11 17:21:43 +00:00
terminal.bbclass classes/lib: Convert to use python3 octal syntax 2016-06-02 08:24:00 +01:00
testexport.bbclass oeqa/oetest.py: Allow to export packages using symlinks 2016-08-04 15:22:22 +01:00
testimage-auto.bbclass classes: Fix do_rootfs references 2016-01-11 23:26:29 +00:00
testimage.bbclass testimage: disable build tests for qemumips and qemumips64 2016-10-09 12:31:40 +01:00
testsdk.bbclass testsdk.bbclass: Clean up comments, clarify image choices. 2016-11-16 10:37:57 +00:00
texinfo.bbclass
tinderclient.bbclass classes/oeqa: Update for print statements and file() -> open() for python3 2016-05-16 09:31:23 +01:00
toaster.bbclass toaster: fire TaskArtifacts event 2016-09-04 00:07:29 +01:00
toolchain-scripts-base.bbclass toolchain-scripts-base: add base class for toolchain_create_sdk_version 2016-09-23 14:56:39 +01:00
toolchain-scripts.bbclass toolchain-scripts-base: add base class for toolchain_create_sdk_version 2016-09-23 14:56:39 +01:00
typecheck.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
uboot-config.bbclass u-boot: extend UBOOT_CONFIG format to support different binary name 2016-07-01 16:22:40 +01:00
uboot-extlinux-config.bbclass classes/uboot-extlinux-config: Add class 2016-10-07 16:43:58 +01:00
uboot-sign.bbclass uboot-sign: fix do_concat_dtb for .img, .rom 2016-11-16 10:37:56 +00:00
uninative.bbclass uninative: Add compatiblity version check 2018-03-15 15:48:00 -07:00
update-alternatives.bbclass classes: Fix alternatives and rc.d ordering 2017-02-08 12:00:21 +00:00
update-rc.d.bbclass classes: Fix alternatives and rc.d ordering 2017-02-08 12:00:21 +00:00
upstream-version-is-even.bbclass package_regex.inc: split entries with odd-even versioning into their own recipes 2015-12-08 10:20:51 +00:00
useradd_base.bbclass useradd_base.bbclass: Do not mess with the gshadow file in the sysroot 2016-09-16 15:24:03 +01:00
useradd-staticids.bbclass useradd-staticids.bbclass: Use bb.fatal() instead of raising FuncFailed 2016-10-04 16:29:04 +01:00
useradd.bbclass useradd.bbclass: Use bb.fatal() instead of raising FuncFailed 2016-10-04 16:29:04 +01:00
utility-tasks.bbclass utility-tasks.bbclass: Use bb.fatal() instead of raising FuncFailed 2016-10-04 16:29:05 +01:00
utils.bbclass utils.bbclass: add function to check for git config user 2016-10-07 16:43:57 +01:00
vala.bbclass vala.bbclass: remove pre-packaged vapigen.m4 from tarballs 2016-03-12 22:11:44 +00:00
waf.bbclass waf.bbclass: Remove --disable-static from EXTRA_OECONF 2016-02-19 15:33:02 +00:00