mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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: 01f9a99f04f0c8c135e167832215f4c1919fdb55) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit edc28907ce19a7298059dd388933c58a9c6c28b9) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
849ef02127
commit
f841c22370
@@ -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')
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user