summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse/ast.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-16 17:51:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-14 09:48:33 +0100
commit73fa855f6af5ef9c3a78656aa56f09d213601be2 (patch)
tree2f4948686eb929e4a3ef65e90f1e12d7b90d24a7 /bitbake/lib/bb/parse/ast.py
parent6ec07ea6329c013da509234bd0a4bc02c1167fd6 (diff)
downloadpoky-73fa855f6af5ef9c3a78656aa56f09d213601be2.tar.gz
bitbake: ast: Improve function flags handling for EXPORT_FUNCTIONS
Currently, if you use one of the functions from EXPORT_FUNCTIONS, the meaning of cleandirs and fakeroot are lost. This leads to the function changing in behaviour depending upon it's caller context. This isn't intended so add mapping for the cleandirs and fakeroot flags too. This does break devtool in OE-Core and there is a separate fix for that. [YOCTO #8621] (Bitbake rev: b074f4aff00923acc5bf6649d204d541a79fd2b6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/parse/ast.py')
-rw-r--r--bitbake/lib/bb/parse/ast.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py
index 4b1b44ce19..9e0a0f5c98 100644
--- a/bitbake/lib/bb/parse/ast.py
+++ b/bitbake/lib/bb/parse/ast.py
@@ -223,7 +223,7 @@ class ExportFuncsNode(AstNode):
223 for flag in [ "func", "python" ]: 223 for flag in [ "func", "python" ]:
224 if data.getVarFlag(calledfunc, flag, False): 224 if data.getVarFlag(calledfunc, flag, False):
225 data.setVarFlag(func, flag, data.getVarFlag(calledfunc, flag, False)) 225 data.setVarFlag(func, flag, data.getVarFlag(calledfunc, flag, False))
226 for flag in [ "dirs" ]: 226 for flag in ["dirs", "cleandirs", "fakeroot"]:
227 if data.getVarFlag(func, flag, False): 227 if data.getVarFlag(func, flag, False):
228 data.setVarFlag(calledfunc, flag, data.getVarFlag(func, flag, False)) 228 data.setVarFlag(calledfunc, flag, data.getVarFlag(func, flag, False))
229 data.setVarFlag(func, "filename", "autogenerated") 229 data.setVarFlag(func, "filename", "autogenerated")