poky/meta/classes
Chin Huat Ang 16c0989eec toolchain-scripts: preserve host path in environment setup script
The environment setup script generated in the build directory sets the PATH
variable by expanding ${PATH} which would have host paths filtered. Sourcing
this script to run runqemu will not work as it complains host stty (/bin/stty)
cannot be found.

To resolve this, the script no longer expands ${PATH} during generation time,
instead it will now source oe-init-build-env to initialize the build
environment so that all host paths will be preserved. Also be sure to prepend
STAGING_BINDIR_TOOLCHAIN to the PATH variable so that the toolchain from the
build directory can be found.

[YOCTO #12695]

(From OE-Core rev: a64a144096c0637387244b89ed22f4b5352b2522)

(From OE-Core rev: d4657ac24542967ecd241726063da2d2dc3e9e23)

Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-11-05 16:02:44 +00:00
..
allarch.bbclass allarch: Append to vardepsexclude, not overwrite 2017-06-14 10:18:28 +01:00
archiver.bbclass archiver: preserve sysroot paths in configured mode for multilib 2017-10-16 23:52:43 +01:00
autotools-brokensep.bbclass
autotools.bbclass siteinfo: fix siteinfo_get_files to work with RSS 2017-07-30 08:46:19 +01:00
base.bbclass classes: sanity-check LIC_FILES_CHKSUM 2018-08-30 15:57:44 +01:00
bash-completion.bbclass
bin_package.bbclass
binconfig-disabled.bbclass ncurses.inc: add v6 binconfig-disabled entries 2016-12-22 08:50:17 +00:00
binconfig.bbclass binconfig.bbclass: fix typo in get_binconfig_mangle() 2017-04-14 09:47:08 +01:00
blacklist.bbclass blacklist.bbclass: fix for multilib 2017-04-13 10:54:09 +01:00
bluetooth.bbclass
bugzilla.bbclass meta/scripts: Various getVar/getVarFlag expansion parameter fixes 2017-01-09 13:39:11 +00:00
buildhistory.bbclass meta: drop True option to getVar calls 2017-09-26 11:05:01 +01:00
buildstats-summary.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
buildstats.bbclass buildstats.bbclass: Avoid index exception in /proc/PID/io parsing 2017-03-01 23:27:10 +00:00
ccache.bbclass ccache: let ccache create CCACHE_DIR, reducing hash changes 2017-07-17 14:01:36 +01:00
chrpath.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
clutter.bbclass recipes: Update git.gnome.org addresses after upstream changes 2018-10-18 11:09:39 +01:00
cmake.bbclass cmake.bbclass: use cmake --build to build & install 2017-05-23 17:45:36 +01:00
cml1.bbclass cml1: remove diffconfig return code checking 2017-10-07 23:20:39 +01:00
compress_doc.bbclass meta/scripts: Various getVar/getVarFlag expansion parameter fixes 2017-01-09 13:39:11 +00:00
copyleft_compliance.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
copyleft_filter.bbclass copyleft_filter.bbclass: restore possiblity to filter on type 2017-06-28 20:55:08 +01:00
core-image.bbclass core-image.bbclass: update available IMAGE_FEATURES 2017-03-24 23:43:32 +00:00
cpan_build.bbclass
cpan-base.bbclass cpan-base.bbclass: Move PERLVERSION and get_perl_version to a new file 2017-06-12 15:08:31 +01:00
cpan.bbclass
cross-canadian.bbclass cross-canadian.bbclass: drop TARGET_* flags overrides 2017-09-21 09:24:24 +01:00
cross.bbclass cross.bbclass: Remove usage of host flags for cross-compilation 2017-10-16 23:52:43 +01:00
crosssdk.bbclass crosssdk.bbclass: override TARGET_* flags 2017-04-10 23:00:44 +01:00
cve-check.bbclass cve-check.bbclass: detect patched CVE's also from patch file names 2017-09-05 15:01:02 +01:00
debian.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
deploy.bbclass
devshell.bbclass devshell.bbclass: clean up trailing whitespaces 2017-06-06 19:02:43 +01:00
devtool-source.bbclass devtool: rework source extraction so that dependencies are handled 2017-09-18 11:07:29 +01:00
devupstream.bbclass devupstream.bbclass: minor typo fix 2017-04-19 10:18:43 +01:00
distro_features_check.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
distrodata.bbclass distrodata.bbclass: add UPSTREAM_VERSION_UNKNOWN and UPSTREAM_CHECK_UNRELIABLE 2017-08-16 00:03:13 +01:00
distrooverrides.bbclass distrooverrides.bbclass: fix default configuration 2017-07-17 14:01:36 +01:00
distutils-base.bbclass Revert "distutils-base.bbclass: Do not use -pie with hardening" 2017-06-09 17:12:14 +01:00
distutils-common-base.bbclass distutils,setuptools: Delete use of SECURITY_NO_PIE_CFLAGS 2017-07-08 13:34:45 +01:00
distutils-tools.bbclass classes: Replace "if test" file tests with POSIX file tests 2017-03-27 11:08:34 +01:00
distutils.bbclass distutils.bbclass: Fix path to python for scripts 2017-03-31 10:10:29 +01:00
distutils3-base.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
distutils3.bbclass distutils3.bbclass: Fix path to python for scripts 2017-03-31 10:10:30 +01:00
externalsrc.bbclass externalsrc: fix ExpansionError if the source dir does not exist yet 2017-12-04 17:23:56 +00:00
extrausers.bbclass extrausers: Use static ids when available 2017-01-19 22:47:20 +00:00
fontcache.bbclass fontcache.bbclass: Add PACKAGE_WRITE_DEPS for postinst 2017-01-20 11:53:51 +00:00
fs-uuid.bbclass gummiboot: Remove/change gummiboot references with systemd-boot 2017-01-09 13:39:11 +00:00
gconf.bbclass gconf.bbclass: Add PACKAGE_WRITE_DEPS for postinst 2017-01-20 11:53:51 +00:00
gettext.bbclass gettext.bbclass: do not add virtual/gettext to DEPENDS 2017-08-30 11:14:25 +01:00
gio-module-cache.bbclass gio-module-cache.bbclass: pass in ${libexecdir} 2018-05-03 09:53:48 +01:00
gnome.bbclass
gnomebase.bbclass gnomebase.bbclass: add datadir/icons and datadir/appdata to standard FILES list 2017-06-28 15:52:17 +01:00
go.bbclass go: disable PIE flags for cgo 2017-09-26 11:05:00 +01:00
goarch.bbclass goarch: There is no GOARCH defined for mips64-n32 2017-12-04 17:23:55 +00:00
gobject-introspection-data.bbclass
gobject-introspection.bbclass Switch to Recipe Specific Sysroots 2017-01-23 12:05:17 +00:00
grub-efi.bbclass meta: drop do_bootdirectdisk do_vmimg references 2017-08-03 11:14:13 +01:00
gsettings.bbclass gsettings: Add PACKAGE_WRITE_DEPS for postinst 2017-01-20 11:53:51 +00:00
gtk-doc.bbclass gtk-doc.bbclass: correctly make the list of directories with shared libraries 2017-12-04 17:23:58 +00:00
gtk-icon-cache.bbclass gtk-icon-cache: Add PACKAGE_WRITE_DEPS for postinst 2017-01-20 11:53:49 +00:00
gtk-immodules-cache.bbclass gtk-immodules-cache: Add PACKAGE_WRITE_DEPS for postinst 2017-01-20 11:53:51 +00:00
icecc.bbclass icecc.bbclass: prevent nativesdk builds depending on target specific KERNEL_CC 2017-07-21 22:51:37 +01:00
image_types_wic.bbclass image_types_wic.bbclass: Ensure '-c image_wic' works 2018-01-29 08:45:28 +00:00
image_types.bbclass image_types: btrfs use sparse file creation 2018-01-06 10:13:57 +00:00
image-buildinfo.bbclass image-buildinfo.bbclass: configurable location for build file 2017-03-22 11:35:21 +00:00
image-container.bbclass image-container.bbclass: Error if not using linux-dummy 2017-02-19 06:49:00 -08:00
image-live.bbclass image-live.bbclass: add MLPREFIX to core-image-minimal-initramfs 2018-01-06 10:13:57 +00:00
image-mklibs.bbclass
image-prelink.bbclass image-prelink.bbclass: support binary reproducibility 2017-08-16 00:03:15 +01:00
image.bbclass image: Expand PV to avoid AUTOREV parsing failures 2018-01-20 22:29:30 +00:00
insane.bbclass insane: consider INSANE_SKIP without package-specifier too 2017-09-13 22:07:43 +01:00
kernel-arch.bbclass siteinfo: add aarch64_illp32 decode 2018-02-27 15:51:03 +00:00
kernel-devicetree.bbclass kernel-devicetree.bbclass: Add support to generate append to kernel 2017-09-25 14:14:17 +01:00
kernel-fitimage.bbclass kernel-fitimage: Fix bad image type replacement for aarch64 2018-01-06 10:13:57 +00:00
kernel-grub.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
kernel-module-split.bbclass Revert "kernel-module-split: rrecommend kernel-image instead of rdepend" 2017-09-12 23:55:28 +01:00
kernel-uboot.bbclass kernel-uboot: support Image kernel type for arm64 2018-01-29 08:45:29 +00:00
kernel-uimage.bbclass kernel-uimage: optimise UBOOT_ENTRYSYMBOL support 2017-09-25 14:14:17 +01:00
kernel-yocto.bbclass kernel-yocto: make SRC_URI defconfig removal more specific 2018-01-28 10:14:01 +00:00
kernel.bbclass kernel.bbclass: Fix do_sizecheck behaviour 2018-01-06 10:13:57 +00:00
kernelsrc.bbclass image/kernelsrc/packagegroups/recipes: Remove uneeded noexec tasks 2017-01-28 23:32:16 +00:00
lib_package.bbclass
libc-common.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
libc-package.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
license.bbclass license.bbclass: be a bit more strict when searching ${PN}-${LICENSE_PACKAGE_SUFFIX} in packages 2018-10-10 13:27:02 +01:00
linux-kernel-base.bbclass
linuxloader.bbclass linuxloader.bbclass: add musl libc support 2017-07-08 13:34:46 +01:00
live-vm-common.bbclass live-vm-common: add MKDOSFS_EXTRAOPTS variable 2017-07-17 14:01:37 +01:00
logging.bbclass logging.bbclass: Enclose the tr string in quotes 2018-05-03 09:53:47 +01:00
manpages.bbclass manpages.bbclass: add a class 2016-10-28 16:15:19 +01:00
meta.bbclass
metadata_scm.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
migrate_localcount.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
mime.bbclass mime.bbclass: Add PACKAGE_WRITE_DEPS for postinst 2017-01-20 11:53:51 +00:00
mirrors.bbclass recipes: Update git.gnome.org addresses after upstream changes 2018-10-18 11:09:39 +01:00
module-base.bbclass module-base.bbclass: fix out-of-tree module builds with custom EXTRA_OEMAKE 2018-08-29 17:16:03 +01:00
module.bbclass make-mod-scripts: add build requirements for external modules 2018-08-15 10:22:44 +01:00
multilib_global.bbclass classes: Drop now unneeded update_data calls 2017-02-15 09:29:55 -08:00
multilib_header.bbclass multilib_header: Update wrapper to handle arm 32/64 bit 2017-03-31 10:10:29 +01:00
multilib.bbclass multilib.bbclass: fix faulty redefinition of STAGING_KERNEL_DIR 2017-06-23 11:44:13 +01:00
native.bbclass meta: Drop further remnants of uclibc support 2017-06-22 09:16:00 +01:00
nativesdk.bbclass native/nativesdk: Ensure DISTRO_FEATURES is determistic 2017-06-12 15:08:32 +01:00
nopackages.bbclass
npm.bbclass classes/npm: allow installation of devDependencies 2017-03-22 11:35:20 +00:00
oelint.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
own-mirrors.bbclass own-mirrors.bbclass: allow other settings of PREMIRRORS have effect 2017-10-16 23:52:44 +01:00
package_deb.bbclass package_[deb|ipk]: improve multiprocess logic when creating deb/ipk packages 2017-09-11 17:30:28 +01:00
package_ipk.bbclass package_ipk.bbclass: handle only whitespace in PACKAGE_EXCLUDE 2017-12-04 17:23:59 +00:00
package_rpm.bbclass package_rpm: set _builddir to B not S 2018-05-03 09:53:48 +01:00
package_tar.bbclass classes: Drop now unneeded update_data calls 2017-02-15 09:29:55 -08:00
package.bbclass package.bbclass: Add '-b' option to file call in isELF 2018-05-08 15:37:17 +01:00
packagedata.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
packagefeed-stability.bbclass packagefeed-stability.bbclass: change another bb.plain to bb.note 2017-08-18 10:40:27 +01:00
packagegroup.bbclass native/nativesdk: Use fixed DISTRO_FEATURES 2017-04-12 15:09:58 +01:00
patch.bbclass classes/patch: switch to new bb.build.tasksbetween() function 2017-02-07 14:50:09 +00:00
perl-version.bbclass cpan-base.bbclass: Move PERLVERSION and get_perl_version to a new file 2017-06-12 15:08:31 +01:00
perlnative.bbclass
pixbufcache.bbclass pixbufcache.bbclass: update postinst script name 2017-04-19 10:18:43 +01:00
pkgconfig.bbclass
populate_sdk_base.bbclass populate_sdk_base: depend on nativesdk-glibc-locale 2018-03-26 15:07:11 +01:00
populate_sdk_ext.bbclass populate_sdk: install UTF-8 locales in SDKs 2018-03-26 15:07:11 +01:00
populate_sdk.bbclass
prexport.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
primport.bbclass
ptest-gnome.bbclass
ptest.bbclass ptest.bbclass: use BPN in PTEST_PATH for multilib 2017-03-04 23:18:19 +00:00
python-dir.bbclass
python3-dir.bbclass
python3native.bbclass python*native.bbclass: suppress user site dirs 2017-09-14 11:35:46 +01:00
pythonnative.bbclass python*native.bbclass: suppress user site dirs 2017-09-14 11:35:46 +01:00
qemu.bbclass meta/scripts: Various getVar/getVarFlag expansion parameter fixes 2017-01-09 13:39:11 +00:00
qemuboot.bbclass qemuboot: Improve relative path handling 2017-12-04 17:24:00 +00:00
recipe_sanity.bbclass recipe_sanity: Drop now unused FILESDIR 2017-04-05 23:22:11 +01:00
relative_symlinks.bbclass openssl/fontconfig/bzip2: Use relative symlinks instead of absolute ones (using a new class) 2017-02-09 10:52:03 +00:00
relocatable.bbclass relocatable: Make native .pc files relocatable 2017-01-31 23:47:33 +00:00
remove-libtool.bbclass
report-error.bbclass report-error: provide distro identifier string in case of uninative build 2017-08-18 23:46:37 +01:00
rm_work_and_downloads.bbclass rm_work_and_downloads.bbclass: more aggressively minimize disk usage 2017-01-20 11:53:48 +00:00
rm_work.bbclass rm_work: remove debugging statements 2018-01-06 10:13:57 +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:15 +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:15 +00:00
rootfs_rpm.bbclass dnf: move the entire dnf/rpm4 stack to Python 3 2017-03-28 08:43:13 +01:00
rootfs-postcommands.bbclass rootfs-postcommands.bbclass: ensure that rootfs gets mounted ro 2018-01-06 10:13:56 +00:00
rootfsdebugfiles.bbclass rootfsdebugfiles.bbclass: add a optional parameter to choose file mode 2017-07-30 08:46:19 +01:00
sanity.bbclass sanity: check that path variables don't use ~ 2017-09-22 17:15:29 +01:00
scons.bbclass scons.bbclass: rework parameters for install task 2016-09-24 07:30:10 +01:00
setuptools.bbclass distutils,setuptools: Delete use of SECURITY_NO_PIE_CFLAGS 2017-07-08 13:34:45 +01:00
setuptools3.bbclass
sign_ipk.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
sign_package_feed.bbclass sign_package_feed.bbclass: install signing key into rootfs 2017-08-16 00:03:15 +01:00
sign_rpm.bbclass sign_rpm.bbclass: force rpm serial signing 2017-09-26 11:05:01 +01:00
siteconfig.bbclass Switch to Recipe Specific Sysroots 2017-01-23 12:05:17 +00:00
siteinfo.bbclass siteinfo: fix siteinfo_get_files to work with RSS 2017-07-30 08:46:19 +01:00
spdx.bbclass meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
sstate.bbclass sstate.bbclass: provide an exception for useradd scenario 2017-10-16 23:52:43 +01:00
staging.bbclass staging.bbclass: handle postinst-useradd-* fixmes 2017-10-07 23:20:40 +01:00
syslinux.bbclass classes: Drop now unneeded update_data calls 2017-02-15 09:29:55 -08:00
systemd-boot.bbclass meta: drop do_bootdirectdisk do_vmimg references 2017-08-03 11:14:13 +01:00
systemd.bbclass systemd: allow dots in arguments to template units 2018-01-06 10:13:56 +00:00
terminal.bbclass terminal: Use original PATH for terminals 2017-03-13 09:42:09 +00:00
testexport.bbclass classes/test{export,images}: Change modules to list 2017-06-02 13:36:14 +01:00
testimage-auto.bbclass
testimage.bbclass testimage: Ensure full logs are shown for failures 2017-12-04 17:23:58 +00:00
testsdk.bbclass oeqa: Change the order to logDetails and logSummary 2017-06-09 17:12:15 +01:00
texinfo.bbclass texinfo.bbclass: use dummy dep for libtool-cross 2016-11-06 23:35:35 +00:00
tinderclient.bbclass meta/scripts: Various getVar/getVarFlag expansion parameter fixes 2017-01-09 13:39:11 +00:00
toaster.bbclass toaster.bbclass: Ignore some dependencies in toaster_buildhistory_dump() 2017-06-12 23:01:22 +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: preserve host path in environment setup script 2018-11-05 16:02:44 +00:00
typecheck.bbclass meta: remove True option to getVarFlag calls 2016-12-16 10:23:23 +00:00
uboot-config.bbclass uboot-config: check UBOOT_CONFIG variable, not flags, for error conditions 2017-06-14 10:18:30 +01:00
uboot-extlinux-config.bbclass uboot-extlinux: fix extlinux creation race (take 2) 2017-09-25 14:14:17 +01:00
uboot-sign.bbclass classes: Fix "U-boot", use proper spelling of "U-Boot". 2017-03-17 16:53:05 +00:00
uninative.bbclass uninative: Set the dynamic linker to use at compile time 2018-05-03 09:53:49 +01:00
update-alternatives.bbclass update-alternatives.bbclass: refuse to manage SysV init scripts 2018-01-06 10:13:55 +00:00
update-rc.d.bbclass update-rc.d: QA regression. 2018-02-27 15:51:03 +00:00
upstream-version-is-even.bbclass upstream-version-is-even.bbclass: exclude various alphas, betas, pre-releases etc. 2016-12-17 09:57:04 +00:00
useradd_base.bbclass useradd_base: keep group if it still has users 2017-01-26 10:44:27 +00:00
useradd-staticids.bbclass useradd-staticids: explain how to fix the the problem 2017-12-04 17:23:56 +00:00
useradd.bbclass useradd.bbclass: print a warn when useradd not found 2017-12-04 17:23:55 +00:00
utility-tasks.bbclass meta: replace uses of bb.data.expand(VARNAME, d) with d.expand(VARNAME) 2017-03-22 11:35:19 +00:00
utils.bbclass utils.bbclass: Support applications with arguments in check_app_exist() 2017-10-07 23:20:40 +01:00
vala.bbclass
waf.bbclass Revert "waf.bbclass: explicitly pass bindir and libdir if supported" 2018-05-07 15:57:37 +01:00