From e34bb7460f935fd3e197baec3b7f71370f087e39 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Tue, 29 Oct 2019 12:50:41 +1100 Subject: [PATCH] secure boot: In Reflashable mode, make sure the bootloader digest updates ... whenever the bootloader.bin is updated --- components/bootloader/subproject/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/bootloader/subproject/CMakeLists.txt b/components/bootloader/subproject/CMakeLists.txt index c125cc5581..9a49fee85c 100644 --- a/components/bootloader/subproject/CMakeLists.txt +++ b/components/bootloader/subproject/CMakeLists.txt @@ -75,7 +75,8 @@ if(CONFIG_SECURE_BOOTLOADER_REFLASHABLE) add_custom_command(OUTPUT "${bootloader_digest_bin}" COMMAND ${CMAKE_COMMAND} -E echo "DIGEST ${bootloader_digest_bin}" COMMAND ${ESPSECUREPY} digest_secure_bootloader --keyfile "${secure_bootloader_key}" - -o "${bootloader_digest_bin}" "${CMAKE_BINARY_DIR}/bootloader.bin" + -o "${bootloader_digest_bin}" "${CMAKE_BINARY_DIR}/bootloader.bin" + MAIN_DEPENDENCY gen_project_binary DEPENDS gen_secure_bootloader_key gen_project_binary VERBATIM)