X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/e73e717239300d6b47d5f5d81256d8feb493299f..4fdefea8012403ecf5546853031b321b87a45c71:/bootrom/Makefile diff --git a/bootrom/Makefile b/bootrom/Makefile index 2b7671c7..f88b3cdd 100644 --- a/bootrom/Makefile +++ b/bootrom/Makefile @@ -5,12 +5,19 @@ ARMSRC = fromflash.c THUMBSRC = usb.c bootrom.c ASMSRC = ram-reset.s flash-reset.s +## There is a strange bug with the linker: Sometimes it will not emit the glue to call +## BootROM from ARM mode. The symbol is emitted, but the section will be filled with +## zeroes. As a temporary workaround, do not use thumb for the phase 2 bootloader +## -- Henryk Plötz 2009-09-01 +ARMSRC := $(ARMSRC) $(THUMBSRC) +THUMBSRC := + # Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC include ../common/Makefile.common all: $(OBJDIR)/bootrom.s19 -$(OBJDIR)/bootrom.elf: $(ASMOBJ) $(ARMOBJ) $(THUMBOBJ) +$(OBJDIR)/bootrom.elf: $(VERSIONOBJ) $(ASMOBJ) $(ARMOBJ) $(THUMBOBJ) $(LD) -g -Tldscript-flash --oformat elf32-littlearm -Map=$(patsubst %.elf,%.map,$@) -o $@ $^ clean: @@ -19,8 +26,9 @@ clean: $(DELETE) $(OBJDIR)$(PATHSEP)*.s19 $(DELETE) $(OBJDIR)$(PATHSEP)*.map $(DELETE) $(OBJDIR)$(PATHSEP)*.d + $(DELETE) version.c -.PHONY: all clean help +.PHONY: all clean help help: @echo Multi-OS Makefile, you are running on $(DETECTED_OS) @echo Possible targets: