mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-23 05:08:45 +00:00
[chore][cmake] refactor cmake building style,remove all components support,using auto component building instead
This commit is contained in:
parent
a1912eeec1
commit
46ed669b1a
8 changed files with 33 additions and 94 deletions
|
@ -1,5 +1,3 @@
|
|||
include(${CMAKE_SOURCE_DIR}/drivers/${CHIP}_driver/cpu_flags.cmake)
|
||||
|
||||
list(APPEND GLOBAL_C_FLAGS -Os -g3)
|
||||
list(APPEND GLOBAL_C_FLAGS -fshort-enums -fno-common -fms-extensions -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -ffast-math)
|
||||
list(APPEND GLOBAL_C_FLAGS -Wall -Wshift-negative-value -Wchar-subscripts -Wformat -Wuninitialized -Winit-self -Wignored-qualifiers -Wunused -Wundef)
|
||||
|
@ -15,7 +13,9 @@ if(${SUPPORT_FLOAT} STREQUAL "y")
|
|||
list(APPEND GLOBAL_LD_FLAGS -u _printf_float)
|
||||
endif()
|
||||
|
||||
# if(${SUPPORT_BACKTRACE} STREQUAL "y")
|
||||
# list(APPEND GLOBAL_C_FLAGS -fno-omit-frame-pointer)
|
||||
# endif()
|
||||
|
||||
|
||||
|
||||
if(${SUPPORT_SHELL} STREQUAL "y")
|
||||
list(APPEND GLOBAL_C_FLAGS -DSHELL_SUPPORT)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue