mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/shell: make cmds submodules
Previously `shell_commands` was a "catch-all" module that included shell commands for each and every used module that has a shell companion. Instead, the new `shell_cmds` module is now used to provide shell commands as individually selectable submodules, e.g. `cmd_gnrc_icmpv6_echo` now provides the ICMPv6 echo command (a.k.a. ping). To still have a "catch all" module to pull in shell commands of modules already used, `shell_cmds_default` was introduced. `shell_commands` depends now on `shell_cmds_default` for backward compatibility, but has been deprecated. New apps should use `shell_cmds_default` instead. For a handful of shell commands individual selection was already possible. Those modules now depend on the corresponding `cmd_%` module and they have been deprecated.
This commit is contained in:
parent
6e68744d76
commit
c06335b71b
@ -20,7 +20,7 @@ USEMODULE += gnrc_rpl
|
||||
USEMODULE += auto_init_gnrc_rpl
|
||||
# Additional networking modules that can be dropped if not needed
|
||||
USEMODULE += gnrc_icmpv6_echo
|
||||
USEMODULE += gnrc_udp_cmd
|
||||
USEMODULE += shell_cmd_gnrc_udp
|
||||
# Add also the shell, some shell commands
|
||||
USEMODULE += shell
|
||||
USEMODULE += shell_commands
|
||||
|
@ -2,5 +2,15 @@
|
||||
# Keep this list ALPHABETICALLY SORTED!!!!111elven
|
||||
DEPRECATED_MODULES += event_thread_lowest
|
||||
DEPRECATED_MODULES += gnrc_netdev_default
|
||||
DEPRECATED_MODULES += gnrc_pktbuf_cmd # use shell_cmd_gnrc_pktbuf instead
|
||||
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 += md5sum # use shell_cmd_md5sum instead
|
||||
DEPRECATED_MODULES += nice # use shell_cmd_nice instead
|
||||
DEPRECATED_MODULES += random_cmd # use shell_cmd_random instead
|
||||
DEPRECATED_MODULES += sema_deprecated
|
||||
DEPRECATED_MODULES += shell_commands # use shell_cmds_default instead
|
||||
DEPRECATED_MODULES += sha1sum # use shell_cmd_sha1sum instead
|
||||
DEPRECATED_MODULES += sha256sum # use shell_cmd_sha256sum instead
|
||||
DEPRECATED_MODULES += ztimer_now64
|
||||
|
@ -211,6 +211,53 @@ PSEUDOMODULES += senml_phydat
|
||||
PSEUDOMODULES += senml_saul
|
||||
PSEUDOMODULES += sha1sum
|
||||
PSEUDOMODULES += sha256sum
|
||||
PSEUDOMODULES += shell_cmd_app_metadata
|
||||
PSEUDOMODULES += shell_cmd_at30tse75x
|
||||
PSEUDOMODULES += shell_cmd_benchmark_udp
|
||||
PSEUDOMODULES += shell_cmd_ccn-lite-utils
|
||||
PSEUDOMODULES += shell_cmd_conn_can
|
||||
PSEUDOMODULES += shell_cmd_cord_ep
|
||||
PSEUDOMODULES += shell_cmd_cryptoauthlib
|
||||
PSEUDOMODULES += shell_cmd_dfplayer
|
||||
PSEUDOMODULES += shell_cmd_fib
|
||||
PSEUDOMODULES += shell_cmd_gnrc_icmpv6_echo
|
||||
PSEUDOMODULES += shell_cmd_gnrc_ipv6_blacklist
|
||||
PSEUDOMODULES += shell_cmd_gnrc_ipv6_frag_stats
|
||||
PSEUDOMODULES += shell_cmd_gnrc_ipv6_nib
|
||||
PSEUDOMODULES += shell_cmd_gnrc_ipv6_whitelist
|
||||
PSEUDOMODULES += shell_cmd_gnrc_netif
|
||||
PSEUDOMODULES += shell_cmd_gnrc_pktbuf
|
||||
PSEUDOMODULES += shell_cmd_gnrc_rpl
|
||||
PSEUDOMODULES += shell_cmd_gnrc_sixlowpan_ctx
|
||||
PSEUDOMODULES += shell_cmd_gnrc_sixlowpan_frag_stats
|
||||
PSEUDOMODULES += shell_cmd_gnrc_udp
|
||||
PSEUDOMODULES += shell_cmd_heap
|
||||
PSEUDOMODULES += shell_cmd_i2c_scan
|
||||
PSEUDOMODULES += shell_cmd_lwip_netif
|
||||
PSEUDOMODULES += shell_cmd_mci
|
||||
PSEUDOMODULES += shell_cmd_md5sum
|
||||
PSEUDOMODULES += shell_cmd_nanocoap_vfs
|
||||
PSEUDOMODULES += shell_cmd_netstats_neighbor
|
||||
PSEUDOMODULES += shell_cmd_nice
|
||||
PSEUDOMODULES += shell_cmd_nimble_netif
|
||||
PSEUDOMODULES += shell_cmd_nimble_statconn
|
||||
PSEUDOMODULES += shell_cmd_openwsn
|
||||
PSEUDOMODULES += shell_cmd_pm
|
||||
PSEUDOMODULES += shell_cmd_ps
|
||||
PSEUDOMODULES += shell_cmd_random
|
||||
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
|
||||
PSEUDOMODULES += shell_cmd_sys
|
||||
PSEUDOMODULES += shell_cmd_vfs
|
||||
PSEUDOMODULES += shell_cmds_default
|
||||
PSEUDOMODULES += shell_commands
|
||||
PSEUDOMODULES += shell_hooks
|
||||
PSEUDOMODULES += shell_lock_auto_locking
|
||||
PSEUDOMODULES += slipdev_stdio
|
||||
|
@ -182,8 +182,8 @@ endif
|
||||
ifneq (,$(filter skald,$(USEMODULE)))
|
||||
DIRS += net/ble/skald
|
||||
endif
|
||||
ifneq (,$(filter shell_commands,$(USEMODULE)))
|
||||
DIRS += shell/commands
|
||||
ifneq (,$(filter shell_cmds,$(USEMODULE)))
|
||||
DIRS += shell/cmds
|
||||
endif
|
||||
ifneq (,$(filter suit%,$(USEMODULE)))
|
||||
DIRS += suit
|
||||
|
@ -57,10 +57,6 @@ ifneq (,$(filter fmt_table,$(USEMODULE)))
|
||||
USEMODULE += fmt
|
||||
endif
|
||||
|
||||
ifneq (,$(filter i2c_scan,$(USEMODULE)))
|
||||
FEATURES_REQUIRED += periph_i2c
|
||||
endif
|
||||
|
||||
ifneq (,$(filter prng_fortuna,$(USEMODULE)))
|
||||
USEMODULE += crypto_aes_128
|
||||
endif
|
||||
@ -88,10 +84,6 @@ ifneq (,$(filter ieee802154_security,$(USEMODULE)))
|
||||
USEMODULE += cipher_modes
|
||||
endif
|
||||
|
||||
ifneq (,$(filter rtt_cmd,$(USEMODULE)))
|
||||
FEATURES_REQUIRED += periph_rtt
|
||||
endif
|
||||
|
||||
ifneq (,$(filter trace,$(USEMODULE)))
|
||||
USEMODULE += ztimer
|
||||
USEMODULE += ztimer_usec
|
||||
@ -289,8 +281,25 @@ ifneq (,$(filter posix_sockets,$(USEMODULE)))
|
||||
USEMODULE += posix_headers
|
||||
endif
|
||||
|
||||
ifneq (,$(filter shell,$(USEMODULE)))
|
||||
ifneq (,$(filter md5sum ,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_md5sum
|
||||
endif
|
||||
|
||||
ifneq (,$(filter sha1sum,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_sha1sum
|
||||
endif
|
||||
|
||||
ifneq (,$(filter sha256sum,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_sha256sum
|
||||
endif
|
||||
|
||||
ifneq (,$(filter random_cmd,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_random
|
||||
endif
|
||||
|
||||
ifneq (,$(filter shell%,$(USEMODULE)))
|
||||
USEMODULE += stdin
|
||||
include $(RIOTBASE)/sys/shell/Makefile.dep
|
||||
endif
|
||||
|
||||
# Include all stdio_% dependencies after all USEMODULE += stdio_%
|
||||
@ -305,49 +314,6 @@ ifneq (,$(filter isrpipe_read_timeout,$(USEMODULE)))
|
||||
USEMODULE += xtimer
|
||||
endif
|
||||
|
||||
ifneq (,$(filter shell_commands,$(USEMODULE)))
|
||||
ifneq (,$(filter dfplayer,$(USEMODULE)))
|
||||
USEMODULE += auto_init_multimedia
|
||||
USEMODULE += fmt
|
||||
endif
|
||||
|
||||
ifneq (,$(filter fib,$(USEMODULE)))
|
||||
USEMODULE += posix_inet
|
||||
endif
|
||||
|
||||
ifneq (,$(filter gnrc_icmpv6_echo,$(USEMODULE)))
|
||||
USEMODULE += netutils ztimer_usec
|
||||
endif
|
||||
|
||||
ifneq (,$(gnrc_udp_cmd,$(USEMODULE)))
|
||||
USEMODULE += netutils
|
||||
endif
|
||||
|
||||
ifneq (,$(filter nanocoap_vfs,$(USEMODULE)))
|
||||
USEMODULE += vfs_util
|
||||
endif
|
||||
|
||||
ifneq (,$(filter nimble_netif,$(USEMODULE)))
|
||||
USEMODULE += nimble_scanner
|
||||
USEMODULE += nimble_scanlist
|
||||
USEMODULE += fmt
|
||||
endif
|
||||
|
||||
ifneq (,$(filter openwsn_%,$(USEMODULE)))
|
||||
USEMODULE += netif
|
||||
USEMODULE += ipv6_addr
|
||||
endif
|
||||
|
||||
ifneq (,$(filter gnrc_lorawan,$(USEMODULE)))
|
||||
USEMODULE += gnrc_netif_cmd_lora
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq (,$(filter shell_democommands,$(USEMODULE)))
|
||||
USEMODULE += rust_riotmodules
|
||||
USEMODULE += shell
|
||||
endif
|
||||
|
||||
ifneq (,$(filter md5sum sha1sum sha256sum,$(USEMODULE)))
|
||||
USEMODULE += vfs_util
|
||||
USEMODULE += hashes
|
||||
@ -770,9 +736,6 @@ endif
|
||||
ifneq (,$(filter cord_lc cord_ep,$(USEMODULE)))
|
||||
USEMODULE += core_thread_flags
|
||||
USEMODULE += cord_common
|
||||
ifneq (,$(filter shell_commands,$(USEMODULE)))
|
||||
USEMODULE += sock_util
|
||||
endif
|
||||
ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
||||
# requires 64bit timestamps when using xtimer
|
||||
USEMODULE += ztimer64_xtimer_compat
|
||||
|
@ -394,11 +394,6 @@ ifneq (,$(filter gnrc_udp,$(USEMODULE)))
|
||||
USEMODULE += udp
|
||||
endif
|
||||
|
||||
ifneq (,$(filter gnrc_udp_cmd,$(USEMODULE)))
|
||||
USEMODULE += gnrc_udp
|
||||
USEMODULE += gnrc_pktdump
|
||||
endif
|
||||
|
||||
ifneq (,$(filter gnrc_tcp,$(USEMODULE)))
|
||||
DEFAULT_MODULE += auto_init_gnrc_tcp
|
||||
USEMODULE += gnrc_nettype_tcp
|
||||
|
@ -23,7 +23,7 @@ menuconfig MODULE_SHELL
|
||||
select MODULE_STDIN
|
||||
depends on TEST_KCONFIG
|
||||
|
||||
rsource "commands/Kconfig"
|
||||
rsource "cmds/Kconfig"
|
||||
|
||||
if MODULE_SHELL
|
||||
rsource "Kconfig.config"
|
||||
|
289
sys/shell/Makefile.dep
Normal file
289
sys/shell/Makefile.dep
Normal file
@ -0,0 +1,289 @@
|
||||
ifneq (,$(filter shell_cmd_%,$(USEMODULE)))
|
||||
# each and every command is a submodule of shell_cmds
|
||||
USEMODULE += shell_cmds
|
||||
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
|
||||
|
||||
ifneq (,$(filter shell_cmds_default,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_sys
|
||||
|
||||
ifneq (,$(filter app_metadata,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_app_metadata
|
||||
endif
|
||||
ifneq (,$(filter at30tse75x,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_at30tse75x
|
||||
endif
|
||||
ifneq (,$(filter benchmark_udp,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_benchmark_udp
|
||||
endif
|
||||
ifneq (,$(filter ccn-lite-utils,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_ccn-lite-utils
|
||||
endif
|
||||
ifneq (,$(filter conn_can,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_conn_can
|
||||
endif
|
||||
ifneq (,$(filter cord_ep,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_cord_ep
|
||||
endif
|
||||
ifneq (,$(filter cryptoauthlib,$(USEPKG)))
|
||||
USEMODULE += shell_cmd_cryptoauthlib
|
||||
endif
|
||||
ifneq (,$(filter dfplayer,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_dfplayer
|
||||
endif
|
||||
ifneq (,$(filter fib,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_fib
|
||||
endif
|
||||
ifneq (,$(filter gnrc_ipv6_ext_frag_stats,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_gnrc_ipv6_frag_stats
|
||||
endif
|
||||
ifneq (,$(filter gnrc_ipv6_nib,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_gnrc_ipv6_nib
|
||||
endif
|
||||
ifneq (,$(filter gnrc_ipv6_whitelist,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_whitelist
|
||||
endif
|
||||
ifneq (,$(filter gnrc_ipv6_blacklist,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_blacklist
|
||||
endif
|
||||
ifneq (,$(filter gnrc_icmpv6_echo,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_gnrc_icmpv6_echo
|
||||
endif
|
||||
ifneq (,$(filter gnrc_netif,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_gnrc_netif
|
||||
endif
|
||||
ifneq (,$(filter gnrc_pktbuf_cmd,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_gnrc_pktbuf
|
||||
endif
|
||||
ifneq (,$(filter gnrc_rpl,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_gnrc_rpl
|
||||
endif
|
||||
ifneq (,$(filter gnrc_sixlowpan_ctx,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_gnrc_sixlowpan_ctx
|
||||
endif
|
||||
ifneq (,$(filter gnrc_sixlowpan_frag_stats,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_gnrc_sixlowpan_frag_stats
|
||||
endif
|
||||
ifneq (,$(filter gnrc_udp_cmd,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_gnrc_udp
|
||||
endif
|
||||
ifneq (,$(filter heap_cmd,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_heap
|
||||
endif
|
||||
ifneq (,$(filter i2c_scan,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_i2c_scan
|
||||
endif
|
||||
ifneq (,$(filter lpc2387,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_heap
|
||||
endif
|
||||
ifneq (,$(filter lwip_netif,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_lwip_netif
|
||||
endif
|
||||
ifneq (,$(filter mci,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_mci
|
||||
endif
|
||||
ifneq (,$(filter nanocoap_vfs,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_nanocoap_vfs
|
||||
endif
|
||||
ifneq (,$(filter netstats_neighbor,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_netstats_neighbor
|
||||
endif
|
||||
ifneq (,$(filter nice,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_nice
|
||||
endif
|
||||
ifneq (,$(filter nimble_netif,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_nimble_netif
|
||||
endif
|
||||
ifneq (,$(filter nimble_statconn,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_nimble_statconn
|
||||
endif
|
||||
ifneq (,$(filter openwsn,$(USEPKG)))
|
||||
USEMODULE += shell_cmd_openwsn
|
||||
endif
|
||||
ifneq (,$(filter rtt_rtc periph_rtc,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_rtc
|
||||
endif
|
||||
ifneq (,$(filter saul_reg,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_saul_reg
|
||||
endif
|
||||
ifneq (,$(filter semtech-loramac,$(USEPKG)))
|
||||
USEMODULE += shell_cmd_semtech-loramac
|
||||
endif
|
||||
ifneq (,$(filter sntp,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_sntp
|
||||
endif
|
||||
ifneq (,$(filter periph_pm,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_pm
|
||||
endif
|
||||
ifneq (,$(filter ps,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_ps
|
||||
endif
|
||||
ifneq (,$(filter sht1x,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_sht1x
|
||||
endif
|
||||
ifneq (,$(filter suit_transport_worker,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_suit
|
||||
endif
|
||||
ifneq (,$(filter vfs,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_vfs
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq (,$(filter shell_cmd_app_metadata,$(USEMODULE)))
|
||||
USEMODULE += app_metadata
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_at30tse75x,$(USEMODULE)))
|
||||
USEMODULE += at30tse75x
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_benchmark_udp,$(USEMODULE)))
|
||||
USEMODULE += benchmark_udp
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_ccn-lite-utils,$(USEMODULE)))
|
||||
USEMODULE += ccn-lite-utils
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_conn_can,$(USEMODULE)))
|
||||
USEMODULE += conn_can
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_cord_ep,$(USEMODULE)))
|
||||
USEMODULE += cord_ep
|
||||
USEMODULE += sock_util
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_cryptoauthlib,$(USEPKG)))
|
||||
USEMODULE += cryptoauthlib
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_dfplayer,$(USEMODULE)))
|
||||
USEMODULE += auto_init_multimedia
|
||||
USEMODULE += dfplayer
|
||||
USEMODULE += fmt
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_fib,$(USEMODULE)))
|
||||
USEMODULE += fib
|
||||
USEMODULE += posix_inet
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_gnrc_icmpv6_echo,$(USEMODULE)))
|
||||
USEMODULE += gnrc_icmpv6_echo
|
||||
USEMODULE += netutils
|
||||
USEMODULE += ztimer_usec
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_gnrc_ipv6_blacklist,$(USEMODULE)))
|
||||
USEMODULE += gnrc_ipv6_blacklist
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_gnrc_ipv6_ext_frag_stats,$(USEMODULE)))
|
||||
USEMODULE += gnrc_ipv6_frag_stats
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_gnrc_ipv6_nib,$(USEMODULE)))
|
||||
USEMODULE += gnrc_ipv6_nib
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_gnrc_ipv6_whitelist,$(USEMODULE)))
|
||||
USEMODULE += gnrc_ipv6_whitelist
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_gnrc_netif,$(USEMODULE)))
|
||||
USEMODULE += gnrc_netif
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_gnrc_pktbuf,$(USEMODULE)))
|
||||
USEMODULE += gnrc_pktbuf
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_gnrc_rpl,$(USEMODULE)))
|
||||
USEMODULE += gnrc_rpl
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_gnrc_sixlowpan_ctx,$(USEMODULE)))
|
||||
USEMODULE += gnrc_sixlowpan_ctx
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_gnrc_sixlowpan_frag_stats,$(USEMODULE)))
|
||||
USEMODULE += gnrc_sixlowpan_frag_stats
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_gnrc_udp,$(USEMODULE)))
|
||||
USEMODULE += gnrc_udp
|
||||
USEMODULE += gnrc_pktdump
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_i2c_scan,$(USEMODULE)))
|
||||
FEATURES_REQUIRED += periph_i2c
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_lwip_netif,$(USEMODULE)))
|
||||
USEMODULE += lwip_netif
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_mci,$(USEMODULE)))
|
||||
USEMODULE += mci
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_md5sum,$(USEMODULE)))
|
||||
USEMODULE += shell_cmd_vfs
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_nanocoap_vfs,$(USEMODULE)))
|
||||
USEMODULE += nanocoap_vfs
|
||||
USEMODULE += vfs_util
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_netstats_neighbor,$(USEMODULE)))
|
||||
USEMODULE += netstats_neighbor
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_nimble_netif,$(USEMODULE)))
|
||||
USEMODULE += fmt
|
||||
USEMODULE += nimble_netif
|
||||
USEMODULE += nimble_scanlist
|
||||
USEMODULE += nimble_scanner
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_nimble_statconn,$(USEMODULE)))
|
||||
USEMODULE += nimble_statconn
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_openwsn,$(USEMODULE)))
|
||||
USEMODULE += ipv6_addr
|
||||
USEMODULE += l2util
|
||||
USEMODULE += netif
|
||||
USEPKG += openwsn
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_pm,$(USEMODULE)))
|
||||
FEATURES_REQUIRED += periph_pm
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_ps,$(USEMODULE)))
|
||||
USEMODULE += ps
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_random_cmd,$(USEMODULE)))
|
||||
USEMODULE += random
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_rtc,$(USEMODULE)))
|
||||
FEATURES_REQUIRED_ANY += periph_rtc|periph_rtt
|
||||
# beware: this is a bit more tricky than it looks. Before the
|
||||
# FEAUTRES_REQUIRED_ANY is taken into account, neither periph_rtc nor
|
||||
# periph_rtt is used. Once it comes to affect, at least one will be in use.
|
||||
# If periph_rtc is not in used but periph_rtt is, we can provide the RTC
|
||||
# with rtt_rtc.
|
||||
ifeq (periph_rtt,$(filter periph_rtc periph_rtt,$(USEMODULE)))
|
||||
USEMODULE += rtt_rtc
|
||||
endif
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_rtt,$(USEMODULE)))
|
||||
FEATURES_REQUIRED += periph_rtt
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_saul_reg,$(USEMODULE)))
|
||||
USEMODULE += saul_reg
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_semtech-loramac,$(USEPKG)))
|
||||
USEMODULE += semtech-loramac
|
||||
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
|
||||
ifneq (,$(filter shell_cmd_sntp,$(USEMODULE)))
|
||||
USEMODULE += sntp
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_suit,$(USEMODULE)))
|
||||
USEMODULE += suit_transport_worker
|
||||
endif
|
||||
ifneq (,$(filter shell_cmd_vfs,$(USEMODULE)))
|
||||
USEMODULE += vfs
|
||||
endif
|
||||
|
||||
ifneq (,$(filter shell_democommands,$(USEMODULE)))
|
||||
USEMODULE += rust_riotmodules
|
||||
USEMODULE += shell
|
||||
endif
|
298
sys/shell/cmds/Kconfig
Normal file
298
sys/shell/cmds/Kconfig
Normal file
@ -0,0 +1,298 @@
|
||||
# Copyright (c) 2022 Otto-von-Guericke-Universität Magdeburg
|
||||
#
|
||||
# This file is subject to the terms and conditions of the GNU Lesser
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
menuconfig MODULE_SHELL_CMDS
|
||||
bool "Support for shell commands"
|
||||
depends on MODULE_SHELL
|
||||
|
||||
config CONFIG_MODULE_SHELL_COMMANDS
|
||||
bool
|
||||
select MODULE_SHELL_CMDS_DEFAULT
|
||||
help
|
||||
Deprecated alias for MODULE_SHELL_CMDS_DEFAULT. For new apps, use
|
||||
MODULE_SHELL_CMDS_DEFAULT directly.
|
||||
|
||||
config MODULE_SHELL_CMDS_DEFAULT
|
||||
bool "Default shell commands for enabled modules"
|
||||
select MODULE_SHELL_CMDS
|
||||
help
|
||||
Shell commands can be enabled and disabled individually as dedicated
|
||||
modules. This module instead will select the shell commands of modules
|
||||
already used, if this is considered as "good default choice".
|
||||
|
||||
config MODULE_SHELL_CMD_APP_METADATA
|
||||
bool "Command to print app meta data as JSON"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_APP_METADATA
|
||||
|
||||
config MODULE_SHELL_CMD_AT30TSE75X
|
||||
bool "Command to testAT30TSE75x temperature sensors"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_AT30TSE75X
|
||||
|
||||
config MODULE_SHELL_CMD_BENCHMARK_UDP
|
||||
bool "Command to perform a UDP benchmark"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_BENCHMARK_UDP
|
||||
|
||||
config MODULE_SHELL_CMD_CCN-LITE-UTILS
|
||||
bool "Commands to interact with the CCN-Lite stack"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_CCN-LITE-UTILS
|
||||
|
||||
config MODULE_SHELL_CMD_CONN_CAN
|
||||
bool "Command to interact with the CAN stack"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_CONN_CAN
|
||||
|
||||
config MODULE_SHELL_CMD_CORD_EP
|
||||
bool "Command to interact with a resource directory endpoint"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_CORD_EP
|
||||
|
||||
config MODULE_SHELL_CMD_CRYPTOAUTHLIB
|
||||
bool "Command to interact with Microchip CryptoAuth devices"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_CRYPTOAUTHLIB
|
||||
|
||||
config MODULE_SHELL_CMD_DFPLAYER
|
||||
bool "Command to control a dfplayer MP3 player"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_DFPLAYER
|
||||
select MODULE_AUTO_INIT_MULTIMEDIA
|
||||
select MODULE_FMT
|
||||
|
||||
config MODULE_SHELL_CMD_FIB
|
||||
bool "Command to interact with the Forwarding Information Base (FIB)"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_FIB
|
||||
depends on MODULE_POSIX_INET
|
||||
|
||||
config MODULE_SHELL_CMD_GNRC_ICMPV6_ECHO
|
||||
bool "Command to send ICMPv6 Echo Requests (a.k.a. ping)"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_GNRC_ICMPV6_ECHO
|
||||
depends on MODULE_NETUTILS
|
||||
depends on MODULE_ZTIMER_USEC
|
||||
|
||||
config MODULE_SHELL_CMD_GNRC_IPV6_BLACKLIST
|
||||
bool "Command to manage IPv6 addresses in reception deny list"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_GNRC_IPV6_BLACKLIST
|
||||
|
||||
config MODULE_SHELL_CMD_GNRC_IPV6_FRAG_STATS
|
||||
bool "Command to show IPv6 fragmentation statistics"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_GNRC_IPV6_FRAG_STATS
|
||||
|
||||
config MODULE_SHELL_CMD_GNRC_IPV6_NIB
|
||||
bool "Command to configure the neighbor information base"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_GNRC_IPV6_NIB
|
||||
|
||||
config MODULE_SHELL_CMD_GNRC_IPV6_WHITELIST
|
||||
bool "Command to manage IPv6 addresses in reception allow list"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_GNRC_IPV6_WHITELIST
|
||||
|
||||
config MODULE_SHELL_CMD_GNRC_NETIF
|
||||
bool "Command to manage GNRC network interfaces (ifconfig)"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_GNRC_NETIF
|
||||
|
||||
config MODULE_SHELL_CMD_GNRC_PKTBUF
|
||||
bool "Command to print stats of the GNRC packet buffer"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_GNRC_PKTBUF
|
||||
|
||||
config MODULE_SHELL_CMD_GNRC_RPL
|
||||
bool "Command to configure GNRC's RPL implementation"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_GNRC_RPL
|
||||
|
||||
config MODULE_SHELL_CMD_GNRC_SIXLOWPAN_CTX
|
||||
bool "Command to configure 6LoWPAN context in GNRC"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_SIXLOWPAN_CTX
|
||||
|
||||
config MODULE_SHELL_CMD_GNRC_SIXLOWPAN_FRAG_STATS
|
||||
bool "Command to display 6LoWPAN fragment statistics"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_GNRC_SIXLOWPAN_FRAG_STATS
|
||||
|
||||
config MODULE_SHELL_CMD_GNRC_UDP
|
||||
bool "Command interface to a UDP server and client"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_GNRC_UDP
|
||||
depends on MODULE_GNRC_PKTDUMP
|
||||
|
||||
config MODULE_SHELL_CMD_HEAP
|
||||
bool "Command to print dynamic memory allocation statistics"
|
||||
depends on MODULE_SHELL_CMDS
|
||||
|
||||
config MODULE_SHELL_CMD_I2C_SCAN
|
||||
bool "Command to scan for I2C devices"
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_PERIPH_I2C
|
||||
|
||||
config MODULE_SHELL_CMD_LWIP_NETIF
|
||||
bool "Command to manage lwIP network interfaces (ifconfig)"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_LWIP_NETIF
|
||||
|
||||
config MODULE_SHELL_CMD_MCI
|
||||
bool "Commands to query parameters and read contents from memory cards"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_MCI
|
||||
|
||||
config MODULE_SHELL_CMD_MD5SUM
|
||||
bool "Command to calculate the MD5 sum of a file"
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_SHELL_CMD_VFS
|
||||
|
||||
config MODULE_SHELL_CMD_NANOCOAP_VFS
|
||||
bool "Commands to upload/download files to/from a CoAP server"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_NANOCOAP_VFS
|
||||
depends on MODULE_VFS_UTIL
|
||||
|
||||
config MODULE_SHELL_CMD_NETSTATS_NEIGHBOR
|
||||
bool "Command to show neighbor statistics"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_NETSTATS_NEIGHBOR
|
||||
|
||||
config MODULE_SHELL_CMD_NICE
|
||||
bool "Command to change the priority of running threads"
|
||||
depends on MODULE_SHELL_CMDS
|
||||
|
||||
config MODULE_SHELL_CMD_NIMBLE_NETIF
|
||||
bool "Command to manage BLE connections for NimBLE"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_FMT
|
||||
depends on MODULE_NIMBLE_NETIF
|
||||
depends on MODULE_NIMBLE_SCANLIST
|
||||
depends on MODULE_NIMBLE_SCANNER
|
||||
|
||||
config MODULE_SHELL_CMD_NIMBLE_STATCONN
|
||||
bool "Command to controle the NimBLE netif statconn connection manager"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_NIMBLE_STATCONN
|
||||
|
||||
config MODULE_SHELL_CMD_OPENWSN
|
||||
bool "Commands to interact with the OpenWSN network statck (ifconfig, openwsn)"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_IPV6_ADDR
|
||||
depends on MODULE_L2UTIL
|
||||
depends on MODULE_NETIF
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on USEPKG_OPENWSN
|
||||
|
||||
config MODULE_SHELL_CMD_PM
|
||||
bool "Command to interact with the layered power management subsystem"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT && MODULE_PERIPH_PM
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on HAS_PERIPH_PM
|
||||
|
||||
config MODULE_SHELL_CMD_PS
|
||||
bool "Command to print information about running threads"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_PS
|
||||
|
||||
config MODULE_SHELL_CMD_RANDOM
|
||||
bool "Commands to initialize the PRNG and print 32 bit pseudo-random numbers"
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_RANDOM
|
||||
|
||||
config MODULE_SHELL_CMD_RTC
|
||||
bool "Command to control the peripheral real time clock"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT && MODULE_PERIPH_RTC
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on HAS_PERIPH_RTC || HAS_PERIPH_RTT
|
||||
depends on MODULE_RTT_RTC || HAS_PERIPH_RTC
|
||||
|
||||
config MODULE_SHELL_CMD_RTT
|
||||
bool "Command to control the peripheral real time timer"
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on HAS_PERIPH_RTT
|
||||
|
||||
config MODULE_SHELL_CMD_SAUL_REG
|
||||
bool "Command to read sensors and control actuators via SAUL"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_SAUL_REG
|
||||
|
||||
config MODULE_SHELL_CMD_SEMTECH-LORAMAC
|
||||
bool "Command to control the Semtech LoRaMAC stack"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_SEMTECH-LORAMAC
|
||||
|
||||
config MODULE_SHELL_CMD_SHA1SUM
|
||||
bool "Command to compute the SHA1 sum of a file"
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_SHELL_CMD_VFS
|
||||
|
||||
config MODULE_SHELL_CMD_SHA256SUM
|
||||
bool "Command to compute the SHA256 sum of a file"
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_SHELL_CMD_VFS
|
||||
|
||||
config MODULE_SHELL_CMD_SHT1X
|
||||
bool "Commands to interact with SHT1x sensors"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_SHT1X
|
||||
|
||||
config MODULE_SHELL_CMD_SNTP
|
||||
bool "Command to synchronize time with an SNTP server"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_SNTP
|
||||
|
||||
config MODULE_SHELL_CMD_SUIT
|
||||
bool "Command to trigger a SUIT firmware update"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_SUIT_TRANSPORT_WORKER
|
||||
|
||||
config MODULE_SHELL_CMD_SYS
|
||||
bool "Common utility commands (version, reboot, bootloader)"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
|
||||
config MODULE_SHELL_CMD_VFS
|
||||
bool "Commands for the VFS module (ls, vfs)"
|
||||
default y if MODULE_SHELL_CMDS_DEFAULT
|
||||
depends on MODULE_SHELL_CMDS
|
||||
depends on MODULE_VFS
|
5
sys/shell/cmds/Makefile
Normal file
5
sys/shell/cmds/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
MODULE = shell_cmds
|
||||
BASE_MODULE := shell_cmd
|
||||
SUBMODULES := 1
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -805,7 +805,7 @@ static inline void _print_digest(const uint8_t *digest, size_t len, const char *
|
||||
printf(" %s\n", file);
|
||||
}
|
||||
|
||||
#if MODULE_MD5SUM
|
||||
#if MODULE_SHELL_CMD_MD5SUM
|
||||
#include "hashes/md5.h"
|
||||
static int _vfs_md5sum_cmd(int argc, char **argv)
|
||||
{
|
||||
@ -834,7 +834,7 @@ static int _vfs_md5sum_cmd(int argc, char **argv)
|
||||
SHELL_COMMAND(md5sum, "Compute and check MD5 message digest", _vfs_md5sum_cmd);
|
||||
#endif
|
||||
|
||||
#if MODULE_SHA1SUM
|
||||
#if MODULE_SHELL_CMD_SHA1SUM
|
||||
#include "hashes/sha1.h"
|
||||
static int _vfs_sha1sum_cmd(int argc, char **argv)
|
||||
{
|
||||
@ -863,7 +863,7 @@ static int _vfs_sha1sum_cmd(int argc, char **argv)
|
||||
SHELL_COMMAND(sha1sum, "Compute and check SHA1 message digest", _vfs_sha1sum_cmd);
|
||||
#endif
|
||||
|
||||
#if MODULE_SHA256SUM
|
||||
#if MODULE_SHELL_CMD_SHA256SUM
|
||||
#include "hashes/sha256.h"
|
||||
static int _vfs_sha256sum_cmd(int argc, char **argv)
|
||||
{
|
@ -1,15 +0,0 @@
|
||||
# Copyright (c) 2020 HAW Hamburg
|
||||
#
|
||||
# This file is subject to the terms and conditions of the GNU Lesser
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
menuconfig MODULE_SHELL_COMMANDS
|
||||
bool "Basic shell commands"
|
||||
depends on MODULE_SHELL
|
||||
|
||||
config MODULE_I2C_SCAN
|
||||
bool "I2c scanner"
|
||||
depends on MODULE_SHELL
|
||||
depends on MODULE_PERIPH_I2C
|
@ -1,143 +0,0 @@
|
||||
MODULE = shell_commands
|
||||
|
||||
SRC = sc_sys.c
|
||||
|
||||
ifneq (,$(filter app_metadata,$(USEMODULE)))
|
||||
SRC += sc_app_metadata.c
|
||||
endif
|
||||
ifneq (,$(filter benchmark_udp,$(USEMODULE)))
|
||||
SRC += sc_benchmark_udp.c
|
||||
endif
|
||||
ifneq (,$(filter dfplayer,$(USEMODULE)))
|
||||
SRC += sc_dfplayer.c
|
||||
endif
|
||||
ifneq (,$(filter mci,$(USEMODULE)))
|
||||
SRC += sc_disk.c
|
||||
endif
|
||||
ifneq (,$(filter nice,$(USEMODULE)))
|
||||
SRC += sc_nice.c
|
||||
endif
|
||||
ifneq (,$(filter periph_pm,$(USEMODULE)))
|
||||
SRC += sc_pm.c
|
||||
endif
|
||||
ifneq (,$(filter ps,$(USEMODULE)))
|
||||
SRC += sc_ps.c
|
||||
endif
|
||||
ifneq (,$(filter heap_cmd,$(USEMODULE)))
|
||||
SRC += sc_heap.c
|
||||
endif
|
||||
ifneq (,$(filter sht1x,$(USEMODULE)))
|
||||
SRC += sc_sht1x.c
|
||||
endif
|
||||
ifneq (,$(filter lpc2387,$(USEMODULE)))
|
||||
SRC += sc_heap.c
|
||||
endif
|
||||
ifneq (,$(filter random_cmd,$(USEMODULE)))
|
||||
SRC += sc_random.c
|
||||
endif
|
||||
ifneq (,$(filter at30tse75x,$(USEMODULE)))
|
||||
SRC += sc_at30tse75x.c
|
||||
endif
|
||||
ifneq (,$(filter gnrc_netif,$(USEMODULE)))
|
||||
SRC += sc_gnrc_netif.c
|
||||
endif
|
||||
ifneq (,$(filter gnrc_udp_cmd,$(USEMODULE)))
|
||||
SRC += sc_gnrc_udp.c
|
||||
endif
|
||||
ifneq (,$(filter netstats_neighbor,$(USEMODULE)))
|
||||
SRC += sc_netstats_nb.c
|
||||
endif
|
||||
ifneq (,$(filter fib,$(USEMODULE)))
|
||||
SRC += sc_fib.c
|
||||
endif
|
||||
ifneq (,$(filter gnrc_ipv6_ext_frag_stats,$(USEMODULE)))
|
||||
SRC += sc_gnrc_ipv6_frag_stats.c
|
||||
endif
|
||||
ifneq (,$(filter gnrc_ipv6_nib,$(USEMODULE)))
|
||||
SRC += sc_gnrc_ipv6_nib.c
|
||||
endif
|
||||
ifneq (,$(filter gnrc_ipv6_whitelist,$(USEMODULE)))
|
||||
SRC += sc_whitelist.c
|
||||
endif
|
||||
ifneq (,$(filter gnrc_ipv6_blacklist,$(USEMODULE)))
|
||||
SRC += sc_blacklist.c
|
||||
endif
|
||||
ifneq (,$(filter gnrc_icmpv6_echo,$(USEMODULE)))
|
||||
SRC += sc_gnrc_icmpv6_echo.c
|
||||
endif
|
||||
ifneq (,$(filter gnrc_pktbuf_cmd,$(USEMODULE)))
|
||||
SRC += sc_gnrc_pktbuf.c
|
||||
endif
|
||||
ifneq (,$(filter gnrc_rpl,$(USEMODULE)))
|
||||
SRC += sc_gnrc_rpl.c
|
||||
endif
|
||||
ifneq (,$(filter gnrc_sixlowpan_ctx,$(USEMODULE)))
|
||||
SRC += sc_gnrc_6ctx.c
|
||||
endif
|
||||
ifneq (,$(filter gnrc_sixlowpan_frag_stats,$(USEMODULE)))
|
||||
SRC += sc_gnrc_6lo_frag_stats.c
|
||||
endif
|
||||
ifneq (,$(filter saul_reg,$(USEMODULE)))
|
||||
SRC += sc_saul_reg.c
|
||||
endif
|
||||
ifneq (,$(filter ccn-lite-utils,$(USEMODULE)))
|
||||
SRC += sc_ccnl.c
|
||||
endif
|
||||
ifneq (,$(filter sntp,$(USEMODULE)))
|
||||
SRC += sc_sntp.c
|
||||
endif
|
||||
ifneq (,$(filter vfs,$(USEMODULE)))
|
||||
SRC += sc_vfs.c
|
||||
endif
|
||||
ifneq (,$(filter conn_can,$(USEMODULE)))
|
||||
SRC += sc_can.c
|
||||
endif
|
||||
ifneq (,$(filter cord_ep,$(USEMODULE)))
|
||||
SRC += sc_cord_ep.c
|
||||
endif
|
||||
|
||||
ifneq (,$(filter openwsn,$(USEPKG)))
|
||||
SRC += sc_openwsn.c
|
||||
endif
|
||||
|
||||
ifneq (,$(filter lwip_netif,$(USEMODULE)))
|
||||
SRC += sc_lwip_netif.c
|
||||
endif
|
||||
|
||||
ifneq (,$(filter rtt_rtc periph_rtc,$(USEMODULE)))
|
||||
SRC += sc_rtc.c
|
||||
endif
|
||||
|
||||
ifneq (,$(filter rtt_cmd,$(USEMODULE)))
|
||||
SRC += sc_rtt.c
|
||||
endif
|
||||
|
||||
ifneq (,$(filter i2c_scan,$(USEMODULE)))
|
||||
SRC += sc_i2c_scan.c
|
||||
endif
|
||||
|
||||
ifneq (,$(filter semtech-loramac,$(USEPKG)))
|
||||
SRC += sc_loramac.c
|
||||
endif
|
||||
|
||||
ifneq (,$(filter nanocoap_vfs,$(USEMODULE)))
|
||||
SRC += sc_nanocoap_vfs.c
|
||||
endif
|
||||
|
||||
ifneq (,$(filter nimble_netif,$(USEMODULE)))
|
||||
SRC += sc_nimble_netif.c
|
||||
endif
|
||||
|
||||
ifneq (,$(filter nimble_statconn,$(USEMODULE)))
|
||||
SRC += sc_nimble_statconn.c
|
||||
endif
|
||||
|
||||
ifneq (,$(filter suit_transport_worker,$(USEMODULE)))
|
||||
SRC += sc_suit.c
|
||||
endif
|
||||
|
||||
ifneq (,$(filter cryptoauthlib,$(USEPKG)))
|
||||
SRC += sc_cryptoauthlib.c
|
||||
endif
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -2,10 +2,11 @@
|
||||
# application configuration. This is only needed during migration.
|
||||
CONFIG_MODULE_DFPLAYER=y
|
||||
|
||||
# enable event thread in lowest priority
|
||||
# enable event thread
|
||||
CONFIG_MODULE_EVENT=y
|
||||
CONFIG_MODULE_EVENT_THREAD=y
|
||||
|
||||
# enable shell with basic commands
|
||||
# enable shell
|
||||
CONFIG_MODULE_SHELL=y
|
||||
CONFIG_MODULE_SHELL_COMMANDS=y
|
||||
# pull in default commands for selected modules
|
||||
CONFIG_MODULE_SHELL_CMDS_DEFAULT=y
|
||||
|
@ -6,7 +6,7 @@ FEATURES_OPTIONAL = periph_i2c_reconfigure
|
||||
|
||||
USEMODULE += shell
|
||||
USEMODULE += shell_commands
|
||||
USEMODULE += i2c_scan
|
||||
USEMODULE += cmd_i2c_scan
|
||||
USEMODULE += xtimer
|
||||
|
||||
# avoid running Kconfig by default
|
||||
|
Loading…
Reference in New Issue
Block a user