From 3df56d576ff22a8c742fb5f3ff4ad23230ab3740 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Fri, 8 Oct 2021 01:09:38 +0200 Subject: [PATCH] sys/net: Add ipv6 pseudomodule Enabled when GNRC, lwIP or OpenWSN uses IPv6 --- makefiles/pseudomodules.inc.mk | 1 + pkg/lwip/Makefile.dep | 1 + pkg/openwsn/Makefile.dep | 1 + sys/net/gnrc/Makefile.dep | 4 ++++ 4 files changed, 7 insertions(+) diff --git a/makefiles/pseudomodules.inc.mk b/makefiles/pseudomodules.inc.mk index 7d8b3bbb21..8b883cdca4 100644 --- a/makefiles/pseudomodules.inc.mk +++ b/makefiles/pseudomodules.inc.mk @@ -75,6 +75,7 @@ PSEUDOMODULES += heap_cmd PSEUDOMODULES += i2c_scan PSEUDOMODULES += ieee802154_security PSEUDOMODULES += ieee802154_submac +PSEUDOMODULES += ipv6 PSEUDOMODULES += l2filter_blacklist PSEUDOMODULES += l2filter_whitelist PSEUDOMODULES += libstdcpp diff --git a/pkg/lwip/Makefile.dep b/pkg/lwip/Makefile.dep index f38075ffc9..5e4786c941 100644 --- a/pkg/lwip/Makefile.dep +++ b/pkg/lwip/Makefile.dep @@ -28,6 +28,7 @@ ifneq (,$(filter lwip_ipv6_autoconfig lwip_ipv6_mld,$(USEMODULE))) endif ifneq (,$(filter lwip_ipv6,$(USEMODULE))) + USEMODULE += ipv6 USEMODULE += random endif diff --git a/pkg/openwsn/Makefile.dep b/pkg/openwsn/Makefile.dep index d52055b452..e5f7986fdc 100644 --- a/pkg/openwsn/Makefile.dep +++ b/pkg/openwsn/Makefile.dep @@ -30,6 +30,7 @@ ifneq (,$(filter openwsn_riotos,$(USEMODULE))) endif ifneq (,$(filter openwsn_ipv6,$(USEMODULE))) + USEMODULE += ipv6 DEFAULT_MODULE += openwsn_icmpv6_echo endif diff --git a/sys/net/gnrc/Makefile.dep b/sys/net/gnrc/Makefile.dep index 2ca4f7d255..009e65aca0 100644 --- a/sys/net/gnrc/Makefile.dep +++ b/sys/net/gnrc/Makefile.dep @@ -304,6 +304,10 @@ ifneq (,$(filter gnrc_rpl_srh,$(USEMODULE))) USEMODULE += gnrc_ipv6_ext_rh endif +ifneq (,$(filter gnrc_ipv6%,$(USEMODULE))) + USEMODULE += ipv6 +endif + ifneq (,$(filter gnrc_ipv6_ext_frag,$(USEMODULE))) USEMODULE += gnrc_ipv6_ext USEMODULE += xtimer