]>
Commit | Line | Data |
---|---|---|
1 | # Makefile for bootrom, see ../common/Makefile.common for common settings\r | |
2 | \r | |
3 | OBJJTAG = $(OBJDIR)/bootrom.o $(OBJDIR)/ram-reset.o $(OBJDIR)/usb.o\r | |
4 | OBJFLASH = $(OBJDIR)/flash-reset.o $(OBJDIR)/fromflash.o\r | |
5 | \r | |
6 | THUMBSRC = usb.c fromflash.c bootrom.c\r | |
7 | ASMSRC = ram-reset.s flash-reset.s\r | |
8 | \r | |
9 | # Do not move this inclusion before the definition of {THUMB,ASM,ARM}{OBJ,SRC}\r | |
10 | include ../common/Makefile.common\r | |
11 | \r | |
12 | all: bootrom-merged.s19\r | |
13 | \r | |
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 | |
16 | \r | |
17 | $(OBJDIR)/bootrom.elf: $(OBJFLASH)\r | |
18 | $(LD) -g -Tldscript-flash --oformat elf32-littlearm -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r | |
19 | \r | |
20 | $(OBJDIR)/bootrom-forjtag.elf: $(OBJJTAG)\r | |
21 | $(LD) -g -Tldscript-ram-jtag --oformat elf32-littlearm -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r | |
22 | \r | |
23 | clean:\r | |
24 | $(DELETE) $(OBJDIR)$(PATHSEP)*.o\r | |
25 | $(DELETE) $(OBJDIR)$(PATHSEP)*.elf\r | |
26 | $(DELETE) $(OBJDIR)$(PATHSEP)*.s19\r | |
27 | $(DELETE) $(OBJDIR)$(PATHSEP)*.map\r | |
28 | $(DELETE) $(OBJDIR)$(PATHSEP)*.d\r | |
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 |