chore: sdk compiles almost w/o warnings?
This commit is contained in:
@@ -32,25 +32,27 @@ include $(MKFILES)/sources.mk
|
||||
|
||||
# compiler flags
|
||||
COMMON_FLAGS := \
|
||||
-mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 \
|
||||
-Os -g2 -w
|
||||
-mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 \
|
||||
-Os
|
||||
|
||||
CFLAGS := $(COMMON_FLAGS) \
|
||||
-DM4 -DCONFIG_PLATFORM_8711B \
|
||||
-ffunction-sections -fdata-sections -fomit-frame-pointer \
|
||||
-fno-common -fno-short-enums -std=gnu99 -fsigned-char \
|
||||
-Wno-pointer-sign -Wno-implicit-function-declaration \
|
||||
-Wno-incompatible-pointer-types -Wno-int-conversion
|
||||
-fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables \
|
||||
-fno-builtin -fno-short-enums \
|
||||
-std=gnu99 \
|
||||
|
||||
LFLAGS := $(COMMON_FLAGS) \
|
||||
--specs=nano.specs -nostartfiles \
|
||||
-Wl,--gc-sections -Wl,--entry=Reset_Handler \
|
||||
-Wl,--gc-sections \
|
||||
-Wl,--entry=Reset_Handler \
|
||||
-Wl,--no-enum-size-warning -Wl,--no-wchar-size-warning \
|
||||
-Wl,--wrap=malloc -Wl,--wrap=free -Wl,--wrap=realloc \
|
||||
-Wl,--wrap=rom_psk_CalcGTK -Wl,--wrap=rom_psk_CalcPTK \
|
||||
-Wl,--wrap=CalcMIC -Wl,--wrap=CheckMIC \
|
||||
-Wl,--wrap=aes_80211_encrypt -Wl,--wrap=aes_80211_decrypt \
|
||||
-Wl,--wrap=DecGTK
|
||||
-Wl,--wrap=DecGTK \
|
||||
-Wl,--print-memory-usage
|
||||
|
||||
# libs
|
||||
LIB_DIR := $(SOC_PATH)/misc/bsp/lib/common/GCC
|
||||
|
||||
Reference in New Issue
Block a user