Commit 6db2c86d authored by Jamie McCrae's avatar Jamie McCrae Committed by Benjamin Cabé
Browse files

cmake: modules: Prefer imgtool being in MCUboot directory

Changes the priority of imgtool so that the preferred version is
the one inside of the MCUboot directory

Signed-off-by: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent 09991d52
Loading
Loading
Loading
Loading
+4 −3
Changes for cmake/modules/FindHostTools.cmake: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -61,9 +61,10 @@ find_program(OPENOCD openocd)
# bossac is an optional dependency
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)
# imgtool is an optional dependency (prefer the version that is in the mcuboot repository, if
# present and a user has not specified a different version)
zephyr_get(IMGTOOL SYSBUILD LOCAL)
find_program(IMGTOOL imgtool.py HINTS ${ZEPHYR_MCUBOOT_MODULE_DIR}/scripts/ NAMES imgtool NAMES_PER_DIR)

# winpty is an optional dependency
find_program(PTY_INTERFACE winpty)