Menu overlay
This commit is contained in:
@@ -504,11 +504,7 @@ if(NOT MSVC)
|
||||
set(SRC ${SRC} bin_allocator.cpp)
|
||||
endif()
|
||||
|
||||
if(BOOTLOADER)
|
||||
add_subdirectory(targets/common/arm/stm32/bootloader)
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR}/targets/common/arm/stm32/bootloader)
|
||||
set(RADIO_DEPENDENCIES ${RADIO_DEPENDENCIES} bootloader)
|
||||
elseif(OPENRC_BOOTLOADER)
|
||||
if(OPENRC_BOOTLOADER)
|
||||
# We fetch Mike's bootloader as it is not included inside OpenTX
|
||||
message(STATUS "Downloading Mike's bootloader: https://github.com/MikeBland/OpenRcBootloader/releases/download/V1.9/${OPENRC_BOOTLOADER}")
|
||||
file(DOWNLOAD https://github.com/MikeBland/OpenRcBootloader/releases/download/V1.9/${OPENRC_BOOTLOADER} ${CMAKE_CURRENT_BINARY_DIR}/bootloader.lbm STATUS status)
|
||||
@@ -517,6 +513,10 @@ if(NOT MSVC)
|
||||
list(GET status 1 error_message)
|
||||
message(FATAL_ERROR "Download failed: ${error_message}")
|
||||
endif()
|
||||
elseif(BOOTLOADER)
|
||||
add_subdirectory(targets/common/arm/stm32/bootloader)
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR}/targets/common/arm/stm32/bootloader)
|
||||
set(RADIO_DEPENDENCIES ${RADIO_DEPENDENCIES} bootloader)
|
||||
endif()
|
||||
|
||||
add_definitions(-DRTOS_COOS)
|
||||
|
||||
Reference in New Issue
Block a user