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>
This commit is contained in:
Paul Eggleton
2012-02-28 13:37:41 +00:00
committed by Richard Purdie
parent 8fbdf5faa6
commit 0e39107047
3 changed files with 9 additions and 1 deletions

View File

@@ -229,7 +229,8 @@ def exec_func_shell(function, d, runfile, cwd=None):
script.write('#!/bin/sh -e\n')
data.emit_func(function, script, d)
script.write("set -x\n")
if bb.msg.loggerVerboseLogs:
script.write("set -x\n")
if cwd:
script.write("cd %s\n" % cwd)
script.write("%s\n" % function)