]> code.ossystems Code Review - openembedded-core.git/commitdiff
image,populate_sdk_base: move 'func' flag setting for sdk command vars
authorChristopher Larson <kergoth@gmail.com>
Thu, 25 Mar 2021 16:16:59 +0000 (21:16 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 31 Mar 2021 07:50:59 +0000 (08:50 +0100)
Setting the 'func' flag on the commands variables ensures that they are parsed
as shell, and therefore that the referenced commands contents are included in
checksums. Doing this only in image.bbclass means that this is missing in
recipes that are not images, but which inherit populate_sdk or populate_sdk_base
directly, so move it to the latter.

[YOCTO #13998]

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image.bbclass
meta/classes/populate_sdk_base.bbclass

index 87a58dfae75622846f2b2d98cf98bcd6c558c7c3..013455f492424b0d3e252c63bd0dfc57e934f2b5 100644 (file)
@@ -112,7 +112,7 @@ def rootfs_command_variables(d):
             'IMAGE_PREPROCESS_COMMAND','RPM_PREPROCESS_COMMANDS','RPM_POSTPROCESS_COMMANDS','DEB_PREPROCESS_COMMANDS','DEB_POSTPROCESS_COMMANDS']
 
 python () {
-    variables = rootfs_command_variables(d) + sdk_command_variables(d)
+    variables = rootfs_command_variables(d)
     for var in variables:
         if d.getVar(var, False):
             d.setVarFlag(var, 'func', '1')
index c8a7084d335359d412ce108480d6541eed3e2340..33ba3fc3c1c21c57fe031b1e9e7e535abadf6aa0 100644 (file)
@@ -329,6 +329,13 @@ def sdk_variables(d):
 
 do_populate_sdk[vardeps] += "${@sdk_variables(d)}"
 
+python () {
+    variables = sdk_command_variables(d)
+    for var in variables:
+        if d.getVar(var, False):
+            d.setVarFlag(var, 'func', '1')
+}
+
 do_populate_sdk[file-checksums] += "${TOOLCHAIN_SHAR_REL_TMPL}:True \
                                     ${TOOLCHAIN_SHAR_EXT_TMPL}:True"