diff --git a/examples/Makefile-nrf52833 b/examples/Makefile-nrf52833 index c1b7ef3b4..b13286cd6 100644 --- a/examples/Makefile-nrf52833 +++ b/examples/Makefile-nrf52833 @@ -82,10 +82,23 @@ COMMONCFLAGS := \ include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/common-switches.mk ifeq ($(BOOTLOADER),1) -configure_OPTIONS += --with-custom-linker-file=$(AbsTopSourceDir)/examples/platforms/nrf528xx/nrf52833/nrf52833_bootloader.ld +$(info Warning: BOOTLOADER=1 switch is deprecated. Defaulting to BOOTLOADER=USB.) +override BOOTLOADER = USB +endif + +ifeq ($(BOOTLOADER),USB) +configure_OPTIONS += --with-custom-linker-file=$(AbsTopSourceDir)/examples/platforms/nrf528xx/nrf52833/nrf52833_bootloader_usb.ld COMMONCFLAGS += -DAPP_USBD_NRF_DFU_TRIGGER_ENABLED=1 endif +ifeq ($(BOOTLOADER),UART) +configure_OPTIONS += --with-custom-linker-file=$(AbsTopSourceDir)/examples/platforms/nrf528xx/nrf52833/nrf52833_bootloader_uart.ld +endif + +ifeq ($(BOOTLOADER),BLE) +configure_OPTIONS += --with-custom-linker-file=$(AbsTopSourceDir)/examples/platforms/nrf528xx/nrf52833/nrf52833_bootloader_ble.ld +endif + # # Select transport which CLI, NCP and RCP examples will use to communicate. # To disable all transports use the DISABLE_TRANSPORTS switch. This will disable