Menu overlay

This commit is contained in:
Bertrand Songis
2019-11-29 09:04:06 +01:00
parent 88222340c4
commit 54e2221535
14 changed files with 35 additions and 34 deletions
+5 -5
View File
@@ -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)