[feat] linker remove unused function
This commit is contained in:
parent
ac17c1662f
commit
0e83ba9240
@ -16,10 +16,10 @@ set(CMAKE_AR "${TOOLCHAIN}ar")
|
|||||||
set(CMAKE_RANLIB "${TOOLCHAIN}ranlib")
|
set(CMAKE_RANLIB "${TOOLCHAIN}ranlib")
|
||||||
set(LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/flash.ld")
|
set(LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/flash.ld")
|
||||||
|
|
||||||
set(MCU_FLAGS "-mcpu=cortex-m7 -mthumb -g -O2 -Wall -nostartfiles -mfloat-abi=hard -mfpu=fpv5-d16 -fdata-sections -ffunction-sections -fdata-sections")
|
set(MCU_FLAGS "-mcpu=cortex-m7 -mthumb -g -O2 -Wall -nostartfiles -mfloat-abi=hard -mfpu=fpv5-d16 -ffunction-sections -fdata-sections")
|
||||||
set(CMAKE_C_FLAGS "${MCU_FLAGS}")
|
set(CMAKE_C_FLAGS "${MCU_FLAGS}")
|
||||||
set(CMAKE_ASM_FLAGS "${MCU_FLAGS}")
|
set(CMAKE_ASM_FLAGS "${MCU_FLAGS}")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${MCU_FLAGS} -T${LINKER_SCRIPT} -Wl,-Map=bootloader.map")
|
set(CMAKE_EXE_LINKER_FLAGS "${MCU_FLAGS} -T${LINKER_SCRIPT} -Wl,-Map=bootloader.map -Wl,--gc-sections")
|
||||||
|
|
||||||
add_definitions(-DSTM32H750xx)
|
add_definitions(-DSTM32H750xx)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user