From ec1498b61cdbf2a7b0f7ab279ba361934f98fa7f Mon Sep 17 00:00:00 2001 From: "Peter A. Jonsson" Date: Sat, 21 May 2022 17:35:10 +0200 Subject: [PATCH] tests: only pass -mmcu once Change the order of flags for the firmware target so CFLAGS with -mmcu comes early and is only passed once to the compiler. --- tests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Makefile b/tests/Makefile index 4f626ee..0435dfa 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -23,7 +23,7 @@ all: cputest.firmware timertest.firmware %.firmware: %.o $(OBJECTS) - $(CC) -mmcu=$(MCU) -Wl,-Map=$(@:.firmware=.map) $(CFLAGS) -o $@ $^ + $(CC) $(CFLAGS) -Wl,-Map=$(@:.firmware=.map) -o $@ $^ %.ihex: %.firmware $(OBJCOPY) $^ -O ihex $@