]>
Commit | Line | Data |
---|---|---|
7e931bbd | 1 | # Makefile for bootrom, see ../common/Makefile.common for common settings\r |
6658905f | 2 | \r |
3 | OBJJTAG = $(OBJDIR)/bootrom.o $(OBJDIR)/ram-reset.o $(OBJDIR)/usb.o\r | |
6658905f | 4 | OBJFLASH = $(OBJDIR)/flash-reset.o $(OBJDIR)/fromflash.o\r |
5 | \r | |
7e931bbd | 6 | THUMBSRC = usb.c fromflash.c bootrom.c\r |
7 | ASMSRC = ram-reset.s flash-reset.s\r | |
6658905f | 8 | \r |
0fc0fca5 | 9 | # Do not move this inclusion before the definition of {THUMB,ASM,ARM}{OBJ,SRC}\r |
10 | include ../common/Makefile.common\r | |
6658905f | 11 | \r |
7e931bbd | 12 | all: bootrom-merged.s19\r |
6658905f | 13 | \r |
7e931bbd | 14 | bootrom-merged.s19: $(OBJDIR)/bootrom.s19 $(OBJDIR)/bootrom-forjtag.s19\r |
15 | perl ../tools/merge-srec.pl $(OBJDIR)/bootrom.s19 $(OBJDIR)/bootrom-forjtag.s19 > bootrom-merged.s19\r | |
6658905f | 16 | \r |
7e931bbd | 17 | $(OBJDIR)/bootrom.elf: $(OBJFLASH)\r |
18 | $(LD) -g -Tldscript-flash --oformat elf32-littlearm -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r | |
6658905f | 19 | \r |
7e931bbd | 20 | $(OBJDIR)/bootrom-forjtag.elf: $(OBJJTAG)\r |
21 | $(LD) -g -Tldscript-ram-jtag --oformat elf32-littlearm -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r | |
6658905f | 22 | \r |
6658905f | 23 | clean:\r |
7e931bbd | 24 | $(DELETE) $(OBJDIR)$(PATHSEP)*.o\r |
25 | $(DELETE) $(OBJDIR)$(PATHSEP)*.elf\r | |
26 | $(DELETE) $(OBJDIR)$(PATHSEP)*.s19\r | |
27 | $(DELETE) $(OBJDIR)$(PATHSEP)*.map\r | |
0fc0fca5 | 28 | $(DELETE) $(OBJDIR)$(PATHSEP)*.d\r |
7e931bbd | 29 | $(DELETE) bootrom-merged.s19\r |
30 | \r | |
31 | .PHONY: all clean help\r | |
32 | help:\r | |
33 | @echo Multi-OS Makefile, you are running on $(DETECTED_OS)\r | |
34 | @echo Possible targets:\r | |
35 | @echo + all - Make bootrom-merged.s19, the main bootrom\r | |
36 | @echo + clean - Clean $(OBJDIR)\r |