##// END OF EJS Templates
Makefile added to the repository for the srec generation
Makefile added to the repository for the srec generation

File last commit:

r27:f2c31482e557 default
r27:f2c31482e557 default
Show More
Makefile
20 lines | 473 B | text/x-makefile | MakefileLexer
SREC_PREFIX = RpwLfrApp
SREC_COUNTER = 0001
SREC_FSW_REF = fsw-0-6
SREC_SUFFIX = .srec
SREC_TEXT = $(SREC_PREFIX)_$(SREC_COUNTER)_text_$(SREC_FSW_REF)$(SREC_SUFFIX)
SREC_DATA = $(SREC_PREFIX)_$(SREC_COUNTER)_data_$(SREC_FSW_REF)$(SREC_SUFFIX)
OBJCOPY = sparc-rtems-objcopy
OBJCOPY_OPT = -g -v
all: text data
text: fsw
$(OBJCOPY) $(OBJCOPY_OPT) fsw $(SREC_TEXT) -O srec -j .text
data: fsw
$(OBJCOPY) $(OBJCOPY_OPT) fsw $(SREC_DATA) -O srec -j .data
clean:
rm *.srec