]>
Commit | Line | Data |
---|---|---|
7e931bbd | 1 | # Makefile for bootrom, see ../common/Makefile.common for common settings\r |
6658905f | 2 | \r |
8652988d | 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 | |
6658905f | 7 | \r |
e73e7172 | 8 | # Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC\r |
0fc0fca5 | 9 | include ../common/Makefile.common\r |
6658905f | 10 | \r |
8652988d | 11 | all: $(OBJDIR)/bootrom.s19\r |
6658905f | 12 | \r |
8652988d | 13 | $(OBJDIR)/bootrom.elf: $(ASMOBJ) $(ARMOBJ) $(THUMBOBJ)\r |
7e931bbd | 14 | $(LD) -g -Tldscript-flash --oformat elf32-littlearm -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r |
6658905f | 15 | \r |
6658905f | 16 | clean:\r |
7e931bbd | 17 | $(DELETE) $(OBJDIR)$(PATHSEP)*.o\r |
18 | $(DELETE) $(OBJDIR)$(PATHSEP)*.elf\r | |
19 | $(DELETE) $(OBJDIR)$(PATHSEP)*.s19\r | |
20 | $(DELETE) $(OBJDIR)$(PATHSEP)*.map\r | |
0fc0fca5 | 21 | $(DELETE) $(OBJDIR)$(PATHSEP)*.d\r |
7e931bbd | 22 | \r |
23 | .PHONY: all clean help\r | |
24 | help:\r | |
25 | @echo Multi-OS Makefile, you are running on $(DETECTED_OS)\r | |
26 | @echo Possible targets:\r | |
8652988d | 27 | @echo + all - Make $(OBJDIR)/bootrom.s19, the main bootrom\r |
7e931bbd | 28 | @echo + clean - Clean $(OBJDIR)\r |