dde_linux: copy vfs_lxip -> vfs_legacy_lxip

Make a copy of vfs_lxip so it can be revived easily. The plugin can now
be used like

! <legacy_lxip dhcp="yes"/>

issue #5104
This commit is contained in:
Sebastian Sumpf 2024-01-24 19:57:42 +01:00 committed by Christian Helmuth
parent 27b1017fe9
commit 701856b06a
6 changed files with 2126 additions and 0 deletions

View File

@ -0,0 +1,23 @@
SHARED_LIB = yes
VFS_DIR = $(REP_DIR)/src/lib/vfs/legacy_lxip
LXIP_DIR = $(REP_DIR)/src/lib/legacy_lxip
LIBS += legacy_lxip lxip_include
INC_DIR += $(VFS_DIR)
LD_OPT += --version-script=$(VFS_DIR)/symbol.map
SRC_CC = vfs.cc
vpath %.cc $(REP_DIR)/src/lib/vfs/legacy_lxip
SETUP_SUFFIX =
CC_OPT += -DSETUP_SUFFIX=$(SETUP_SUFFIX)
CC_OPT += -U__linux__ -D__KERNEL__
CC_OPT += -DCONFIG_INET -DCONFIG_BASE_SMALL=0 -DCONFIG_DEBUG_LOCK_ALLOC \
-DCONFIG_IP_PNP_DHCP
CC_C_OPT += -include $(LXIP_DIR)/include/lx_emul.h
CC_CXX_OPT += -fpermissive
CC_CXX_WARN_STRICT =

View File

@ -0,0 +1,31 @@
LIB_MK := $(addprefix lib/mk/,legacy_lxip.mk lxip_include.mk vfs_legacy_lxip.mk) \
$(foreach SPEC,x86_32 x86_64,lib/mk/spec/$(SPEC)/lx_kit_setjmp.mk)
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/dde_linux)
MIRROR_FROM_REP_DIR := $(LIB_MK) \
lib/import/import-lxip_include.mk \
include/lxip src/include/legacy src/lib/legacy/lx_kit \
src/lib/lx_kit/spec \
$(foreach SPEC, \
arm_v6 arm_v7 arm_v8 x86 x86_32 x86_64, \
src/include/spec/$(SPEC)) \
$(shell cd $(REP_DIR); find src/lib/legacy_lxip -type f) \
$(shell cd $(REP_DIR); find src/lib/vfs -type f)
MIRROR_FROM_PORT_DIR := $(shell cd $(PORT_DIR); find src/lib/lxip -type f)
content: $(MIRROR_FROM_REP_DIR) $(MIRROR_FROM_PORT_DIR)
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
$(MIRROR_FROM_PORT_DIR):
mkdir -p $(dir $@)
cp -r $(PORT_DIR)/$@ $@
content: LICENSE
LICENSE:
( echo "LxIP is based on Linux, which is licensed under the"; \
echo "GNU General Public License version 2, see:"; \
echo "https://www.kernel.org/pub/linux/kernel/COPYING" ) > $@

View File

@ -0,0 +1 @@
2023-11-08 292058fabece5e1c6823163b0c61846d65313e5d

View File

@ -0,0 +1,7 @@
base
nic_session
os
so
timer_session
vfs
format

View File

@ -0,0 +1,9 @@
{
global:
vfs_file_system_factory;
local:
*;
};

File diff suppressed because it is too large Load Diff