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.
This commit is contained in:
Peter A. Jonsson 2022-05-21 17:35:10 +02:00
parent c82dc9e90f
commit ec1498b61c
1 changed files with 1 additions and 1 deletions

View File

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