[PATCH] image: Fix basehash calculation

5 views
Skip to first unread message

Anton Mikanovich

unread,
Nov 14, 2024, 8:40:39 AM11/14/24
to isar-...@googlegroups.com, Anton Mikanovich
Temporary variables like INSTALL_image_wic were created inside
anonymous function, so bitbake was unable to add them into vardeps to
calculate dependencies correctly. Add this variables manually to fix
basehash calculation.

Signed-off-by: Anton Mikanovich <ami...@ilbers.de>
---
meta/classes/image.bbclass | 1 +
1 file changed, 1 insertion(+)

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 472df3cf..982523b0 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -284,6 +284,7 @@ python() {
# set per type imager dependencies
d.setVar('INSTALL_image_%s' % bt_clean, d.getVar('IMAGER_INSTALL'))
d.appendVar('INSTALL_image_%s' % bt_clean, ' ' + ' '.join(sorted(local_imager_install | local_conversion_install)))
+ d.appendVarFlag(task, 'vardeps', ' INSTALL_image_%s' % bt_clean)

d.appendVar('IMAGER_INSTALL', ' ' + ' '.join(sorted(imager_install | conversion_install)))
d.appendVar('IMAGER_BUILD_DEPS', ' ' + ' '.join(sorted(imager_build_deps)))
--
2.34.1

Uladzimir Bely

unread,
Nov 21, 2024, 1:48:49 AM11/21/24
to Anton Mikanovich, isar-...@googlegroups.com
Applied to next.

--
Best regards,
Uladzimir.
Reply all
Reply to author
Forward
0 new messages