From 207f7915d98929223ea62b504bda9c1afef1a00c Mon Sep 17 00:00:00 2001 From: Huibean Date: Thu, 27 Jun 2024 14:05:43 +0800 Subject: [PATCH] fix makefile CFLAGS to match actual mcu setup --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index 567580ff..0c12895a 100644 --- a/makefile +++ b/makefile @@ -80,7 +80,7 @@ $(TARGETS_F031) : # Compile target $(TARGET_BASENAME).elf: SRC := $(SRC_COMMON) $(SRC_$(MCU_TYPE)) -$(TARGET_BASENAME).elf: CFLAGS := $(MCU_F051) $(CFLAGS_$(MCU_TYPE)) $(CFLAGS_COMMON) +$(TARGET_BASENAME).elf: CFLAGS := $(MCU_$(MCU_TYPE)) $(CFLAGS_$(MCU_TYPE)) $(CFLAGS_COMMON) $(TARGET_BASENAME).elf: LDFLAGS := $(LDFLAGS_COMMON) $(LDFLAGS_$(MCU_TYPE)) -T$(LDSCRIPT_$(MCU_TYPE)) $(TARGET_BASENAME).elf: $(SRC) @$(ECHO) Compiling $(notdir $@)