Skip to content

Commit

Permalink
nuttx/toc: Add image config message to ToC
Browse files Browse the repository at this point in the history
  • Loading branch information
pussuw committed Jan 11, 2024
1 parent a84ac3c commit 3eb5581
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions platforms/nuttx/toc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions src/include/image_toc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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" */
Expand Down

0 comments on commit 3eb5581

Please sign in to comment.