mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
eab317749f
Lists state, link type, v4/v6 addresses. Currently read-only. Using lwIP debug system to print addresses, to limit dependencies and work with dual stack setup. Most other code seems to only allow either v4 or v6 networking. For that to compile I had to change the `SZT_F` format string due to this error: ``` error: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'size_t {aka unsigned int}' ``` Switching to the lwIP default format string here. Outputs the following on my ESP32 board with Ethernet, when both v4 and v6 are enabled in examples/paho-mqtt: ``` > ifconfig Iface ET0 HWaddr: 24:0a:c4:e6:0e:9f Link: up State: up Link type: wired inet addr: 10.4.4.81 mask: 255.255.254.0 gw: 10.4.4.1 inet6 addr: fe80:0:0:0:260a:c4ff:fee6:e9f scope: link inet6 addr: 2001:db8:1000:0:260a:c4ff:fee6:e9f scope: global Iface ET1 HWaddr: 24:0a:c4:e6:0e:9c Link: up State: up Link type: wireless inet addr: 10.4.4.82 mask: 255.255.254.0 gw: 10.4.4.1 inet6 addr: fe80:0:0:0:260a:c4ff:fee6:e9c scope: link inet6 addr: 2001:db8:1000:0:260a:c4ff:fee6:e9c scope: global > ```
133 lines
2.9 KiB
Makefile
133 lines
2.9 KiB
Makefile
MODULE = shell_commands
|
|
|
|
SRC = shell_commands.c sc_sys.c
|
|
|
|
ifneq (,$(filter app_metadata,$(USEMODULE)))
|
|
SRC += sc_app_metadata.c
|
|
endif
|
|
ifneq (,$(filter dfplayer,$(USEMODULE)))
|
|
SRC += sc_dfplayer.c
|
|
endif
|
|
ifneq (,$(filter mci,$(USEMODULE)))
|
|
SRC += sc_disk.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,$(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 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)))
|
|
ifneq (,$(filter xtimer,$(USEMODULE)))
|
|
SRC += sc_gnrc_icmpv6_echo.c
|
|
endif
|
|
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 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 nimble_netif,$(USEMODULE)))
|
|
SRC += sc_nimble_netif.c
|
|
endif
|
|
|
|
ifneq (,$(filter nimble_statconn,$(USEMODULE)))
|
|
SRC += sc_nimble_statconn.c
|
|
endif
|
|
|
|
ifneq (,$(filter suit_transport_coap,$(USEMODULE)))
|
|
SRC += sc_suit.c
|
|
endif
|
|
|
|
ifneq (,$(filter cryptoauthlib,$(USEPKG)))
|
|
SRC += sc_cryptoauthlib.c
|
|
endif
|
|
|
|
include $(RIOTBASE)/Makefile.base
|