zephyr/cmake
Martí Bolívar f66a0c3772 build: auto-generate signed mcuboot binaries
Add new Kconfig options which depend on CONFIG_BOOTLOADER_MCUBOOT:

- CONFIG_MCUBOOT_SIGNATURE_KEY_FILE: the path to the key pair which
  should be used to sign the image, in PEM format. This is sent to
  imgtool via 'west sign' when set to produce zephyr.signed.bin and
  zephyr.signed.hex files as needed.

- CONFIG_MCUBOOT_EXTRA_IMGTOOL_ARGS: additional arguments to pass to
  imgtool.

- CONFIG_MCUBOOT_GENERATE_CONFIRMED_IMAGE: also generate
  zephyr.signed.confirmed.{bin,hex}

Add build system support for these options.

This makes a separate 'west sign' step unnecessary when using MCUboot,
if the application image is properly configured with the location of
the key file.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-09-01 13:33:46 +02:00
..
app build: update stale comment in boilerplate.cmake 2020-09-01 13:33:46 +02:00
bintools
compiler coding_guideline: Add optional flag to check override initialization 2020-08-28 16:50:39 -04:00
emu cmake: combine nsim and mdb for emulation 2020-08-14 13:30:56 +02:00
flash cmake: flash: remove unused cache variables 2020-08-19 09:51:13 -04:00
ide
linker/ld
makefile_exports
reports cmake: generate json file for ram/rom reports 2020-08-14 18:49:26 -04:00
toolchain cmake: Set TOOLCHAIN_ARCH based on OS_PLATFORM 2020-08-07 06:54:18 -05:00
usage cmake: sort shield list and improve indent 2020-08-05 12:01:49 +02:00
util
boards.cmake
ccache.cmake
cfb.cmake
dts.cmake
extensions.cmake
extra_flags.cmake
gcc-m-cpu.cmake cmake: gcc: add support for compiling for the ARM Cortex-M1 2020-08-14 13:35:39 -05:00
generic_toolchain.cmake cmake: warn user if CPPFLAGS is set as environment setting 2020-09-01 13:29:24 +02:00
git.cmake
hex.cmake
host-tools.cmake cmake: add IMGTOOL optional dependency 2020-09-01 13:33:46 +02:00
kconfig.cmake cmake: export Zephyr modules as Kconfig variables. 2020-08-31 12:15:02 +02:00
kobj.cmake
mcuboot.cmake build: auto-generate signed mcuboot binaries 2020-09-01 13:33:46 +02:00
pristine.cmake
python.cmake
target_toolchain.cmake
version.cmake
west.cmake cmake: west detection fixes and improvements 2020-09-01 13:33:46 +02:00
zephyr_module.cmake cmake: Zephyr module error on module name current 2020-08-31 12:15:02 +02:00