diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-02-28 13:37:41 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-28 13:47:10 +0000 |
commit | 0e39107047f3403757ba015fce77ce65d2e5fb43 (patch) | |
tree | eb038cf85f66c2e756d5455821871be35f205bc1 /bitbake/lib/bb/build.py | |
parent | 8fbdf5faa69c0134a2b517883c6b5372e32f3b8d (diff) | |
download | poky-0e39107047f3403757ba015fce77ce65d2e5fb43.tar.gz |
bitbake: implement BB_VERBOSE_LOGS
Enable configuring whether "set +x" is added to all shell tasks rather
than forcing it; this is enabled by setting BB_VERBOSE_LOGS to 1.
(Bitbake rev: 659411b6bb30e1a8355afc1c29b8170a8f2b55ac)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r-- | bitbake/lib/bb/build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index b7031ab6d3..e390bec51f 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -229,7 +229,8 @@ def exec_func_shell(function, d, runfile, cwd=None): | |||
229 | script.write('#!/bin/sh -e\n') | 229 | script.write('#!/bin/sh -e\n') |
230 | data.emit_func(function, script, d) | 230 | data.emit_func(function, script, d) |
231 | 231 | ||
232 | script.write("set -x\n") | 232 | if bb.msg.loggerVerboseLogs: |
233 | script.write("set -x\n") | ||
233 | if cwd: | 234 | if cwd: |
234 | script.write("cd %s\n" % cwd) | 235 | script.write("cd %s\n" % cwd) |
235 | script.write("%s\n" % function) | 236 | script.write("%s\n" % function) |