recipe: virt_linux api

for x86_32, x86_64, arm, arm_64

issue #4958
This commit is contained in:
Sebastian Sumpf 2023-07-03 22:26:50 +02:00 committed by Christian Helmuth
parent c835993ac3
commit 5bce4dac81
5 changed files with 1282 additions and 5 deletions

View File

@ -7,19 +7,21 @@ endif
LX_GEN_DIR := $(LIB_CACHE_DIR)/virt_linux_generated
INC_DIR += $(REP_DIR)/src/include/virt_linux
VIRT_LINUX_INCLUDE_DIR := $(call select_from_repositories,src/include/virt_linux)
INC_DIR += $(VIRT_LINUX_INCLUDE_DIR)
ifeq ($(filter-out $(SPECS),x86_32),)
INC_DIR += $(REP_DIR)/src/include/virt_linux/spec/x86_32
INC_DIR += $(VIRT_LINUX_INCLUDE_DIR)/spec/x86_32
endif
ifeq ($(filter-out $(SPECS),x86_64),)
INC_DIR += $(REP_DIR)/src/include/virt_linux/spec/x86_64
INC_DIR += $(VIRT_LINUX_INCLUDE_DIR)/spec/x86_64
endif
ifeq ($(filter-out $(SPECS),arm),)
INC_DIR += $(REP_DIR)/src/include/virt_linux/spec/arm
INC_DIR += $(VIRT_LINUX_INCLUDE_DIR)/spec/arm
endif
ifeq ($(filter-out $(SPECS),arm_64),)
INC_DIR += $(REP_DIR)/src/include/virt_linux/spec/arm_64
INC_DIR += $(VIRT_LINUX_INCLUDE_DIR)/spec/arm_64
endif
-include $(call select_from_repositories,lib/import/import-lx_emul_common.inc)

View File

@ -0,0 +1,54 @@
#
# Content hosted in the dde_linux repository
#
MIRRORED_FROM_REP_DIR := lib/import/import-lx_emul_common.inc \
lib/import/import-virt_lx_emul.mk \
lib/mk/spec/arm/virt_linux_generated.mk \
lib/mk/spec/arm_64/virt_linux_generated.mk \
lib/mk/spec/x86_32/virt_linux_generated.mk \
lib/mk/spec/x86_64/virt_linux_generated.mk \
lib/mk/virt_linux_generated.inc \
lib/mk/virt_lx_emul.mk \
src/include/lx_emul \
src/include/lx_kit \
src/include/spec/arm/lx_kit \
src/include/spec/arm_64/lx_kit \
src/include/spec/x86_32/lx_kit \
src/include/spec/x86_64/lx_kit \
src/include/virt_linux \
src/lib/lx_emul \
src/lib/lx_kit \
src/virt_linux/target.inc \
src/include/lx_user
content: $(MIRRORED_FROM_REP_DIR)
$(MIRRORED_FROM_REP_DIR):
$(mirror_from_rep_dir)
#
# Content from the Linux source tree
#
PORT_DIR := $(call port_dir,$(GENODE_DIR)/repos/dde_linux/ports/linux)
LX_REL_DIR := src/linux
LX_ABS_DIR := $(addsuffix /$(LX_REL_DIR),$(PORT_DIR))
LX_FILES += $(shell cd $(LX_ABS_DIR); find -name "Kconfig*" -printf "%P\n")
# add content listed in the repository's source.list or dep.list files
LX_FILE_LISTS := $(shell find -H $(REP_DIR) -name dep.list -or -name source.list)
LX_FILES += $(shell cat $(LX_FILE_LISTS))
LX_FILES := $(sort $(LX_FILES))
MIRRORED_FROM_PORT_DIR += $(addprefix $(LX_REL_DIR)/,$(LX_FILES))
content: $(MIRRORED_FROM_PORT_DIR)
$(MIRRORED_FROM_PORT_DIR):
mkdir -p $(dir $@)
cp -r $(addprefix $(PORT_DIR)/,$@) $@
content: LICENSE
LICENSE:
cp $(PORT_DIR)/src/linux/COPYING $@

View File

@ -0,0 +1 @@
2023-07-03-o 1d39e918c7aa09e7fce875ca77d6524a005b4bad

View File

@ -0,0 +1,6 @@
This file was generated using
! MAKE = strace -f --trace=/open make
in 'dde_linux/lib/mk/virt_linux_generated.inc' and parsing all 'openat' calls to
Linux source code for each architecure.

File diff suppressed because it is too large Load Diff