summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorBernhard Guillon <Bernhard.Guillon@hale.at>2013-07-04 11:16:30 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-10 09:42:01 +0100
commitd8cba3391230f546e2830aebe1dabafbb789aa36 (patch)
tree3c7704e7109f12ab87af9bc308206e34ca88242e /meta
parent09fea03644f15af45e5fac8fd035f74e3cd9146f (diff)
downloadpoky-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')
-rw-r--r--meta/classes/populate_sdk_base.bbclass2
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
248done 248done
249 249
250# fix dynamic loader paths in all ELF SDK binaries 250# fix dynamic loader paths in all ELF SDK binaries
251native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep OECORE_NATIVE_SYSROOT|cut -d'=' -f2|tr -d '"') 251native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep 'OECORE_NATIVE_SYSROOT='|cut -d'=' -f2|tr -d '"')
252dl_path=$($SUDO_EXEC find $native_sysroot/lib -name "ld-linux*") 252dl_path=$($SUDO_EXEC find $native_sysroot/lib -name "ld-linux*")
253if [ "$dl_path" = "" ] ; then 253if [ "$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!"