mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Allow to skip parts from Makefile.platform
This commit is contained in:
parent
c549478ca5
commit
b72c8dc3d7
1 changed files with 53 additions and 13 deletions
|
@ -45,6 +45,23 @@ PLATFORM_EXTRAS=BTADDON
|
|||
Default standalone mode is $(DEFAULT_STANDALONE).
|
||||
To disable standalone modes, set explicitly an empty STANDALONE:
|
||||
STANDALONE=
|
||||
|
||||
For Proxmarks with only 256k, you can define
|
||||
PLATFORM_SIZE=256
|
||||
to be warned if the image is too big for your device
|
||||
and you can specify which parts to skip in order to reduce the size:
|
||||
SKIP_LF=1
|
||||
SKIP_HITAG=1
|
||||
SKIP_EM4x50=1
|
||||
SKIP_ISO15693=1
|
||||
SKIP_LEGICRF=1
|
||||
SKIP_ISO14443b=1
|
||||
SKIP_ISO14443a=1
|
||||
SKIP_ICLASS=1
|
||||
SKIP_FELICA=1
|
||||
SKIP_NFCBARCODE=1
|
||||
SKIP_HFSNIFF=1
|
||||
SKIP_HFPLOT=1
|
||||
endef
|
||||
|
||||
define KNOWN_DEFINITIONS
|
||||
|
@ -79,21 +96,44 @@ ifneq (,$(PLATFORM_EXTRAS_TMP))
|
|||
endif
|
||||
|
||||
# common LF support
|
||||
PLATFORM_DEFS += -DWITH_LF
|
||||
PLATFORM_DEFS += -DWITH_HITAG
|
||||
PLATFORM_DEFS += -DWITH_EM4x50
|
||||
ifneq ($(SKIP_LF),1)
|
||||
PLATFORM_DEFS += -DWITH_LF
|
||||
endif
|
||||
ifneq ($(SKIP_HITAG),1)
|
||||
PLATFORM_DEFS += -DWITH_HITAG
|
||||
endif
|
||||
ifneq ($(SKIP_EM4x50),1)
|
||||
PLATFORM_DEFS += -DWITH_EM4x50
|
||||
endif
|
||||
|
||||
# common HF support
|
||||
PLATFORM_DEFS += -DWITH_ISO15693
|
||||
PLATFORM_DEFS += -DWITH_LEGICRF
|
||||
PLATFORM_DEFS += -DWITH_ISO14443b
|
||||
PLATFORM_DEFS += -DWITH_ISO14443a
|
||||
PLATFORM_DEFS += -DWITH_ICLASS
|
||||
PLATFORM_DEFS += -DWITH_FELICA
|
||||
PLATFORM_DEFS += -DWITH_NFCBARCODE
|
||||
PLATFORM_DEFS += -DWITH_HFSNIFF
|
||||
PLATFORM_DEFS += -DWITH_HFPLOT
|
||||
|
||||
ifneq ($(SKIP_ISO15693),1)
|
||||
PLATFORM_DEFS += -DWITH_ISO15693
|
||||
endif
|
||||
ifneq ($(SKIP_LEGICRF),1)
|
||||
PLATFORM_DEFS += -DWITH_LEGICRF
|
||||
endif
|
||||
ifneq ($(SKIP_ISO14443b),1)
|
||||
PLATFORM_DEFS += -DWITH_ISO14443b
|
||||
endif
|
||||
ifneq ($(SKIP_ISO14443a),1)
|
||||
PLATFORM_DEFS += -DWITH_ISO14443a
|
||||
endif
|
||||
ifneq ($(SKIP_ICLASS),1)
|
||||
PLATFORM_DEFS += -DWITH_ICLASS
|
||||
endif
|
||||
ifneq ($(SKIP_FELICA),1)
|
||||
PLATFORM_DEFS += -DWITH_FELICA
|
||||
endif
|
||||
ifneq ($(SKIP_NFCBARCODE),1)
|
||||
PLATFORM_DEFS += -DWITH_NFCBARCODE
|
||||
endif
|
||||
ifneq ($(SKIP_HFSNIFF),1)
|
||||
PLATFORM_DEFS += -DWITH_HFSNIFF
|
||||
endif
|
||||
ifneq ($(SKIP_HFPLOT),1)
|
||||
PLATFORM_DEFS += -DWITH_HFPLOT
|
||||
endif
|
||||
|
||||
# Standalone mode
|
||||
ifneq ($(strip $(filter $(PLATFORM_DEFS),$(STANDALONE_REQ_DEFS))),$(strip $(STANDALONE_REQ_DEFS)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue