Skip to content

Commit

Permalink
fix(cmake/signing): do not clean up the CONFIG_SECURE_BOOT_VERIFICATI…
Browse files Browse the repository at this point in the history
…ON_KEY file provided separately
  • Loading branch information
Andste82 committed Oct 1, 2024
1 parent 46acfdc commit bb08754
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/bootloader_support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ if(CONFIG_SECURE_SIGNED_APPS AND (CONFIG_SECURE_BOOT_V1_ENABLED OR CONFIG_SECURE
extract_public_key --keyfile "${secure_boot_signing_key}"
"${secure_boot_verification_key}"
DEPENDS ${secure_boot_signing_key}
BYPRODUCTS ${secure_boot_verification_key}
VERBATIM)
else()
# We expect to 'inherit' the verification key passed from main project.
Expand Down Expand Up @@ -169,6 +170,7 @@ if(CONFIG_SECURE_SIGNED_APPS AND (CONFIG_SECURE_BOOT_V1_ENABLED OR CONFIG_SECURE
"${secure_boot_verification_key}"
WORKING_DIRECTORY ${project_dir}
DEPENDS ${secure_boot_signing_key}
BYPRODUCTS ${secure_boot_verification_key}
VERBATIM)
endif()
endif()
Expand All @@ -177,9 +179,6 @@ if(CONFIG_SECURE_SIGNED_APPS AND (CONFIG_SECURE_BOOT_V1_ENABLED OR CONFIG_SECURE
#
target_add_binary_data(${COMPONENT_LIB} "${secure_boot_verification_key}" "BINARY"
RENAME_TO signature_verification_key_bin)
set_property(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
APPEND PROPERTY ADDITIONAL_CLEAN_FILES
"${secure_boot_verification_key}")
endif()

if(BOOTLOADER_BUILD)
Expand Down

0 comments on commit bb08754

Please sign in to comment.