genode/repos/libports/recipes/api/lwip/content.mk
Norman Feske fcf5fcd58c libports: remove stand-alone variant of lwIP
Since the lwip library is used only by the vfs_lwip plugin, this patch
moves the Genode-specific support code local to the VFS plugin, easing
further simplification and allowing for a tighter integration with the
VFS plugin.

The recipes for api/lwip and src/vfs_lwip stay separate as both parts
use different licenses.

Issue #4697
2023-01-24 12:07:28 +01:00

21 lines
487 B
Makefile

MIRROR_FROM_REP_DIR := \
$(shell cd $(REP_DIR); find src/lib/lwip -type f) \
lib/import/import-lwip.mk \
lib/mk/lwip.mk \
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/lwip)
MIRROR_FROM_PORT_DIR := $(shell cd $(PORT_DIR); find include src -type f)
content: $(MIRROR_FROM_REP_DIR) $(MIRROR_FROM_PORT_DIR) LICENSE
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
$(MIRROR_FROM_PORT_DIR):
mkdir -p $(dir $@)
cp -r $(PORT_DIR)/$@ $@
LICENSE:
cp $(PORT_DIR)/src/lib/lwip/COPYING $@