Skip to contentSkip to conversation

uboot-sign.bbclass: silence warnings when UBOOT_DTB_BINARY is empty

PATCH In review Alex Kiernan 2 participants 3 messages Dec 12, 2018 – Jan 9, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uboot-sign.bbclass: silence warnings when UBOOT_DTB_BINARY is empty

When UBOOT_DTB_BINARY is set to "", the keys for signed booting are expected to be already present in U-Boot's DTB, so don't issue warnings for this.

---

 meta/classes/uboot-sign.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/classes/uboot-sign.bbclass +2 -2
index 03100b8a5fa1..9e3d1d6fc1ad 100644
@@ -70,7 +70,7 @@ concat_dtb() {
 		elif [ -e "${DEPLOYDIR}/${UBOOT_NODTB_IMAGE}" -a -e "$deployed_uboot_dtb_binary" ]; then
 			cd ${DEPLOYDIR}
 			cat ${UBOOT_NODTB_IMAGE} $deployed_uboot_dtb_binary | tee ${B}/${UBOOT_BINARY} > ${UBOOT_IMAGE}
-		else
+		elif [ -n "${UBOOT_DTB_BINARY}" ]; then
 			bbwarn "Failure while adding public key to u-boot binary. Verified boot won't be available."
 		fi
 	fi
@@ -86,7 +86,7 @@ do_install_append() {
 			# need both of them.
 			install ${B}/${UBOOT_DTB_BINARY} ${D}${datadir}/${UBOOT_DTB_IMAGE}
 			ln -sf ${UBOOT_DTB_IMAGE} ${D}${datadir}/${UBOOT_DTB_BINARY}
-		else
+		elif [ -n "${UBOOT_DTB_BINARY}" ]; then
 			bbwarn "${B}/${UBOOT_DTB_BINARY} not found"
 		fi
 	fi
Signature · 1 line
2.7.4
#1 lore raw
Quoted 6 lines · Alex Kiernan

When UBOOT_DTB_BINARY is set to "", the keys for signed booting are expected to be already present in U-Boot's DTB, so don't issue warnings for this.

Ping?

Quoted 30 lines

---

 meta/classes/uboot-sign.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/classes/uboot-sign.bbclass +2 -3
index 03100b8a5fa1..9e3d1d6fc1ad 100644
@@ -70,7 +70,7 @@ concat_dtb() {
                elif [ -e "${DEPLOYDIR}/${UBOOT_NODTB_IMAGE}" -a -e "$deployed_uboot_dtb_binary" ]; then
                        cd ${DEPLOYDIR}
                        cat ${UBOOT_NODTB_IMAGE} $deployed_uboot_dtb_binary | tee ${B}/${UBOOT_BINARY} > ${UBOOT_IMAGE}
-               else
+               elif [ -n "${UBOOT_DTB_BINARY}" ]; then
                        bbwarn "Failure while adding public key to u-boot binary. Verified boot won't be available."
                fi
        fi
@@ -86,7 +86,7 @@ do_install_append() {
                        # need both of them.
                        install ${B}/${UBOOT_DTB_BINARY} ${D}${datadir}/${UBOOT_DTB_IMAGE}
                        ln -sf ${UBOOT_DTB_IMAGE} ${D}${datadir}/${UBOOT_DTB_BINARY}
-               else
+               elif [ -n "${UBOOT_DTB_BINARY}" ]; then
                        bbwarn "${B}/${UBOOT_DTB_BINARY} not found"
                fi
        fi
--

2.7.4

Signature · 1 line
Alex Kiernan
#2 lore raw

This is queued for a build, I'll fire one shortly.

Ross

Quoted 50 lines · Alex Kiernan
Quoted 6 lines · Alex Kiernan

When UBOOT_DTB_BINARY is set to "", the keys for signed booting are expected to be already present in U-Boot's DTB, so don't issue warnings for this.

Ping?

Quoted 28 lines

---

 meta/classes/uboot-sign.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/classes/uboot-sign.bbclass +2 -3
index 03100b8a5fa1..9e3d1d6fc1ad 100644
@@ -70,7 +70,7 @@ concat_dtb() {
                elif [ -e "${DEPLOYDIR}/${UBOOT_NODTB_IMAGE}" -a -e "$deployed_uboot_dtb_binary" ]; then
                        cd ${DEPLOYDIR}
                        cat ${UBOOT_NODTB_IMAGE} $deployed_uboot_dtb_binary | tee ${B}/${UBOOT_BINARY} > ${UBOOT_IMAGE}
-               else
+               elif [ -n "${UBOOT_DTB_BINARY}" ]; then
                        bbwarn "Failure while adding public key to u-boot binary. Verified boot won't be available."
                fi
        fi
@@ -86,7 +86,7 @@ do_install_append() {
                        # need both of them.
                        install ${B}/${UBOOT_DTB_BINARY} ${D}${datadir}/${UBOOT_DTB_IMAGE}
                        ln -sf ${UBOOT_DTB_IMAGE} ${D}${datadir}/${UBOOT_DTB_BINARY}
-               else
+               elif [ -n "${UBOOT_DTB_BINARY}" ]; then
                        bbwarn "${B}/${UBOOT_DTB_BINARY} not found"
                fi
        fi
--
Quoted 2 lines

2.7.4

--
Alex Kiernan
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core