mirror of https://github.com/contiki-ng/mspsim
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:
parent
c82dc9e90f
commit
ec1498b61c
|
|
@ -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 $@
|
||||
|
|
|
|||
Loading…
Reference in New Issue