]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - recovery/Makefile
added Makefile for binary files to recover proxmark with JTAG interface
[proxmark3-svn] / recovery / Makefile
diff --git a/recovery/Makefile b/recovery/Makefile
new file mode 100644 (file)
index 0000000..12b8d39
--- /dev/null
@@ -0,0 +1,22 @@
+include ../common/Makefile.common
+
+BINS = bootrom.bin fullimage.bin proxmark3_recovery.bin
+
+all: $(BINS)
+#%: ../bootrom/% ../armsrc/% $(BINS)
+#clean: %: ../bootrom/% ../armsrc/%
+#      rm *.bin
+
+bootrom.bin: ../bootrom/obj/bootrom.elf
+       $(OBJCOPY) --gap-fill=0xff --pad-to 0x00102000 -O binary $^ $@
+
+fullimage.bin: ../armsrc/obj/fullimage.elf
+       $(OBJCOPY) --gap-fill=0xff -O binary $^ $@
+
+proxmark3_recovery.bin: bootrom.bin fullimage.bin
+       cat bootrom.bin fullimage.bin > $@
+       chmod 755 $@
+
+clean: 
+       rm -f $(BINS)
+
Impressum, Datenschutz