bl_update: build and include board bootloader if config available

This commit is contained in:
Daniel Agar
2019-11-16 11:43:42 +01:00
committed by Lorenz Meier
parent 850821f47f
commit a694f0bbdd
5 changed files with 80 additions and 9 deletions
+15 -9
View File
@@ -120,15 +120,6 @@ add_custom_command(
# copy extras into ROMFS
set(extras_dependencies)
# copy px4io binary if configured
if(config_io_board)
list(APPEND extras_dependencies
copy_px4io_bin
${fw_io_bin}
)
endif()
if(config_bl_file)
file(MAKE_DIRECTORY ${PX4_BINARY_DIR}/romfs_extras)
configure_file(${config_bl_file} ${PX4_BINARY_DIR}/romfs_extras COPYONLY)
@@ -138,6 +129,21 @@ if(config_bl_file)
)
endif()
# copy px4io binary if configured
if(config_io_board)
list(APPEND extras_dependencies
copy_px4io_bin
${fw_io_bin}
)
endif()
if(config_build_bootloader)
list(APPEND extras_dependencies
copy_bootloader_bin
${bootloader_bin}
)
endif()
set(OPTIONAL_BOARD_RC)
list(APPEND OPTIONAL_BOARD_RC
rc.board_defaults