diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -42,7 +42,7 @@ MV = mv DEPEND = $(SOURCES:.c=.d) # all the object files OBJECTS = $(SOURCES:.c=.o) -all: $(TARGET).elf $(TARGET).hex $(TARGET).txt $(TARGET).gcc.lst +all: $(TARGET).elf $(TARGET).hex $(TARGET).txt $(TARGET).safe.txt $(TARGET).gcc.lst $(TARGET).elf: $(OBJECTS) echo "Linking $@" $(CC) $(OBJECTS) $(LDFLAGS) $(LIBS) -o $@ @@ -55,6 +55,8 @@ $(TARGET).elf: $(OBJECTS) %.txt: %.hex $(MAKETXT) -O $@ -TITXT $< -I unix2dos $(TARGET).txt +%.safe.txt: %.txt + ./fill_titxt.py -n 4 -x 0xff3f -d 0x82432001 -w 0x0020 -o $@ $< %.gcc.lst: %.elf $(OBJDUMP) -S -d $< > $@ && $(OBJDUMP) -s -j .rodata $< >> $@ # The above line is required for the DOS based TI BSL tool to be able to read the txt file generated from linux/unix systems. @@ -79,7 +81,7 @@ endif .PHONY: clean clean: -$(RM) $(OBJECTS) - -$(RM) $(TARGET).elf $(TARGET).hex $(TARGET).lst $(TARGET).map $(TARGET).txt $(TARGET).gcc.lst + -$(RM) $(TARGET).elf $(TARGET).hex $(TARGET).lst $(TARGET).map $(TARGET).txt $(TARGET).safe.txt $(TARGET).gcc.lst -$(RM) IAR_ULPAdvisor_Defs.h include.txt source.txt file.r43 $(TARGET).dep -$(RM) $(SOURCES:.c=.lst) -$(RM) $(DEPEND) |