diff --git a/Makefile b/Makefile index 6e7c9abd5..327d1ab6d 100644 --- a/Makefile +++ b/Makefile @@ -56,22 +56,40 @@ 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) -.PHONY: all clean help _test flash-bootrom flash-os flash-all style FORCE +.PHONY: all clean help _test bootrom flash-bootrom os flash-os flash-all recovery client mfkey nounce2key style FORCE help: - @echo Multi-OS Makefile, you are running on $(DETECTED_OS) - @echo Possible targets: - @echo + all - Make bootrom, armsrc and the OS-specific host directory - @echo + client - Make only the OS-specific host directory - @echo + flash-bootrom - Make bootrom and flash it - @echo + flash-os - Make armsrc and flash os \(includes fpga\) - @echo + flash-all - Make bootrom and armsrc and flash bootrom and os image - @echo + mfkey - Make tools/mfkey - @echo + nounce2key - Make tools/nounce2key - @echo + clean - Clean in bootrom, armsrc and the OS-specific host directory + @echo "Multi-OS Makefile" + @echo + @echo "Possible targets:" + @echo "+ all - Make all targets: bootrom, armsrc and OS-specific host tools" + @echo "+ clean - Clean in all targets" + @echo + @echo "+ bootrom - Make bootrom" + @echo "+ os - Make armsrc \(includes fpga\)" + @echo "+ flash-bootrom - Make bootrom and flash it" + @echo "+ flash-os - Make armsrc and flash os image \(includes fpga\)" + @echo "+ flash-all - Make bootrom and armsrc and flash bootrom and os image" + @echo "+ recovery - Make bootrom and armsrc images for JTAG flashing" + @echo + @echo "+ client - Make only the OS-specific host client" + @echo "+ mfkey - Make tools/mfkey" + @echo "+ nounce2key - Make tools/nounce2key" + @echo + @echo "Possible platforms: try \"make PLATFORM=\" for more info, default is PM3RDV4" client: client/all +bootrom: bootrom/all + +os: armsrc/all + +recovery: recovery/all + +mfkey: mfkey/all + +nonce2key: nonce2key/all + flash-bootrom: bootrom/obj/bootrom.elf $(FLASH_TOOL) $(FLASH_TOOL) $(FLASH_PORT) -b $(subst /,$(PATHSEP),$<) diff --git a/client/scripts/ntag_3d.lua b/client/scripts/ntag_3d.lua index 2f08aac85..abbfe5946 100644 --- a/client/scripts/ntag_3d.lua +++ b/client/scripts/ntag_3d.lua @@ -20,7 +20,7 @@ example =[[ script run ntag_3d -u 11223344556677 -c 46 -m 50 -p 5448 -s 4555 -l 200 -1 ]] usage = [[ -script run calc_ntag_3d -h -t -u -c -m -p -s -l +script run ntag_3d -h -t -u -c -m -p -s -l Arguments: -h : this help diff --git a/tools/mfkey/Makefile b/tools/mfkey/Makefile old mode 100755 new mode 100644 diff --git a/tools/mfkey/crapto1.c b/tools/mfkey/crapto1.c old mode 100755 new mode 100644 diff --git a/tools/mfkey/crapto1.h b/tools/mfkey/crapto1.h old mode 100755 new mode 100644 diff --git a/tools/mfkey/crypto1.c b/tools/mfkey/crypto1.c old mode 100755 new mode 100644 diff --git a/tools/mfkey/mfkey32.c b/tools/mfkey/mfkey32.c old mode 100755 new mode 100644 diff --git a/tools/mfkey/mfkey64.c b/tools/mfkey/mfkey64.c old mode 100755 new mode 100644