diff options
author | Christopher Larson <kergoth@gmail.com> | 2021-03-25 21:16:59 +0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-31 08:51:02 +0100 |
commit | 13e372dfd9c2ae792e6588da99c647370c722eb3 (patch) | |
tree | ada29bbc02b47cc0ed24f77b8f74318da1ac7434 | |
parent | 8eb55de8212c218f28204abe2bb6adddcaef9898 (diff) | |
download | poky-13e372dfd9c2ae792e6588da99c647370c722eb3.tar.gz |
image,populate_sdk_base: move 'func' flag setting for sdk command vars
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]
(From OE-Core rev: edc28907ce19a7298059dd388933c58a9c6c28b9)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/image.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/populate_sdk_base.bbclass | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 87a58dfae7..013455f492 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -112,7 +112,7 @@ def rootfs_command_variables(d): | |||
112 | 'IMAGE_PREPROCESS_COMMAND','RPM_PREPROCESS_COMMANDS','RPM_POSTPROCESS_COMMANDS','DEB_PREPROCESS_COMMANDS','DEB_POSTPROCESS_COMMANDS'] | 112 | 'IMAGE_PREPROCESS_COMMAND','RPM_PREPROCESS_COMMANDS','RPM_POSTPROCESS_COMMANDS','DEB_PREPROCESS_COMMANDS','DEB_POSTPROCESS_COMMANDS'] |
113 | 113 | ||
114 | python () { | 114 | python () { |
115 | variables = rootfs_command_variables(d) + sdk_command_variables(d) | 115 | variables = rootfs_command_variables(d) |
116 | for var in variables: | 116 | for var in variables: |
117 | if d.getVar(var, False): | 117 | if d.getVar(var, False): |
118 | d.setVarFlag(var, 'func', '1') | 118 | d.setVarFlag(var, 'func', '1') |
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index c8a7084d33..33ba3fc3c1 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass | |||
@@ -329,6 +329,13 @@ def sdk_variables(d): | |||
329 | 329 | ||
330 | do_populate_sdk[vardeps] += "${@sdk_variables(d)}" | 330 | do_populate_sdk[vardeps] += "${@sdk_variables(d)}" |
331 | 331 | ||
332 | python () { | ||
333 | variables = sdk_command_variables(d) | ||
334 | for var in variables: | ||
335 | if d.getVar(var, False): | ||
336 | d.setVarFlag(var, 'func', '1') | ||
337 | } | ||
338 | |||
332 | do_populate_sdk[file-checksums] += "${TOOLCHAIN_SHAR_REL_TMPL}:True \ | 339 | do_populate_sdk[file-checksums] += "${TOOLCHAIN_SHAR_REL_TMPL}:True \ |
333 | ${TOOLCHAIN_SHAR_EXT_TMPL}:True" | 340 | ${TOOLCHAIN_SHAR_EXT_TMPL}:True" |
334 | 341 | ||