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
|
2018-11-10 09:17:54 +01:00
|
|
|
# lwIP v2.1.2
|
|
|
|
PKG_VERSION=159e31b689577dbf69cf0683bbaffbd71fa5ee10
|
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
|
|
|
|
|
2020-08-26 19:12:14 +02:00
|
|
|
make_module = +"$(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)
|