build(desfire): make emulator test hook optional

Exclude the USB test dispatcher and queued-random support from normal firmware builds. Enable them with ENABLE_HFMFDESETEST=1 when running emulator vectors.

Co-Authored-By: GPT-Daybreak Blue <noreply@openai.com>
This commit is contained in:
Mistial DeveloperandGPT-Daybreak Blue authored and Philippe Teuwen committed 2026-09-17 00:08:06 +02:00
1 parent 50f6b76469
commit 957896a926
6 files changed
+26

No files matched your search

+4
View File
@@ -196,6 +196,10 @@ else
$(error Invalid or empty PLATFORM: $(PLATFORM). $(KNOWN_DEFINITIONS))
endif
ifeq ($(ENABLE_HFMFDESETEST),1)
PLATFORM_DEFS += -DENABLE_HFMFDESETEST
endif
# parsing additional PLATFORM_EXTRAS tokens
PLATFORM_EXTRAS_TMP:=$(PLATFORM_EXTRAS)
ifneq (,$(findstring SMARTCARD,$(PLATFORM_EXTRAS_TMP)))