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:
parent
a26879dca8
commit
5dd0ac75bc
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue