summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2013-12-10 10:09:38 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-11 14:16:04 +0000
commit43c1b32b2cdb5f7e8a93cf4c6b4248305c7bf106 (patch)
treeb97cef24852cb4a99d17d0deb250550ed4a2a4f4 /bitbake/lib/bb
parent53ce38bd0f44072200563697f94013c219fdba2f (diff)
downloadpoky-43c1b32b2cdb5f7e8a93cf4c6b4248305c7bf106.tar.gz
bitbake: bitbake: build.py: add single-quotes around already-expanded directory name
If the computed name of a directory contains an undefined variable reference, bitbake dutifully creates a directory with a name that has ${...} in it. However, the actual task script created then tries to cd to that directory, and the cd command fails, because no such directory exists -- because the shell has helpfully removed the ${...} which did not match any actual variables. Since we want the name to be used exactly-as-is, add single quotes around the name so this doesn't cause strange failures running tasks, which allows us to progress past such failures and get to a point where they can be diagnosed. (Bitbake master rev: 2809c2e6f2f35f9b08058950be896947ab5a0284) (Bitbake rev: 3059ee335b7ae1bf77d6fd02e66ea5ba37d96c7b) Signed-off-by: Peter Seebach <peter.seebach@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 2e49a09365..edab5566a9 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -285,7 +285,7 @@ set -e
285 if bb.msg.loggerVerboseLogs: 285 if bb.msg.loggerVerboseLogs:
286 script.write("set -x\n") 286 script.write("set -x\n")
287 if cwd: 287 if cwd:
288 script.write("cd %s\n" % cwd) 288 script.write("cd '%s'\n" % cwd)
289 script.write("%s\n" % func) 289 script.write("%s\n" % func)
290 script.write(''' 290 script.write('''
291# cleanup 291# cleanup