Files
MuditaOS/cmake/modules/ConfigureVersionJson.cmake
Bartosz d13a51d044 [MOS-785] Reworked updater dependencies into recovery
Fixed usage of updater in OS build flow to use recovery
2023-01-19 16:41:56 +01:00

16 lines
437 B
CMake

list(APPEND CMAKE_MODULE_PATH "${SRC_DIR}/cmake/modules")
include(Version)
if (NOT ${BOOTLOADER_FILE} STREQUAL "")
file(MD5 ${BOOTLOADER_FILE} BOOTLOADER_MD5SUM)
endif()
if (NOT ${BOOT_FILE} STREQUAL "")
file(MD5 ${BOOT_FILE} BOOT_MD5SUM)
endif()
if (NOT ${RECOVERY_FILE} STREQUAL "")
file(MD5 ${RECOVERY_FILE} RECOVERY_MD5SUM)
endif()
message("Configuring version.json file")
configure_file(${SRC_FILE} ${DST_FILE} @ONLY)