Merge pull request #61 from pjonsson/fix-test-makefile

tests: only pass -mmcu once
This commit is contained in:
Niclas Finne 2022-05-25 13:10:47 +02:00 committed by GitHub
commit eae0cab1ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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