]> code.ossystems Code Review - openembedded-core.git/commitdiff
uboot-sign: Handle .rom signing the same as .img
authorGeorge McCollister <george.mccollister@gmail.com>
Fri, 15 Jul 2016 21:30:21 +0000 (16:30 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Aug 2016 09:45:33 +0000 (10:45 +0100)
Handle u-boot.rom signing (U-Boot as x86 BIOS replacement) the same way
that u-boot.img signing is handled.

Signed-off-by: George McCollister <george.mccollister@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/uboot-sign.bbclass

index 57d49039a9b2a2442ca0080f07e4b16251d7ea6a..d56ad8e07cd9661f10d0dc58093b9e54080422cb 100644 (file)
@@ -64,7 +64,8 @@ do_concat_dtb () {
        # Concatenate U-Boot w/o DTB & DTB with public key
        # (cf. kernel-fitimage.bbclass for more details)
        if [ "x${UBOOT_SIGN_ENABLE}" = "x1" ]; then
-               if [ "x${UBOOT_SUFFIX}" = "ximg" -a -e "${DEPLOYDIR}/${UBOOT_DTB_IMAGE}" ]; then
+               if [ "x${UBOOT_SUFFIX}" = "ximg" -o "x${UBOOT_SUFFIX}" = "xrom" ] && \
+                       [ -e "${DEPLOYDIR}/${UBOOT_DTB_IMAGE}" ]; then
                        oe_runmake EXT_DTB=${DEPLOYDIR}/${UBOOT_DTB_IMAGE}
                        install ${S}/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE}
                        install ${S}/${UBOOT_BINARY} ${DEPLOY_DIR_IMAGE}/${UBOOT_IMAGE}