]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
added Makefile for binary files to recover proxmark with JTAG interface
authorroel@libnfc.org <roel@libnfc.org@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Tue, 26 Mar 2013 12:35:54 +0000 (12:35 +0000)
committerroel@libnfc.org <roel@libnfc.org@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Tue, 26 Mar 2013 12:35:54 +0000 (12:35 +0000)
Makefile
recovery/Makefile [new file with mode: 0644]

index 4b1016c4429a261a784e2869f7f26d80f73547f6..c5deed956b0730f3f8501548777b52c505687eb2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ include common/Makefile.common
 
 GZIP=gzip
 
-all clean: %: bootrom/% armsrc/% client/%
+all clean: %: bootrom/% armsrc/% client/% recovery/%
 
 bootrom/%: FORCE
        $(MAKE) -C bootrom $(patsubst bootrom/%,%,$@)
@@ -10,6 +10,8 @@ armsrc/%: FORCE
        $(MAKE) -C armsrc $(patsubst armsrc/%,%,$@)
 client/%: FORCE
        $(MAKE) -C client $(patsubst client/%,%,$@)
+recovery/%: FORCE
+       $(MAKE) -C recovery $(patsubst recovery/%,%,$@)
 FORCE: # Dummy target to force remake in the subdirectories, even if files exist (this Makefile doesn't know about the prerequisites)
 
 
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