Index: lib/bb/build.py =================================================================== --- lib/bb/build.py.orig +++ lib/bb/build.py @@ -243,6 +243,7 @@ def exec_func_shell(func, d, runfile, lo if bb.msg.debug_level['default'] > 0: f.write("set -x\n") data.emit_env(f, d) + f.write("set -x\n") f.write("cd %s\n" % os.getcwd()) if func: f.write("%s\n" % func) f.close()