diff --git a/platforms/nuttx/toc/CMakeLists.txt b/platforms/nuttx/toc/CMakeLists.txt index 646c3835b8b9..60dc828490e5 100644 --- a/platforms/nuttx/toc/CMakeLists.txt +++ b/platforms/nuttx/toc/CMakeLists.txt @@ -60,8 +60,14 @@ 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) +set(toc_libs board_toc) + +if (TARGET image_cfg) + list(APPEND toc_libs image_cfg) +endif() + +target_link_libraries(toc PRIVATE ${toc_libs}) +target_link_libraries(drivers_board PRIVATE ${toc_libs}) 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" */