chore: sdk compiles almost w/o warnings?

This commit is contained in:
2024-12-17 03:13:08 +06:00
parent 31efbc726f
commit 7c7b36a6b3
55 changed files with 658 additions and 514 deletions

View File

@@ -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