diff --git a/sys/Makefile.dep b/sys/Makefile.dep index c522b0b69a..71094649ca 100644 --- a/sys/Makefile.dep +++ b/sys/Makefile.dep @@ -697,47 +697,6 @@ ifneq (,$(filter credman_load, $(USEMODULE))) USEPKG += tiny-asn1 endif -ifneq (,$(filter suit,$(USEMODULE))) - USEPKG += nanocbor - USEPKG += libcose - USEMODULE += uuid - - ifeq (,$(filter libcose_crypt_%,$(USEMODULE))) - USEMODULE += libcose_crypt_c25519 - endif -endif - -ifneq (,$(filter suit_transport_%, $(USEMODULE))) - USEMODULE += suit_transport - USEMODULE += suit_transport_worker -endif - -ifneq (,$(filter suit_transport_coap, $(USEMODULE))) - USEMODULE += nanocoap_sock - USEMODULE += ztimer_msec - USEMODULE += sock_util -endif - -ifneq (,$(filter suit_transport_vfs, $(USEMODULE))) - USEMODULE += vfs_util -endif - -ifneq (,$(filter suit_storage_%, $(USEMODULE))) - USEMODULE += suit_storage -endif - -ifneq (,$(filter suit_storage_flashwrite, $(USEMODULE))) - FEATURES_REQUIRED += riotboot - USEMODULE += riotboot_slot - USEMODULE += riotboot_flashwrite - USEMODULE += riotboot_flashwrite_verify_sha256 -endif - -ifneq (,$(filter suit_storage_vfs,$(USEMODULE))) - USEMODULE += vfs - USEMODULE += mtd -endif - ifneq (,$(filter suit_%,$(USEMODULE))) USEMODULE += suit endif diff --git a/sys/suit/Makefile.dep b/sys/suit/Makefile.dep new file mode 100644 index 0000000000..704549ab33 --- /dev/null +++ b/sys/suit/Makefile.dep @@ -0,0 +1,38 @@ +USEPKG += nanocbor +USEPKG += libcose +USEMODULE += uuid + +ifeq (,$(filter libcose_crypt_%,$(USEMODULE))) + USEMODULE += libcose_crypt_c25519 +endif + +ifneq (,$(filter suit_transport_%, $(USEMODULE))) + USEMODULE += suit_transport + USEMODULE += suit_transport_worker +endif + +ifneq (,$(filter suit_transport_coap, $(USEMODULE))) + USEMODULE += nanocoap_sock + USEMODULE += ztimer_msec + USEMODULE += sock_util +endif + +ifneq (,$(filter suit_transport_vfs, $(USEMODULE))) + USEMODULE += vfs_util +endif + +ifneq (,$(filter suit_storage_%, $(USEMODULE))) + USEMODULE += suit_storage +endif + +ifneq (,$(filter suit_storage_flashwrite, $(USEMODULE))) + FEATURES_REQUIRED += riotboot + USEMODULE += riotboot_slot + USEMODULE += riotboot_flashwrite + USEMODULE += riotboot_flashwrite_verify_sha256 +endif + +ifneq (,$(filter suit_storage_vfs,$(USEMODULE))) + USEMODULE += vfs + USEMODULE += mtd +endif