diff options
author | Yoann Congal <yoann.congal@smile.fr> | 2024-11-14 23:17:27 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-18 13:41:38 +0000 |
commit | 4be9d612252286b4f920adb729d28b28e2372dc4 (patch) | |
tree | 8e79e108865f3a00c41732d5c18ecb64108f8a18 | |
parent | 30a3ac4a2e81cb13c3113e15b38444490450a70f (diff) | |
download | poky-4be9d612252286b4f920adb729d28b28e2372dc4.tar.gz |
bitbake: bitbake-getvar: use finalizeData tinfoil API to get identical result to "bitbake -e"
Fixes [YOCTO #15638]
(Bitbake rev: 68ae81dc93f86eab378fec2276561c5062263d7e)
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bitbake/bin/bitbake-getvar | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-getvar b/bitbake/bin/bitbake-getvar index 8901f99ae2..20c0b696f7 100755 --- a/bitbake/bin/bitbake-getvar +++ b/bitbake/bin/bitbake-getvar | |||
@@ -43,7 +43,9 @@ if __name__ == "__main__": | |||
43 | d = tinfoil.parse_recipe(args.recipe) | 43 | d = tinfoil.parse_recipe(args.recipe) |
44 | else: | 44 | else: |
45 | tinfoil.prepare(quiet=2, config_only=True) | 45 | tinfoil.prepare(quiet=2, config_only=True) |
46 | d = tinfoil.config_data | 46 | # Expand keys and run anonymous functions to get identical result to |
47 | # "bitbake -e" | ||
48 | d = tinfoil.finalizeData() | ||
47 | 49 | ||
48 | value = None | 50 | value = None |
49 | if args.flag: | 51 | if args.flag: |