mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/shell: restructure deps
Move deps on sys/shell to sys/Makefile.dep and only keep deps of sys/shell in sys/shell/Makefile.dep
This commit is contained in:
parent
12140ffb0e
commit
69b3e05f01
@ -334,8 +334,22 @@ ifneq (,$(filter random_cmd,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_random
|
||||
endif
|
||||
|
||||
ifneq (,$(filter shell%,$(USEMODULE)))
|
||||
USEMODULE += stdin
|
||||
ifneq (,$(filter shell_commands,$(USEMODULE)))
|
||||
# shell_commands has been renamed to shell_cmds_default, but let's keep this
|
||||
# for backward compatibility
|
||||
USEMODULE += shell_cmds_default
|
||||
endif
|
||||
|
||||
ifneq (,$(filter shell_cmd%,$(USEMODULE)))
|
||||
# each and every command is a submodule of shell_cmds
|
||||
USEMODULE += shell_cmds
|
||||
endif
|
||||
|
||||
ifneq (,$(filter shell_cmds,$(USEMODULE)))
|
||||
USEMODULE += shell
|
||||
endif
|
||||
|
||||
ifneq (,$(filter shell,$(USEMODULE)))
|
||||
include $(RIOTBASE)/sys/shell/Makefile.dep
|
||||
endif
|
||||
|
||||
|
@ -1,17 +1,4 @@
|
||||
ifneq (,$(filter shell_cmd_%,$(USEMODULE)))
|
||||
# each and every command is a submodule of shell_cmds
|
||||
USEMODULE += shell_cmds
|
||||
endif
|
||||
|
||||
ifneq (,$(filter shell_cmds,$(USEMODULE)))
|
||||
USEMODULE += shell
|
||||
endif
|
||||
|
||||
ifneq (,$(filter shell_commands,$(USEMODULE)))
|
||||
# shell_commands has been renamed to shell_cmds_default, but let's keep this
|
||||
# for backward compatibility
|
||||
USEMODULE += shell_cmds_default
|
||||
endif
|
||||
USEMODULE += stdin
|
||||
|
||||
ifneq (,$(filter shell_cmds_default,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_sys
|
||||
|
Loading…
Reference in New Issue
Block a user