Skip to content

Commit

Permalink
fixup! sys/shell: make cmds submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
maribu committed Aug 4, 2022
1 parent f4f5637 commit dcdefc5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions makefiles/deprecated_modules.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ DEPRECATED_MODULES += gnrc_udp_cmd # use shell_cmd_grnc_udp instead
DEPRECATED_MODULES += heap_cmd # use shell_cmd_heap instead
DEPRECATED_MODULES += i2c_scan # use shell_cmd_i2c_scan instead
DEPRECATED_MODULES += random_cmd # use shell_cmd_random instead
DEPRECATED_MODULES += sha1sum # use shell_cmd_sha1sum instead
DEPRECATED_MODULES += sha256sum # use shell_cmd_sha256sum instead
DEPRECATED_MODULES += sema_deprecated
DEPRECATED_MODULES += ztimer_now64
2 changes: 2 additions & 0 deletions makefiles/pseudomodules.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ PSEUDOMODULES += shell_cmd_rtc
PSEUDOMODULES += shell_cmd_rtt
PSEUDOMODULES += shell_cmd_saul_reg
PSEUDOMODULES += shell_cmd_semtech-loramac
PSEUDOMODULES += shell_cmd_sha1sum
PSEUDOMODULES += shell_cmd_sha256sum
PSEUDOMODULES += shell_cmd_sht1x
PSEUDOMODULES += shell_cmd_sntp
PSEUDOMODULES += shell_cmd_suit
Expand Down
8 changes: 8 additions & 0 deletions sys/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,14 @@ ifneq (,$(filter posix_sockets,$(USEMODULE)))
USEMODULE += posix_headers
endif

ifneq (,$(filter sha1sum,$(USEMODULE)))
USEMODULE += shell_cmd_sha1sum
endif

ifneq (,$(filter sha256sum,$(USEMODULE)))
USEMODULE += shell_cmd_sha256sum
endif

ifneq (,$(filter shell%,$(USEMODULE)))
USEMODULE += stdin
include $(RIOTBASE)/sys/shell/Makefile.dep
Expand Down
6 changes: 6 additions & 0 deletions sys/shell/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,12 @@ endif
ifneq (,$(filter shell_cmd_random_cmd,$(USEMODULE)))
USEMODULE += random
endif
ifneq (,$(filter shell_cmd_sha1sum,$(USEMODULE)))
USEMODULE += shell_cmd_vfs
endif
ifneq (,$(filter shell_cmd_sha256sum,$(USEMODULE)))
USEMODULE += shell_cmd_vfs
endif
ifneq (,$(filter shell_cmd_sht1x,$(USEMODULE)))
USEMODULE += sht1x
endif
Expand Down

0 comments on commit dcdefc5

Please sign in to comment.