aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2023-09-25 04:18:32 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-26 10:36:50 +0100
commit71ee69a20f21f3d37f4f060a7d8e87d9f1dc6aa1 (patch)
tree53aae8f7a2e998afa58f689ad6f2c5542f3191a0 /bin
parent616101ddb630e2c9975022068b52a87c4cf647f6 (diff)
downloadbitbake-71ee69a20f21f3d37f4f060a7d8e87d9f1dc6aa1.tar.gz
bitbake-getvar: Make --quiet work with --recipe
Initializing Tinfoil with setup_logging = False only has an effect when recipe parsing is not needed. To make it work regardless of if --recipe is used, manipulate the quiet parameter to Tinfoil.prepare() instead. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake-getvar5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/bitbake-getvar b/bin/bitbake-getvar
index 4a9eb4f31..13a317e1d 100755
--- a/bin/bitbake-getvar
+++ b/bin/bitbake-getvar
@@ -36,9 +36,10 @@ if __name__ == "__main__":
print("--flag only makes sense with --value")
sys.exit(1)
- with bb.tinfoil.Tinfoil(tracking=True, setup_logging=not args.quiet) as tinfoil:
+ quiet = args.quiet
+ with bb.tinfoil.Tinfoil(tracking=True, setup_logging=not quiet) as tinfoil:
if args.recipe:
- tinfoil.prepare(quiet=2)
+ tinfoil.prepare(quiet=3 if quiet else 2)
d = tinfoil.parse_recipe(args.recipe)
else:
tinfoil.prepare(quiet=2, config_only=True)