mirror of https://github.com/contiki-ng/mspsim
Merge pull request #61 from pjonsson/fix-test-makefile
tests: only pass -mmcu once
This commit is contained in:
commit
eae0cab1ce
|
|
@ -11,7 +11,7 @@ AR = msp430-ar
|
|||
OBJCOPY = msp430-objcopy
|
||||
STRIP = msp430-strip
|
||||
BSL = msp430-bsl
|
||||
CFLAGSNO = -I. -Wall -mmcu=$(MCU) -g
|
||||
CFLAGSNO = -I. -Wall -mmcu=$(MCU) -g -gstabs+
|
||||
CFLAGS += $(CFLAGSNO) -Os
|
||||
|
||||
SOURCES := msp430setup.c
|
||||
|
|
@ -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