feat: OTA-Image mit Trailer im Build erzeugen

This commit is contained in:
Michael Sauer
2026-09-12 01:23:03 +02:00
parent 76b9c3fef1
commit fabca1a6b4
3 changed files with 13 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
file(READ ${VERSION_HEADER} V)
string(REGEX MATCH "\"([^\"]*)\"" _m "${V}")
set(VERSION "${CMAKE_MATCH_1}")
execute_process(COMMAND python3 ${MKIMAGE} --image ${IMAGE} --device ${DEVICE} --version ${VERSION} --out ${OUT}
RESULT_VARIABLE rc)
if(NOT rc EQUAL 0)
message(FATAL_ERROR "nl_mkimage failed (${rc})")
endif()