1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00

lwip: remove patches

Moves lwIP to an integration scheme more similar to newer `pkg`s.
This commit is contained in:
Martine Lenders 2018-02-27 09:58:59 +01:00 committed by Martine Lenders
parent 7fde6fc258
commit 95c114bc35
4 changed files with 33 additions and 7 deletions

View File

@ -445,10 +445,6 @@ ifneq (,$(filter lwip_sock_udp,$(USEMODULE)))
endif
ifneq (,$(filter lwip_%,$(USEMODULE)))
USEMODULE += lwip
endif
ifneq (,$(filter lwip,$(USEMODULE)))
USEPKG += lwip
USEMODULE += core_mbox
USEMODULE += lwip_api

View File

@ -3,9 +3,39 @@ PKG_URL=git://git.savannah.nongnu.org/lwip.git
PKG_VERSION=STABLE-2_0_3_RELEASE
PKG_LICENSE=BSD-3-Clause
.PHONY: all
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
all: git-download
"$(MAKE)" -C $(PKG_BUILDDIR)
.PHONY: all $(LWIP_MODULES)
make_module = "$(MAKE)" -f $(LWIP_MODULE_MAKEFILE) MODULE=$(1) -C $(2)
all: git-download lwip
lwip: $(LWIP_USEMODULE)
$(call make_module,$@,$(PKG_BUILDDIR))
lwip_api:
$(call make_module,$@,$(PKG_BUILDDIR)/src/api)
lwip_core:
$(call make_module,$@,$(PKG_BUILDDIR)/src/core)
lwip_ipv4:
$(call make_module,$@,$(PKG_BUILDDIR)/src/core/ipv4)
lwip_ipv6:
$(call make_module,$@,$(PKG_BUILDDIR)/src/core/ipv6)
lwip_netif:
$(call make_module,$@,$(PKG_BUILDDIR)/src/netif)
lwip_netif_ppp:
$(call make_module,$@,$(PKG_BUILDDIR)/src/netif/ppp)
lwip_polarssl:
$(call make_module,$@,$(PKG_BUILDDIR)/src/netif/ppp/polarssl)
include $(RIOTBASE)/pkg/pkg.mk