From fe0bea73b22a0f208afd51f3b19d7adb0f850719 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Thu, 24 Nov 2022 14:57:58 +0100 Subject: [PATCH] sys: add tinyusb_dfu and riotboot_tinyusb_dfu to makefiles --- sys/Makefile.dep | 4 ++++ sys/Makefile.include | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/Makefile.dep b/sys/Makefile.dep index 7b3c8991d2..9d3cc38446 100644 --- a/sys/Makefile.dep +++ b/sys/Makefile.dep @@ -859,6 +859,10 @@ ifneq (,$(filter riotboot_usb_dfu, $(USEMODULE))) FEATURES_REQUIRED += periph_pm endif +ifneq (,$(filter riotboot_tinyusb_dfu, $(USEMODULE))) + USEPKG += tinyusb +endif + ifneq (,$(filter irq_handler,$(USEMODULE))) USEMODULE += event endif diff --git a/sys/Makefile.include b/sys/Makefile.include index 8a266165a6..777e67f7e2 100644 --- a/sys/Makefile.include +++ b/sys/Makefile.include @@ -163,7 +163,7 @@ ifneq (,$(filter prng,$(USEMODULE))) include $(RIOTBASE)/sys/random/Makefile.include endif -ifneq (,$(filter usbus_dfu riotboot_reset,$(USEMODULE))) +ifneq (,$(filter tinyusb_dfu usbus_dfu riotboot_reset,$(USEMODULE))) CFLAGS += -DCPU_RAM_BASE=$(RAM_START_ADDR) CFLAGS += -DCPU_RAM_SIZE=$(RAM_LEN) endif