2012-08-08 08:55:09 +00:00
|
|
|
include ports/lwip.inc
|
|
|
|
|
|
|
|
LWIP_TGZ = $(LWIP).tar.gz
|
|
|
|
LWIP_URL = http://git.savannah.gnu.org/cgit/lwip.git/snapshot/$(LWIP_TGZ)
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Interface to top-level prepare Makefile
|
|
|
|
#
|
|
|
|
PORTS += $(LWIP)
|
|
|
|
|
2012-05-25 10:13:05 +00:00
|
|
|
#
|
|
|
|
# Check for tools
|
|
|
|
#
|
|
|
|
$(call check_tool,unzip)
|
|
|
|
|
2011-12-22 15:19:25 +00:00
|
|
|
prepare-lwip: $(CONTRIB_DIR)/$(LWIP) include/lwip/lwip include/lwip/netif
|
|
|
|
|
|
|
|
$(CONTRIB_DIR)/$(LWIP): clean-lwip
|
|
|
|
|
|
|
|
#
|
|
|
|
# Port-specific local rules
|
|
|
|
#
|
2012-08-08 08:55:09 +00:00
|
|
|
$(DOWNLOAD_DIR)/$(LWIP_TGZ):
|
2011-12-22 15:19:25 +00:00
|
|
|
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(LWIP_URL) && touch $@
|
|
|
|
|
2012-08-08 08:55:09 +00:00
|
|
|
$(CONTRIB_DIR)/$(LWIP): $(DOWNLOAD_DIR)/$(LWIP_TGZ)
|
|
|
|
$(VERBOSE)tar xvzf $< -C $(CONTRIB_DIR) && touch $@
|
|
|
|
$(VERBOSE)find ./src/lib/lwip/ -name "*.patch" |\
|
2012-11-02 14:41:06 +00:00
|
|
|
xargs -ixxx sh -c "patch -p1 -r - -N -d $(CONTRIB_DIR)/$(LWIP) < xxx" || true
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
include/lwip/lwip:
|
|
|
|
$(VERBOSE)mkdir -p $@
|
|
|
|
$(VERBOSE)ln -s $(addprefix ../../../, $(wildcard $(CONTRIB_DIR)/$(LWIP)/src/include/lwip/*.h)) -t $@
|
|
|
|
$(VERBOSE)ln -s $(addprefix ../../../, $(wildcard $(CONTRIB_DIR)/$(LWIP)/src/include/ipv4/lwip/*.h)) -t $@
|
|
|
|
|
|
|
|
include/lwip/netif:
|
|
|
|
$(VERBOSE)mkdir -p $@
|
|
|
|
$(VERBOSE)ln -s $(addprefix ../../../, $(wildcard $(CONTRIB_DIR)/$(LWIP)/src/include/netif/*.h)) -t $@
|
|
|
|
|
|
|
|
clean-lwip:
|
|
|
|
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(LWIP)
|
|
|
|
$(VERBOSE)rm -rf include/lwip/lwip
|
|
|
|
$(VERBOSE)rm -rf include/lwip/netif
|