]> code.ossystems Code Review - openembedded-core.git/commitdiff
uboot: Deploy default symlinks with fitImage
authorKlaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
Thu, 1 Apr 2021 17:25:41 +0000 (14:25 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 5 Apr 2021 14:28:25 +0000 (15:28 +0100)
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 <klaus@linux.vnet.ibm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/uboot-sign.bbclass

index 713196df41604949b8c8662a4c7aa38dfd334410..d590971a27bff607c1f7c127ee1ee52c6472ab2a 100644 (file)
@@ -123,6 +123,15 @@ do_deploy_prepend_pn-${UBOOT_PN}() {
        fi
 }
 
+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' and d.getVar('PN') == d.getVar('UBOOT_PN') and d.getVar('UBOOT_DTB_BINARY'):
         kernel_pn = d.getVar('PREFERRED_PROVIDER_virtual/kernel')