diff options
author | Chris Larson <clarson@kergoth.com> | 2004-12-09 10:27:57 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-12-09 10:27:57 +0000 |
commit | a699538fcfbb08c520985cc4d8d1256fb89e2c32 (patch) | |
tree | 1c5c635d34b265761ca676c1675f1a24e4e40c87 /bin/bitbake | |
parent | 066a946940373baeffb5655f395d7cff29d0c0c2 (diff) | |
download | bitbake-a699538fcfbb08c520985cc4d8d1256fb89e2c32.tar.gz |
Apply patch from seb (proti) to fix OEDEBUG and add a debug commandline argument.
Diffstat (limited to 'bin/bitbake')
-rwxr-xr-x | bin/bitbake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/bitbake b/bin/bitbake index 55d1a670b..c0ad32fa0 100755 --- a/bin/bitbake +++ b/bin/bitbake @@ -70,6 +70,8 @@ Default BBFILES are the .bb files in the current directory.""" ) parser.add_option( "-v", "--verbose", help = "output more chit-chat to the terminal", action = "store_true", dest = "verbose", default = False ) + parser.add_option( "-D", "--debug", help = "Increase the debug level", + action = "count", dest="debug", default = 0) parser.add_option( "-n", "--dry-run", help = "don't execute, just go through the motions", action = "store_true", dest = "dry_run", default = False ) @@ -588,14 +590,13 @@ def printStats( ): if __name__ == "__main__": - if "BBDEBUG" in os.environ: - bbdebug = int(os.environ["BBDEBUG"]) - make.options, args = handle_options( sys.argv ) if not make.options.cmd: make.options.cmd = "build" + if make.options.debug: + bb.debug_level = make.options.debug make.pkgdata = {} make.cfg = bb.data.init() |