cmake: add IMGTOOL optional dependency

This will be used in subsequent patches to integrate imgtool into the
build when the user has set CONFIG_BOOTLOADER_MCUBOOT=y.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2020-08-19 09:34:11 -07:00 committed by Carles Cufí
commit a0382cb925

View file

@ -57,5 +57,13 @@ find_program(
bossac bossac
) )
# imgtool is an optional dependency (the build may also fall back to
# scripts/imgtool.py in the mcuboot repository if that's present in
# some cases)
find_program(
IMGTOOL
imgtool
)
# TODO: Should we instead find one qemu binary for each ARCH? # TODO: Should we instead find one qemu binary for each ARCH?
# TODO: This will probably need to be re-organized when there exists more than one SDK. # TODO: This will probably need to be re-organized when there exists more than one SDK.