Skip to contentSkip to conversation

rpi-base: wic images depend on the kernel

PATCH In review Joshua Watt 2 participants 2 messages Sep 25, 2023 – Sep 26, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpi-base: wic images depend on the kernel

wic images depend on the kernel device trees, and therefore should depend on virtual/kernel:do_deploy to make sure these are present in the deploy directory.

Most of the time, this dependency is satisfied indirectly since a rootfs image will depend on the kernel, but add it explicitly for the cases where it is not.

---
 conf/machine/include/rpi-base.inc | 1 +
 1 file changed, 1 insertion(+)
conf/machine/include/rpi-base.inc +1 -0
index 895fcfe..64f60ab 100644
@@ -149,6 +149,7 @@ IMAGE_BOOT_FILES ?= "${BOOTFILES_DIR_NAME}/* \
                  ${RPI_EXTRA_IMAGE_BOOT_FILES} \
                  "
 do_image_wic[depends] += " \
+    virtual/kernel:do_deploy \
     rpi-bootfiles:do_deploy \
     ${@bb.utils.contains('RPI_USE_U_BOOT', '1', 'u-boot:do_deploy', '',d)} \
     "
Signature · 1 line
2.34.1
#1 lore raw

Hi Joshua,

This makes sense, and thanks for the patch. Can you push this as a PR in GitHub? It would help us run some CI before applying it.

Thanks once again,

Signature · 2 lines
Andrei Gherzan
gpg: rsa4096/D4D94F67AD0E9640
Quoted 42 lines · Joshua Watt

wic images depend on the kernel device trees, and therefore should depend on virtual/kernel:do_deploy to make sure these are present in the deploy directory.

Most of the time, this dependency is satisfied indirectly since a rootfs image will depend on the kernel, but add it explicitly for the cases where it is not.

---
 conf/machine/include/rpi-base.inc | 1 +
 1 file changed, 1 insertion(+)
conf/machine/include/rpi-base.inc +1 -0
index 895fcfe..64f60ab 100644
@@ -149,6 +149,7 @@ IMAGE_BOOT_FILES ?= "${BOOTFILES_DIR_NAME}/* \
                  ${RPI_EXTRA_IMAGE_BOOT_FILES} \
                  "
 do_image_wic[depends] += " \
+    virtual/kernel:do_deploy \
     rpi-bootfiles:do_deploy \
     ${@bb.utils.contains('RPI_USE_U_BOOT', '1', 'u-boot:do_deploy',
 '',d)} \
     "

--
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#61106):
https://lists.yoctoproject.org/g/yocto/message/61106
Mute This Topic: https://lists.yoctoproject.org/mt/101583229/3617190
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-