1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 17:25:13 +03:00

Use nano.spec for linking bootloader (#6004)

This saves about 2kB on the Taranis X-Lite
This commit is contained in:
Arne Schwabe 2018-06-30 17:40:33 +02:00 committed by Bertrand Songis
parent a26879dca8
commit 5dd0ac75bc

View file

@ -113,6 +113,9 @@ remove_definitions(-DUSB_SERIAL)
add_definitions(-DBOOT)
set(CMAKE_EXE_LINKER_FLAGS "-mcpu=${MCU} -mthumb -nostartfiles -lm -T${RADIO_SRC_DIRECTORY}/targets/${TARGET_DIR}/stm32_ramboot.ld -Wl,-Map=bootloader.map,--cref,--no-warn-mismatch,--gc-sections")
# use smaller nano libc
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --specs=nano.specs")
add_executable(bootloader ${BOOTLOADER_SRC})
add_dependencies(bootloader ${BITMAPS_TARGET} firmware_translations)