]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-fitimage: uboot-sign: fix missing signature
authorJun Nie <jun.nie@linaro.org>
Wed, 10 Jul 2019 07:10:56 +0000 (15:10 +0800)
committerArmin Kuster <akuster808@gmail.com>
Wed, 4 Sep 2019 15:22:04 +0000 (08:22 -0700)
u-boot.bin with dtb & signature should be placed in ${B} so that
it can be deployed by u-boot as expected. Otherwise, the version
without signature is installed.

Signed-off-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
meta/classes/uboot-sign.bbclass

index 8beafff7c03ec38dd6e5975b698c676df10a7a1b..1fc2a37214a2e71a64d67a00d02c6ba1e751dfb3 100644 (file)
@@ -66,7 +66,7 @@ concat_dtb_helper() {
                install ${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE}
        elif [ -e "${DEPLOYDIR}/${UBOOT_NODTB_IMAGE}" -a -e "$deployed_uboot_dtb_binary" ]; then
                cd ${DEPLOYDIR}
-               cat ${UBOOT_NODTB_IMAGE} $deployed_uboot_dtb_binary | tee ${UBOOT_BINARY} > ${UBOOT_IMAGE}
+               cat ${UBOOT_NODTB_IMAGE} $deployed_uboot_dtb_binary | tee ${B}/${CONFIG_B_PATH}/${UBOOT_BINARY} > ${UBOOT_IMAGE}
        else
                bbwarn "Failure while adding public key to u-boot binary. Verified boot won't be available."
        fi
@@ -77,10 +77,12 @@ concat_dtb() {
                mkdir -p ${DEPLOYDIR}
                if [ -n "${UBOOT_CONFIG}" ]; then
                        for config in ${UBOOT_MACHINE}; do
+                               CONFIG_B_PATH="${config}"
                                cd ${B}/${config}
                                concat_dtb_helper
                        done
                else
+                       CONFIG_B_PATH=""
                        cd ${B}
                        concat_dtb_helper
                fi