]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - bootrom/Makefile
Bootloader cleanup (UNTESTED!)
[proxmark3-svn] / bootrom / Makefile
index a3374b0c3b9a8e4d80732896752ff9c727df258a..0f661a8f3984727ce5d2a597f27db1cff9115007 100644 (file)
@@ -7,7 +7,7 @@
 #-----------------------------------------------------------------------------
 
 # DO NOT use thumb mode in the phase 1 bootloader since that generates a section with glue code
-ARMSRC = fromflash.c 
+ARMSRC = 
 THUMBSRC = usb.c bootrom.c
 ASMSRC = ram-reset.s flash-reset.s
 
@@ -27,7 +27,7 @@ include ../common/Makefile.common
 all: $(OBJDIR)/bootrom.s19
 
 $(OBJDIR)/bootrom.elf: $(VERSIONOBJ) $(ASMOBJ) $(ARMOBJ) $(THUMBOBJ)
-       $(LD) -g -Tldscript-flash --oformat elf32-littlearm -Map=$(patsubst %.elf,%.map,$@) -o $@ $^
+       $(CC) $(LDFLAGS) -Wl,-T,ldscript-flash,-Map,$(patsubst %.elf,%.map,$@) -o $@ $^ $(LIBS)
 
 clean:
        $(DELETE) $(OBJDIR)$(PATHSEP)*.o
Impressum, Datenschutz