summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2013-07-04 12:53:55 +0000
committerSaul Wold <sgw@linux.intel.com>2013-07-09 07:56:09 -0700
commit6ac06a65ce52d4c123da53f115c84cb0a98bc18f (patch)
tree277ddde472dac65d7949acf1774e093a8f07c715 /meta
parent2c164a5dfc877d180ef58d46c063573621297929 (diff)
downloadopenembedded-core-6ac06a65ce52d4c123da53f115c84cb0a98bc18f.tar.gz
openembedded-core-6ac06a65ce52d4c123da53f115c84cb0a98bc18f.tar.bz2
openembedded-core-6ac06a65ce52d4c123da53f115c84cb0a98bc18f.zip
populate_sdk_base: fix bashism
Only the printf bash builtin knows about %q format option for escaping spaces. The coreutils version doesn't. Unfortunately, neither dash nor sh have a printf builtin. So, escape the spaces using sed. [YOCTO #4811] Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
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 31e848dd62..6378af98a8 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -181,7 +181,7 @@ else
echo "$target_sdk_dir"
fi
-eval target_sdk_dir=$(printf "%q" "$target_sdk_dir")
+eval target_sdk_dir=$(echo "$target_sdk_dir"|sed 's/ /\\ /g')
if [ -d "$target_sdk_dir" ]; then
target_sdk_dir=$(cd "$target_sdk_dir"; pwd)
else