]> cvs.zerfleddert.de Git - proxmark3-svn/blame_incremental - bootrom/Makefile
tool to find correct byte for 8-bit XOR CRC
[proxmark3-svn] / bootrom / Makefile
... / ...
CommitLineData
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
4ARMSRC = fromflash.c \r
5THUMBSRC = usb.c bootrom.c\r
6ASMSRC = ram-reset.s flash-reset.s\r
7\r
8## There is a strange bug with the linker: Sometimes it will not emit the glue to call\r
9## BootROM from ARM mode. The symbol is emitted, but the section will be filled with\r
10## zeroes. As a temporary workaround, do not use thumb for the phase 2 bootloader\r
11## -- Henryk Plötz <henryk@ploetzli.ch> 2009-09-01\r
12ARMSRC := $(ARMSRC) $(THUMBSRC)\r
13THUMBSRC := \r
14\r
15# Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC\r
16include ../common/Makefile.common\r
17\r
18all: $(OBJDIR)/bootrom.s19\r
19\r
20$(OBJDIR)/bootrom.elf: $(VERSIONOBJ) $(ASMOBJ) $(ARMOBJ) $(THUMBOBJ)\r
21 $(LD) -g -Tldscript-flash --oformat elf32-littlearm -Map=$(patsubst %.elf,%.map,$@) -o $@ $^\r
22\r
23clean:\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) version.c\r
30\r
31.PHONY: all clean help \r
32help:\r
33 @echo Multi-OS Makefile, you are running on $(DETECTED_OS)\r
34 @echo Possible targets:\r
35 @echo + all - Make $(OBJDIR)/bootrom.s19, the main bootrom\r
36 @echo + clean - Clean $(OBJDIR)\r
Impressum, Datenschutz