summaryrefslogtreecommitdiffstats
path: root/meta/classes/uboot-sign.bbclass
diff options
context:
space:
mode:
authorKlaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>2021-04-01 14:25:41 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-04-05 15:29:02 +0100
commit5d9a91a2ae65fe97658e00818b478dd71a0f4ac1 (patch)
treec615a401762205e0544aebe8979563c7a17f78cf /meta/classes/uboot-sign.bbclass
parent58bda8b1c2ad82bfd1246ded03f43e38b0cb945f (diff)
downloadpoky-5d9a91a2ae65fe97658e00818b478dd71a0f4ac1.tar.gz
uboot: Deploy default symlinks with fitImage
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. (From OE-Core rev: 11a016aaf243a110f7139ea052fd4e568aad40dd) Signed-off-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/uboot-sign.bbclass')
-rw-r--r--meta/classes/uboot-sign.bbclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/classes/uboot-sign.bbclass b/meta/classes/uboot-sign.bbclass
index 713196df41..d590971a27 100644
--- a/meta/classes/uboot-sign.bbclass
+++ b/meta/classes/uboot-sign.bbclass
@@ -123,6 +123,15 @@ do_deploy_prepend_pn-${UBOOT_PN}() {
123 fi 123 fi
124} 124}
125 125
126do_deploy_append_pn-${UBOOT_PN}() {
127 # If we're creating a u-boot fitImage, point u-boot.bin
128 # symlink since it might get used by image recipes
129 if [ "${UBOOT_FITIMAGE_ENABLE}" = "1" ] ; then
130 ln -sf ${UBOOT_FITIMAGE_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY}
131 ln -sf ${UBOOT_FITIMAGE_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK}
132 fi
133}
134
126python () { 135python () {
127 if d.getVar('UBOOT_SIGN_ENABLE') == '1' and d.getVar('PN') == d.getVar('UBOOT_PN') and d.getVar('UBOOT_DTB_BINARY'): 136 if d.getVar('UBOOT_SIGN_ENABLE') == '1' and d.getVar('PN') == d.getVar('UBOOT_PN') and d.getVar('UBOOT_DTB_BINARY'):
128 kernel_pn = d.getVar('PREFERRED_PROVIDER_virtual/kernel') 137 kernel_pn = d.getVar('PREFERRED_PROVIDER_virtual/kernel')