From 084d9439ba0a163e73af2498ffd45485c678161f Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Tue, 9 Jan 2024 14:07:20 +0200 Subject: [PATCH] nuttx/toc: Add image config message to ToC --- platforms/nuttx/toc/CMakeLists.txt | 4 ++-- src/include/image_toc.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/platforms/nuttx/toc/CMakeLists.txt b/platforms/nuttx/toc/CMakeLists.txt index 646c3835b8b9..6f6079a88929 100644 --- a/platforms/nuttx/toc/CMakeLists.txt +++ b/platforms/nuttx/toc/CMakeLists.txt @@ -60,8 +60,8 @@ if(NOT USE_LD_GOLD) target_link_libraries(toc PRIVATE -Wl,--print-memory-usage) endif() -target_link_libraries(toc PRIVATE board_toc) -target_link_libraries(drivers_board PRIVATE board_toc) +target_link_libraries(toc PRIVATE board_toc image_cfg) +target_link_libraries(drivers_board PRIVATE board_toc image_cfg) set(TOC_BINARY_OUTPUT ${PX4_BINARY_DIR}/toc.bin) diff --git a/src/include/image_toc.h b/src/include/image_toc.h index 479888b21315..048eaeeb24da 100644 --- a/src/include/image_toc.h +++ b/src/include/image_toc.h @@ -48,6 +48,7 @@ #define TOC_FLAG1_DECRYPT 0x8 #define TOC_FLAG1_COPY 0x10 +#define TOC_FLAG1_ICFG 0x40 #define TOC_FLAG1_RDCT 0x80 #define TOC_START_MAGIC 0x00434f54 /* "TOC" */