]> cvs.zerfleddert.de Git - proxmark3-svn/blob - bootrom/Makefile
(Our Windows ARM toolchain really likes its glue sections)
[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 bootrom.c
6 ASMSRC = ram-reset.s flash-reset.s
7
8 # Do not move this inclusion before the definition of {THUMB,ASM,ARM}{OBJ,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
23 .PHONY: all clean help
24 help:
25 @echo Multi-OS Makefile, you are running on $(DETECTED_OS)
26 @echo Possible targets:
27 @echo + all - Make $(OBJDIR)/bootrom.s19, the main bootrom
28 @echo + clean - Clean $(OBJDIR)
Impressum, Datenschutz