]> code.ossystems Code Review - openembedded-core.git/commit
toolchain-shar-relocate: don't assume last state of env_setup_script is good
authorJean-Francois Dagenais <jeff.dagenais@gmail.com>
Mon, 16 Nov 2015 19:37:16 +0000 (14:37 -0500)
committerRobert Yang <liezhi.yang@windriver.com>
Mon, 28 Dec 2015 07:03:15 +0000 (23:03 -0800)
commit2f04a9285cfabdb053dafacd17320f847ac6343f
tree6d7e6723a6e9b06024229adf23a08859725f9916
parented92440d19e5948aa64c95fcf30b989c5e6efdb9
toolchain-shar-relocate: don't assume last state of env_setup_script is good

In the case where many environment-setup-* files exist, the incorrect
filename might be lastly set in env_setup_script, which leads to
incorrect behaviour for the initialization of native_sysroot.

The scenario I had was that our custom meta-toolchain-*.bb, which
inherits populate_sdk, defined another environment-setup-* file to dump
variable information for qt-creator. The file is named like so in order
for the sdk shell script to pick it up and fix the SDK paths in the
file. Since it (coincidentally) alphabetically comes after ...-core2, it
was last set in env_setup_script and the grep OECORE_NATIVE_SYSROOT
would simply be blank. The apparent symptom was "...relocate_sdk.py:
Argument list too long" since the find command would not be searching in
the right path.

(From OE-Core master rev: a36469c97c9cb335de1e95dea5141038f337df95)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/files/toolchain-shar-relocate.sh