Skip to content

Commit

Permalink
usbboot: conditionally sign msd binaries
Browse files Browse the repository at this point in the history
With the USB provisioning being preferred, the msd binaries are no
longer required.

This commit adds a recipe configuration to make the signing conditional.

Changelog-entry: do not sign msd binaries by default as they are not needed
Signed-off-by: Alex Gonzalez <alexg@balena.io>
  • Loading branch information
alexgg committed Jul 1, 2024
1 parent 1e317ce commit 878c790
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ do_install(){
install -m 644 ${S}/msd/bootcode4.bin ${D}
install -m 644 ${S}/msd/start.elf ${D}
install -m 644 ${S}/msd/start4.elf ${D}
if [ "x${SIGN_API}" != "x" ]; then
if [ "x${SIGN_API}" != "x" ] && [ "${BALENA_SIGN_MSD}" = "1" ]; then
install -d ${D}/secure-boot-msd/
if ! do_sign_rsa "${S}/secure-boot-msd/boot.img" "${D}/secure-boot-msd/boot.sig"; then
bbfatal "Failed to sign boot image"
Expand Down

0 comments on commit 878c790

Please sign in to comment.