mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2026-03-14 21:19:43 +01:00
Don't include the picobin end block when sealing (#2492)
* Don't include the picobin end block when signing, as picotool will add a new end block anyway * small whitespace fix --------- Co-authored-by: Graham Sanderson <graham.sanderson@raspberrypi.com>
This commit is contained in:
parent
6841d4d15b
commit
1ae2f0e32c
1 changed files with 13 additions and 13 deletions
|
|
@ -664,21 +664,21 @@ function(picotool_postprocess_binary TARGET)
|
|||
VERBATIM)
|
||||
endif()
|
||||
# Signing/hashing/load maps for packaging
|
||||
if (
|
||||
picotool_sign_output OR
|
||||
if (picotool_sign_output OR
|
||||
picotool_hash_output OR
|
||||
uf2_package_addr OR
|
||||
extra_process_args
|
||||
)
|
||||
add_custom_command(TARGET ${TARGET} POST_BUILD
|
||||
COMMAND picotool
|
||||
ARGS seal
|
||||
--quiet
|
||||
$<TARGET_FILE:${TARGET}> $<TARGET_FILE:${TARGET}>
|
||||
${picotool_sigfile} ${otp_file}
|
||||
${picotool_args}
|
||||
COMMAND_EXPAND_LISTS
|
||||
VERBATIM)
|
||||
extra_process_args)
|
||||
# We don't need the extra end block, as picotool seal will add one
|
||||
target_compile_definitions(${TARGET} PRIVATE PICO_CRT0_INCLUDE_PICOBIN_END_BLOCK=0)
|
||||
add_custom_command(TARGET ${TARGET} POST_BUILD
|
||||
COMMAND picotool
|
||||
ARGS seal
|
||||
--quiet
|
||||
$<TARGET_FILE:${TARGET}> $<TARGET_FILE:${TARGET}>
|
||||
${picotool_sigfile} ${otp_file}
|
||||
${picotool_args}
|
||||
COMMAND_EXPAND_LISTS
|
||||
VERBATIM)
|
||||
endif()
|
||||
# Encryption
|
||||
if (picotool_aesfile AND picotool_ivfile)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue