]> code.ossystems Code Review - openembedded-core.git/commit
toolchain-scripts: preserve host path in environment setup script
authorChin Huat Ang <chin.huat.ang@intel.com>
Wed, 25 Apr 2018 08:00:13 +0000 (16:00 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 May 2018 09:03:26 +0000 (10:03 +0100)
commitc8287104504da5cdf6591a537634acba06b9e1b9
treecb5c06c5560f56fabba0da30620dfeb864621850
parenteea4bfc4a95e2eb3daac2f4f0d51ff2bd3804ebc
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]

Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/toolchain-scripts.bbclass