PM5: Detect incompatible PLATFORM_EXTRAS

This commit is contained in:
Philippe Teuwen committed 2026-08-19 17:52:15 +02:00
1 parent 827fce4839
commit 4e684cb4d3
1 file changed
+6
+6
View File
@@ -196,10 +196,16 @@ ifneq (,$(findstring FLASH,$(PLATFORM_EXTRAS_TMP)))
PLATFORM_EXTRAS_TMP := $(strip $(filter-out FLASH,$(PLATFORM_EXTRAS_TMP)))
endif
ifneq (,$(findstring BTADDON,$(PLATFORM_EXTRAS_TMP)))
ifeq ($(PLATFORM),PM5)
$(error Incompatible PLATFORM_EXTRAS token BTADDON)
endif
PLATFORM_DEFS += -DWITH_FPC_USART_HOST
PLATFORM_EXTRAS_TMP := $(strip $(filter-out BTADDON,$(PLATFORM_EXTRAS_TMP)))
endif
ifneq (,$(findstring FPC_USART_DEV,$(PLATFORM_EXTRAS_TMP)))
ifeq ($(PLATFORM),PM5)
$(error Incompatible PLATFORM_EXTRAS token FPC_USART_DEV)
endif
PLATFORM_DEFS += -DWITH_FPC_USART_DEV
PLATFORM_EXTRAS_TMP := $(strip $(filter-out FPC_USART_DEV,$(PLATFORM_EXTRAS_TMP)))
endif