chore: remove redundant flags

This commit is contained in:
2024-12-04 07:26:08 +06:00
parent bbfcb52e24
commit fd448caab4

View File

@@ -10,18 +10,14 @@ OBJCOPY = arm-none-eabi-objcopy
LD_FILE = rtl8710.ld
CFLAGS = -Wall -g -Os \
-mcpu=cortex-m4 -mthumb -mfloat-abi=soft \
-ffunction-sections -fdata-sections -flto \
-mlittle-endian -mthumb-interwork \
-ffreestanding -fsingle-precision-constant \
-Wstrict-aliasing=0 -nostartfiles \
CFLAGS = -mcpu=cortex-m4 -mthumb -Os -flto \
-nostartfiles -ffreestanding \
-ffunction-sections -fdata-sections -Wl,--gc-sections \
-Wl,-T,$(LD_FILE) -u main \
-Wl,--gc-sections \
-Wl,--defsym=_RAM_ORIGIN=$(FIRMWARE_ADDRESS) \
-Wl,--defsym=_RAM_SIZE=$(RAM_SIZE) \
-DBUFFER_ADDRESS=$(BUFFER_ADDRESS) \
-Wl,--defsym=_WORK_AREA_START=$(WORK_AREA_START)
-Wl,--defsym=_WORK_AREA_START=$(WORK_AREA_START) \
-DBUFFER_ADDRESS=$(BUFFER_ADDRESS)
SRC = rtl8710_flasher.c
TARGET = rtl8710_flasher