Makefile platform option for standalone mode

Signed-off-by: Fl0-0 <tonymontana277@hotmail.fr>
This commit is contained in:
Fl0-0 2019-05-31 14:44:32 +02:00
parent 430742a3b6
commit 53e48d70cd
2 changed files with 21 additions and 8 deletions

View file

@ -1,3 +1,4 @@
# If you want to use it, copy this file as Makefile.platform and adjust it to your needs
PLATFORM=PM3RDV4
#PLATFORM_EXTRAS=BTADDON
#STANDALONE=HF_COLIN

View file

@ -33,6 +33,9 @@ or if you have a Proxmark 3 RDV4 with the BT add-on:
PLATFORM=PM3RDV4
PLATFORM_EXTRAS=BTADDON
Option to choose standalone mode, e.g. HF_COLIN
SANDALONE=HF_COLIN
!! Make sure to "make clean" when you change platform settings !!
endef
@ -93,14 +96,23 @@ PLATFORM_DEFS += \
# Standalone mode
# !! Choose only one !!
PLATFORM_DEFS += -DWITH_STANDALONE_LF_SAMYRUN
#PLATFORM_DEFS += -DWITH_STANDALONE_LF_ICERUN
#PLATFORM_DEFS += -DWITH_STANDALONE_LF_PROXBRUTE
#PLATFORM_DEFS += -DWITH_STANDALONE_LF_HIDBRUTE
#PLATFORM_DEFS += -DWITH_STANDALONE_HF_YOUNG
#PLATFORM_DEFS += -DWITH_STANDALONE_HF_MATTYRUN
#PLATFORM_DEFS += -DWITH_STANDALONE_HF_COLIN
#PLATFORM_DEFS += -DWITH_STANDALONE_HF_BOG
ifneq (,$(findstring LF_ICERUN,$(STANDALONE)))
PLATFORM_DEFS += -DWITH_STANDALONE_LF_ICERUN
else ifneq (,$(findstring LF_PROXBRUTE,$(STANDALONE)))
PLATFORM_DEFS += -DWITH_STANDALONE_LF_PROXBRUTE
else ifneq (,$(findstring LF_HIDBRUTE,$(STANDALONE)))
PLATFORM_DEFS += -DWITH_STANDALONE_LF_HIDBRUTE
else ifneq (,$(findstring HF_YOUNG,$(STANDALONE)))
PLATFORM_DEFS += -DWITH_STANDALONE_HF_YOUNG
else ifneq (,$(findstring HF_MATTYRUN,$(STANDALONE)))
PLATFORM_DEFS += -DWITH_STANDALONE_HF_MATTYRUN
else ifneq (,$(findstring HF_COLIN,$(STANDALONE)))
PLATFORM_DEFS += -DWITH_STANDALONE_HF_COLIN
else ifneq (,$(findstring HF_BOG,$(STANDALONE)))
PLATFORM_DEFS += -DWITH_STANDALONE_HF_BOG
else
PLATFORM_DEFS += -DWITH_STANDALONE_LF_SAMYRUN
endif
$(info $(findstring WITH_STANDALONE_*,$(PLATFORM_DEFS)))