From 7001c87e16137509986c524a77cdba44dc5e5ca6 Mon Sep 17 00:00:00 2001 From: David Escalona Date: Fri, 15 Sep 2023 09:44:14 +0200 Subject: [PATCH] dualboot: pass pubkey to swupdate when available Signed-off-by: David Escalona --- .../recipes-digi/dualboot/dualboot/update-firmware | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta-digi-dey/recipes-digi/dualboot/dualboot/update-firmware b/meta-digi-dey/recipes-digi/dualboot/dualboot/update-firmware index 2fd76f9b8..4fbabc52a 100755 --- a/meta-digi-dey/recipes-digi/dualboot/dualboot/update-firmware +++ b/meta-digi-dey/recipes-digi/dualboot/dualboot/update-firmware @@ -173,7 +173,11 @@ update_emmc() { echo "" # Execute the update. - swupdate ${VERBOSE} -i "${UPDATE_FILE}" -e "${IMAGE_SET}" + if [ -f "${PUBLIC_KEY}" ]; then + swupdate ${VERBOSE} -i "${UPDATE_FILE}" -e "${IMAGE_SET}" -k "${PUBLIC_KEY}" + else + swupdate ${VERBOSE} -i "${UPDATE_FILE}" -e "${IMAGE_SET}" + fi } update_nand() {