]>
Commit | Line | Data |
---|---|---|
1 | # Makefile for bootrom, see ../common/Makefile.common for common settings\r | |
2 | \r | |
3 | # DO NOT use thumb mode in the phase 1 bootloader since that generates a section with glue code\r | |
4 | ARMSRC = fromflash.c \r | |
5 | THUMBSRC = usb.c bootrom.c\r | |
6 | ASMSRC = ram-reset.s flash-reset.s\r | |
7 | \r | |
8 | # Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC\r | |
9 | include ../common/Makefile.common\r | |
10 | \r | |
11 | all: $(OBJDIR)/bootrom.s19\r | |
12 | \r | |
13 | $(OBJDIR)/bootrom.elf: $(VERSIONOBJ) $(ASMOBJ) $(ARMOBJ) $(THUMBOBJ)\r | |
14 | $(LD) -g -Tldscript-flash --oformat elf32-littlearm -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r | |
15 | \r | |
16 | clean:\r | |
17 | $(DELETE) $(OBJDIR)$(PATHSEP)*.o\r | |
18 | $(DELETE) $(OBJDIR)$(PATHSEP)*.elf\r | |
19 | $(DELETE) $(OBJDIR)$(PATHSEP)*.s19\r | |
20 | $(DELETE) $(OBJDIR)$(PATHSEP)*.map\r | |
21 | $(DELETE) $(OBJDIR)$(PATHSEP)*.d\r | |
22 | $(DELETE) version.c\r | |
23 | \r | |
24 | .PHONY: all clean help \r | |
25 | help:\r | |
26 | @echo Multi-OS Makefile, you are running on $(DETECTED_OS)\r | |
27 | @echo Possible targets:\r | |
28 | @echo + all - Make $(OBJDIR)/bootrom.s19, the main bootrom\r | |
29 | @echo + clean - Clean $(OBJDIR)\r |