mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-02-23 23:24:38 +08:00
added Makefile for binary files to recover proxmark with JTAG interface
This commit is contained in:
parent
62ee4fedd5
commit
a79e330de5
2 changed files with 25 additions and 1 deletions
4
Makefile
4
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)
|
||||
|
||||
|
||||
|
|
22
recovery/Makefile
Normal file
22
recovery/Makefile
Normal file
|
@ -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)
|
||||
|
Loading…
Reference in a new issue