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 cmake: Correct PATHS usage 2020-05-20 12:10:20 +02:00
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 cmake: Correct PATHS usage 2020-05-20 12:10:20 +02:00
makefile_exports cmake: Add option for exporting build metadata to Make 2020-01-23 15:09:12 -05:00
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 doc,cmake: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
ccache.cmake
cfb.cmake cmake: using ${ZEPHYR_BASE} instead of $ENV{ZEPHYR_BASE} 2020-03-27 16:23:46 +01:00
dts.cmake devicetree: use edt.pickle more 2020-07-23 09:19:45 -05:00
extensions.cmake cmake: remove _if_kconfig() functions 2020-08-01 12:35:20 +02:00
extra_flags.cmake cmake: extra_flags: fix EXTRA_CPPFLAGS being applied as macros 2019-12-13 13:23:40 -05:00
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 cmake: using ${ZEPHYR_BASE} instead of $ENV{ZEPHYR_BASE} 2020-03-27 16:23:46 +01:00
mcuboot.cmake build: auto-generate signed mcuboot binaries 2020-09-01 13:33:46 +02:00
pristine.cmake
python.cmake cmake: find python3 on windows when multiarch are installed 2020-05-13 12:13:36 +02:00
target_toolchain.cmake
version.cmake cmake: Added possibility to disable the printing of version 2020-03-27 16:23:46 +01:00
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