mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/suit: move dependency resolution in its own Makefile.dep
This commit is contained in:
parent
d617d864e6
commit
9bd7950a1a
@ -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
|
||||
|
38
sys/suit/Makefile.dep
Normal file
38
sys/suit/Makefile.dep
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user