It's now possible to compile HORUS firmware without bootloader

This commit is contained in:
Bertrand Songis
2019-11-08 14:36:44 +01:00
parent 35ea7e138f
commit fb00294243
7 changed files with 210 additions and 12 deletions
+14 -2
View File
@@ -13,7 +13,13 @@ set(HAPTIC YES)
set(GUI_DIR colorlcd)
set(NAVIGATION_TYPE horus)
set(TARGET_DIR horus)
set(LINKER_SCRIPT targets/horus/stm32f4_flash.ld)
if(BOOTLOADER)
set(LINKER_SCRIPT targets/horus/stm32f4_flash_bootloader.ld)
else()
set(LINKER_SCRIPT targets/horus/stm32f4_flash.ld)
endif()
set(RAMBACKUP YES)
set(PPM_LIMITS_SYMETRICAL YES)
set(USB_SERIAL ON CACHE BOOL "Enable USB serial (CDC)")
@@ -162,9 +168,15 @@ set(FIRMWARE_TARGET_SRC
startup_stm32f42_43xxx.s
../common/arm/stm32/heartbeat_driver.cpp
../common/arm/stm32/sdio_sd.c
../common/arm/loadboot.cpp
)
if(BOOTLOADER)
set(FIRMWARE_TARGET_SRC
${FIRMWARE_TARGET_SRC}
../common/arm/loadboot.cpp
)
endif()
set(SRC
${SRC}
io/frsky_firmware_update.cpp