Warn when overriding NRF52840_USB_DFU_TRIGGER on BOARD=dk
@@ -29,8 +29,13 @@ else
LDSCRIPT ?= $(CONTIKI_CPU)/ld/nrf52840.ld
CFLAGS += -DBOARD_PCA10056
NRF52840_NATIVE_USB ?= 0
+ ifeq ($(NRF52840_NATIVE_USB)$(NRF52840_USB_DFU_TRIGGER), 11)
+ $(warning "Building for BOARD=dk")
+ $(warning "with NRF52840_NATIVE_USB=1 NRF52840_USB_DFU_TRIGGER=1")
+ $(warning "This is invalid. Overriding with NRF52840_USB_DFU_TRIGGER=0")
override NRF52840_USB_DFU_TRIGGER = 0
endif
+endif
### CPU-dependent directories
CONTIKI_CPU_DIRS += . dev rf usb
