diff options
| -rwxr-xr-x | bitbake/bin/bitbake-getvar | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-getvar b/bitbake/bin/bitbake-getvar index 5435a8d797..4a9eb4f311 100755 --- a/bitbake/bin/bitbake-getvar +++ b/bitbake/bin/bitbake-getvar | |||
| @@ -25,6 +25,7 @@ if __name__ == "__main__": | |||
| 25 | parser.add_argument('-u', '--unexpand', help='Do not expand the value (with --value)', action="store_true") | 25 | parser.add_argument('-u', '--unexpand', help='Do not expand the value (with --value)', action="store_true") |
| 26 | parser.add_argument('-f', '--flag', help='Specify a variable flag to query (with --value)', default=None) | 26 | parser.add_argument('-f', '--flag', help='Specify a variable flag to query (with --value)', default=None) |
| 27 | parser.add_argument('--value', help='Only report the value, no history and no variable name', action="store_true") | 27 | parser.add_argument('--value', help='Only report the value, no history and no variable name', action="store_true") |
| 28 | parser.add_argument('-q', '--quiet', help='Silence bitbake server logging', action="store_true") | ||
| 28 | args = parser.parse_args() | 29 | args = parser.parse_args() |
| 29 | 30 | ||
| 30 | if args.unexpand and not args.value: | 31 | if args.unexpand and not args.value: |
| @@ -35,7 +36,7 @@ if __name__ == "__main__": | |||
| 35 | print("--flag only makes sense with --value") | 36 | print("--flag only makes sense with --value") |
| 36 | sys.exit(1) | 37 | sys.exit(1) |
| 37 | 38 | ||
| 38 | with bb.tinfoil.Tinfoil(tracking=True) as tinfoil: | 39 | with bb.tinfoil.Tinfoil(tracking=True, setup_logging=not args.quiet) as tinfoil: |
| 39 | if args.recipe: | 40 | if args.recipe: |
| 40 | tinfoil.prepare(quiet=2) | 41 | tinfoil.prepare(quiet=2) |
| 41 | d = tinfoil.parse_recipe(args.recipe) | 42 | d = tinfoil.parse_recipe(args.recipe) |
