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