2015-08-03 22:30:46 +02:00
|
|
|
PKG_NAME=lwip
|
2020-02-21 14:40:38 +01:00
|
|
|
PKG_URL=https://github.com/lwip-tcpip/lwip.git
|
2023-06-30 08:25:39 +02:00
|
|
|
# lwIP v2.2.0
|
|
|
|
PKG_VERSION=07a0dec3d4fa08ec332e5c297c40899ae6c727c6
|
2017-01-08 21:55:46 +01:00
|
|
|
PKG_LICENSE=BSD-3-Clause
|
2015-08-03 22:30:46 +02:00
|
|
|
|
2019-10-02 12:47:02 +02:00
|
|
|
include $(RIOTBASE)/pkg/pkg.mk
|
|
|
|
|
2018-02-27 09:58:59 +01:00
|
|
|
LWIP_MODULES = lwip_api lwip_core lwip_ipv4 lwip_ipv6 \
|
|
|
|
lwip_netif lwip_netif_ppp lwip_polarssl
|
|
|
|
LWIP_USEMODULE = $(filter $(LWIP_MODULES),$(USEMODULE))
|
|
|
|
LWIP_MODULE_MAKEFILE = $(RIOTBASE)/Makefile.base
|
2015-08-03 22:30:46 +02:00
|
|
|
|
2019-10-02 12:47:02 +02:00
|
|
|
.PHONY: $(LWIP_MODULES)
|
2018-02-27 09:58:59 +01:00
|
|
|
|
2018-09-04 14:37:23 +02:00
|
|
|
CFLAGS += -Wno-address
|
2022-07-01 10:02:15 +02:00
|
|
|
# When compiled e.g. with `CFLAGS += -DIP6_DEBUG=LWIP_DBG_ON`, debug output
|
|
|
|
# does not use the correct format specifiers and compilation fails. (All
|
|
|
|
# instances were differently named but same sized integer types, e.g. %lx
|
|
|
|
# for printing int when sizeof(int) == sizeof(long int).)
|
|
|
|
CFLAGS += -Wno-format
|
2018-09-04 14:37:23 +02:00
|
|
|
|
2021-03-12 15:50:14 +01:00
|
|
|
make_module = +$(QQ)"$(MAKE)" -C $(2) -f $(LWIP_MODULE_MAKEFILE) MODULE=$(1)
|
2018-02-27 09:58:59 +01:00
|
|
|
|
2019-06-27 15:18:37 +02:00
|
|
|
all: lwip
|
2018-02-27 09:58:59 +01:00
|
|
|
|
|
|
|
lwip: $(LWIP_USEMODULE)
|
2020-06-13 20:58:27 +02:00
|
|
|
$(call make_module,$@,$(PKG_SOURCE_DIR))
|
2018-02-27 09:58:59 +01:00
|
|
|
|
|
|
|
lwip_api:
|
2020-06-13 20:58:27 +02:00
|
|
|
$(call make_module,$@,$(PKG_SOURCE_DIR)/src/api)
|
2018-02-27 09:58:59 +01:00
|
|
|
|
|
|
|
lwip_core:
|
2020-06-13 20:58:27 +02:00
|
|
|
$(call make_module,$@,$(PKG_SOURCE_DIR)/src/core)
|
2018-02-27 09:58:59 +01:00
|
|
|
|
|
|
|
lwip_ipv4:
|
2020-06-13 20:58:27 +02:00
|
|
|
$(call make_module,$@,$(PKG_SOURCE_DIR)/src/core/ipv4)
|
2018-02-27 09:58:59 +01:00
|
|
|
|
|
|
|
lwip_ipv6:
|
2020-06-13 20:58:27 +02:00
|
|
|
$(call make_module,$@,$(PKG_SOURCE_DIR)/src/core/ipv6)
|
2018-02-27 09:58:59 +01:00
|
|
|
|
|
|
|
lwip_netif:
|
2020-06-13 20:58:27 +02:00
|
|
|
$(call make_module,$@,$(PKG_SOURCE_DIR)/src/netif)
|
2018-02-27 09:58:59 +01:00
|
|
|
|
|
|
|
lwip_netif_ppp:
|
2020-06-13 20:58:27 +02:00
|
|
|
$(call make_module,$@,$(PKG_SOURCE_DIR)/src/netif/ppp)
|
2018-02-27 09:58:59 +01:00
|
|
|
|
|
|
|
lwip_polarssl:
|
2020-06-13 20:58:27 +02:00
|
|
|
$(call make_module,$@,$(PKG_SOURCE_DIR)/src/netif/ppp/polarssl)
|