Skip to content

Commit 6a13598

Browse files
cmagliegiulcioffi
authored andcommittedMar 22, 2022
Move default keys inside board definition (under 'sien' secutiry settings)
1 parent 7c8d118 commit 6a13598

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎boards.txt

+4
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ envie_m7.build.header_size=0x20000
8181
envie_m7.build.alignment=32
8282
envie_m7.build.version=1.2.3+4
8383
envie_m7.menu.security.sien.build.postbuild.cmd="{tools.imgtool.path}/{tools.imgtool.cmd}" {tools.imgtool.build.pattern}
84+
## Defaults for secure boot sign and encrypt keys
85+
envie_m7.menu.security.sien.build.keys.path={runtime.hardware.path}/mbed/libraries/MCUboot/default_keys
86+
envie_m7.menu.security.sien.build.sign.name=ecdsa-p256-signing-key.pem
87+
envie_m7.menu.security.sien.build.encrypt.name=ecdsa-p256-encrypt-key.pem
8488
envie_m7.menu.security.none.build.postbuild.cmd="{tools.imgtool.path}/{tools.imgtool.cmd}" exit
8589
envie_m7.compiler.mbed.arch.define=
8690
envie_m7.compiler.mbed.defines={build.variant.path}/defines.txt

‎platform.txt

+1-5
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,7 @@ tools.picotool.upload.pattern="{path}/{cmd}" {upload.verbose} -D "{build.path}/{
193193

194194
tools.imgtool.path={runtime.tools.imgtool.path}
195195
tools.imgtool.cmd=imgtool
196-
tools.imgtool.keys.path={runtime.hardware.path}/mbed/libraries/MCUboot/default_keys
197-
tools.imgtool.sign.name=ecdsa-p256-signing-key.pem
198-
tools.imgtool.encrypt.name=ecdsa-p256-encrypt-key.pem
199-
200-
tools.imgtool.build.pattern=sign --key "{tools.imgtool.keys.path}/{tools.imgtool.sign.name}" --encrypt "{tools.imgtool.keys.path}/{tools.imgtool.encrypt.name}" "{build.path}/{build.project_name}.bin" "{build.path}/{build.project_name}.bin" --align {build.alignment} --max-align {build.alignment} --version {build.version} --header-size {build.header_size} --pad-header --slot-size {build.slot_size}
196+
tools.imgtool.build.pattern=sign --key "{build.keys.path}/{build.sign.name}" --encrypt "{build.keys.path}/{build.encrypt.name}" "{build.path}/{build.project_name}.bin" "{build.path}/{build.project_name}.bin" --align {build.alignment} --max-align {build.alignment} --version {build.version} --header-size {build.header_size} --pad-header --slot-size {build.slot_size}
201197

202198
#
203199
# GDB (Debugger)

0 commit comments

Comments
 (0)