diff --git a/makefiles/boot/riotboot.mk b/makefiles/boot/riotboot.mk index d4a6ab6c72b7..1cdbba05e75d 100644 --- a/makefiles/boot/riotboot.mk +++ b/makefiles/boot/riotboot.mk @@ -1,4 +1,5 @@ ifneq (,$(filter riotboot,$(FEATURES_USED))) +ifneq (1,$(RIOTBOOT_BUILD)) .PHONY: riotboot/flash riotboot/flash-bootloader riotboot/flash-slot0 riotboot/flash-slot1 riotboot/bootloader/% @@ -154,4 +155,5 @@ riotboot: $(Q)echo "error: riotboot feature not selected! (try FEATURES_REQUIRED += riotboot)" $(Q)false +endif # (1,$(RIOTBOOT_BUILD)) endif # (,$(filter riotboot,$(FEATURES_USED)))