diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2013-07-04 12:53:55 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-07-29 13:28:21 +0100 |
commit | d6d12689c0628f11a282c2b54ebcb8aa3ab8c673 (patch) | |
tree | 80264b36fd047ac01da34029cbfb019f9c9c4ea7 /meta | |
parent | eb5ec8899d41d2df7fb9d9918d2d93042a678d97 (diff) | |
download | poky-d6d12689c0628f11a282c2b54ebcb8aa3ab8c673.tar.gz |
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]
(From OE-Core master rev: 6ac06a65ce52d4c123da53f115c84cb0a98bc18f)
(From OE-Core rev: 135e681a3f3004a925b46b03cdada2fd86fc6c93)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
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.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 31e848dd62..6378af98a8 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass | |||
@@ -181,7 +181,7 @@ else | |||
181 | echo "$target_sdk_dir" | 181 | echo "$target_sdk_dir" |
182 | fi | 182 | fi |
183 | 183 | ||
184 | eval target_sdk_dir=$(printf "%q" "$target_sdk_dir") | 184 | eval target_sdk_dir=$(echo "$target_sdk_dir"|sed 's/ /\\ /g') |
185 | if [ -d "$target_sdk_dir" ]; then | 185 | if [ -d "$target_sdk_dir" ]; then |
186 | target_sdk_dir=$(cd "$target_sdk_dir"; pwd) | 186 | target_sdk_dir=$(cd "$target_sdk_dir"; pwd) |
187 | else | 187 | else |