~aleteoryx/muditaos

0fd72b06c1e6391c753c4090417d86420a9b448e — Radoslaw Wicik 5 years ago f6cf68a
[EGD-6204] Add version.json to the udate package

`versin.json` is required for update process. This commit puts it back
to update package
2 files changed, 3 insertions(+), 2 deletions(-)

M CMakeLists.txt
M cmake/modules/GenUpdateVersionJson.cmake
M CMakeLists.txt => CMakeLists.txt +2 -2
@@ 289,11 289,11 @@ if (${PROJECT_TARGET} STREQUAL "TARGET_RT1051")
        DEPENDS ${ECOBOOT_FILE}-target ${ECOBOOT_DOWNLOAD_LOG}
        )

    add_custom_target(${VERSION_JSON_FILE}-target DEPENDS ${VERSION_JSON})
    add_custom_target(${VERSION_JSON_FILE}-target DEPENDS ${VERSION_JSON_FILE})

    multicomp_install(PROGRAMS ${CMAKE_BINARY_DIR}/${ECOBOOT_FILE} DESTINATION "./" 
        COMPONENTS Standalone Update)
    multicomp_install(FILES ${VERSION_JSON} DESTINATION "./" 
    multicomp_install(FILES ${CMAKE_BINARY_DIR}/${VERSION_JSON_FILE} DESTINATION "./" 
        COMPONENTS Standalone Update)
endif()


M cmake/modules/GenUpdateVersionJson.cmake => cmake/modules/GenUpdateVersionJson.cmake +1 -0
@@ 14,6 14,7 @@ execute_process(
    OUTPUT_STRIP_TRAILING_WHITESPACE
)

message("preparing version file")
configure_file(
    ${SRC_DIR}/config/version.json.cmake_template
    ${CMAKE_BINARY_DIR}/version.json