diff options
author | Bernhard Guillon <Bernhard.Guillon@hale.at> | 2013-07-04 11:16:30 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-07-10 09:42:01 +0100 |
commit | d8cba3391230f546e2830aebe1dabafbb789aa36 (patch) | |
tree | 3c7704e7109f12ab87af9bc308206e34ca88242e /meta/classes/populate_sdk_base.bbclass | |
parent | 09fea03644f15af45e5fac8fd035f74e3cd9146f (diff) | |
download | poky-d8cba3391230f546e2830aebe1dabafbb789aa36.tar.gz |
populate_sdk_base.bbclass: allow $OECORE_NATIVE_SYSROOT in sdk_env_script
Only grep for 'OECORE_NATIVE_SYSROOT=' otherwise things like
toolchain_create_sdk_env_script_append() {
echo 'export MY_DIR_FOO=$OECORE_NATIVE_SYSROOT/my/dir/foo' >> $script
}
trigger the following error while executing the install script:
find: `$OECORE_NATIVE_SYSROOT/my/dir/foo': No such file or directory
(From OE-Core rev: d084c31720f9c13a71c5981f4eda21e18ba2350f)
Signed-off-by: Bernhard Guillon <Bernhard.Guillon@hale.at>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk_base.bbclass')
-rw-r--r-- | meta/classes/populate_sdk_base.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index 6378af98a8..30c1d29a28 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass | |||
@@ -248,7 +248,7 @@ for env_setup_script in `ls $target_sdk_dir/environment-setup-*`; do | |||
248 | done | 248 | done |
249 | 249 | ||
250 | # fix dynamic loader paths in all ELF SDK binaries | 250 | # fix dynamic loader paths in all ELF SDK binaries |
251 | native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep OECORE_NATIVE_SYSROOT|cut -d'=' -f2|tr -d '"') | 251 | native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep 'OECORE_NATIVE_SYSROOT='|cut -d'=' -f2|tr -d '"') |
252 | dl_path=$($SUDO_EXEC find $native_sysroot/lib -name "ld-linux*") | 252 | dl_path=$($SUDO_EXEC find $native_sysroot/lib -name "ld-linux*") |
253 | if [ "$dl_path" = "" ] ; then | 253 | if [ "$dl_path" = "" ] ; then |
254 | echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!" | 254 | echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!" |