From 4be9d612252286b4f920adb729d28b28e2372dc4 Mon Sep 17 00:00:00 2001 From: Yoann Congal Date: Thu, 14 Nov 2024 23:17:27 +0100 Subject: [PATCH] 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 Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- bitbake/bin/bitbake-getvar | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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__": d = tinfoil.parse_recipe(args.recipe) else: tinfoil.prepare(quiet=2, config_only=True) - d = tinfoil.config_data + # Expand keys and run anonymous functions to get identical result to + # "bitbake -e" + d = tinfoil.finalizeData() value = None if args.flag: