mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 03:45:24 +00:00
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
This commit is contained in:
parent
e9541605ab
commit
fcf5fcd58c
@ -9,9 +9,6 @@ LWIPDIR := $(LWIP_PORT_DIR)/src/lib/lwip/src
|
||||
|
||||
-include $(LWIPDIR)/Filelists.mk
|
||||
|
||||
# Genode platform files
|
||||
SRC_CC = printf.cc rand.cc sys_arch.cc
|
||||
|
||||
# Core files
|
||||
SRC_C += $(notdir $(COREFILES))
|
||||
|
||||
@ -24,14 +21,12 @@ SRC_C += $(notdir $(CORE6FILES))
|
||||
# Network interface files
|
||||
SRC_C += $(notdir $(NETIFFILES))
|
||||
|
||||
INC_DIR += $(REP_DIR)/include/lwip \
|
||||
$(LWIP_PORT_DIR)/include/lwip \
|
||||
INC_DIR += $(LWIP_PORT_DIR)/include/lwip \
|
||||
$(LWIPDIR)/include \
|
||||
$(LWIPDIR)/include/ipv4 \
|
||||
$(LWIPDIR)/include/api \
|
||||
$(LWIPDIR)/include/netif \
|
||||
$(REP_DIR)/src/lib/lwip/include
|
||||
|
||||
vpath %.cc $(REP_DIR)/src/lib/lwip/platform
|
||||
vpath %.c $(sort $(dir \
|
||||
$(COREFILES) $(CORE4FILES) $(CORE6FILES) $(NETIFFILES)))
|
||||
|
@ -1,7 +1,10 @@
|
||||
SRC_CC = vfs.cc
|
||||
SRC_CC = vfs.cc printf.cc rand.cc sys_arch.cc
|
||||
|
||||
VFS_DIR = $(REP_DIR)/src/lib/vfs/lwip
|
||||
INC_DIR += $(VFS_DIR)
|
||||
|
||||
REP_INC_DIR += src/lib/lwip/include
|
||||
|
||||
LD_OPT += --version-script=$(VFS_DIR)/symbol.map
|
||||
|
||||
LIBS += lwip
|
||||
|
@ -1,5 +1,5 @@
|
||||
MIRROR_FROM_REP_DIR := \
|
||||
$(shell cd $(REP_DIR); find include/lwip src/lib/lwip -type f) \
|
||||
$(shell cd $(REP_DIR); find src/lib/lwip -type f) \
|
||||
lib/import/import-lwip.mk \
|
||||
lib/mk/lwip.mk \
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
#endif
|
||||
|
||||
/* Genode includes */
|
||||
#include <lwip/genode_init.h>
|
||||
#include <lwip_genode_init.h>
|
||||
#include <nic/packet_allocator.h>
|
||||
#include <nic_session/connection.h>
|
||||
#include <base/log.h>
|
@ -17,7 +17,7 @@
|
||||
#include <util/reconstructible.h>
|
||||
#include <base/sleep.h>
|
||||
|
||||
#include <lwip/genode_init.h>
|
||||
#include <lwip_genode_init.h>
|
||||
|
||||
extern "C" {
|
||||
/* LwIP includes */
|
@ -24,8 +24,8 @@
|
||||
#include <base/log.h>
|
||||
|
||||
/* LwIP includes */
|
||||
#include <lwip/genode_init.h>
|
||||
#include <lwip/nic_netif.h>
|
||||
#include <lwip_genode_init.h>
|
||||
#include <nic_netif.h>
|
||||
|
||||
namespace Lwip {
|
||||
extern "C" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user