Some image recipes uses ${DEPLOY_DIR_IMAGE}/${UBOOT_BINARY} to create
their images. Force the re-creation of those symlinks pointing to the
u-boot-fitImage in case UBOOT_FITIMAGE_ENABLE is set.

Signed-off-by: Klaus Heinrich Kiwi <[email protected]>
---
 meta/classes/uboot-sign.bbclass | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/meta/classes/uboot-sign.bbclass b/meta/classes/uboot-sign.bbclass
index 85304d452e..d11882f90f 100644
--- a/meta/classes/uboot-sign.bbclass
+++ b/meta/classes/uboot-sign.bbclass
@@ -473,6 +473,15 @@ do_deploy_prepend_pn-${UBOOT_PN}() {
 
 }
 
+do_deploy_append_pn-${UBOOT_PN}() {
+       # If we're creating a u-boot fitImage, point u-boot.bin
+       # symlink since it might get used by image recipes
+       if [ "${UBOOT_FITIMAGE_ENABLE}" = "1" ] ; then
+               ln -sf ${UBOOT_FITIMAGE_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY}
+               ln -sf ${UBOOT_FITIMAGE_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK}
+       fi
+}
+
 python () {
     if (   (d.getVar('UBOOT_SIGN_ENABLE') == '1'
             or d.getVar('UBOOT_FITIMAGE_ENABLE') == '1')
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#150168): 
https://lists.openembedded.org/g/openembedded-core/message/150168
Mute This Topic: https://lists.openembedded.org/mt/81783222/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to