restore UAVCAN bootloader support

- essentially reverting #7878 minus the obsolete board support
This commit is contained in:
Daniel Agar
2020-04-19 16:10:09 -04:00
committed by GitHub
parent 7c533e5a53
commit a3ad710623
30 changed files with 6658 additions and 3 deletions

View File

@@ -60,6 +60,17 @@ if("${PX4_BOARD_LABEL}" STREQUAL "bootloader")
bootloader_lib
drivers_board
)
elseif("${PX4_BOARD_LABEL}" STREQUAL "canbootloader")
set(SCRIPT_PREFIX ${PX4_BOARD_LABEL}_)
add_subdirectory(src/canbootloader)
list(APPEND nuttx_libs
canbootloader
drivers_board
)
target_link_libraries(px4 PRIVATE
-Wl,-wrap,sched_process_timer -Wl,-wrap,sem_post -Wl,-wrap,sem_wait
)
else()
if(NOT "${PX4_BOARD_LINKER_PREFIX}" STREQUAL "")
set(SCRIPT_PREFIX ${PX4_BOARD_LINKER_PREFIX}-)