mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-04 15:53:44 +00:00
And use it in CRIU directly instead: - move syscalls into compel/arch/ARCH/plugins/std/syscalls - drop old symlinks - no build for 32bit on x86 as expected - use std.built-in.o inside criu directly (compel_main stub) - drop syscalls on x86 criu directory, I copied them already in first compel commist, so we can't move them now, but delete in place Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
57 lines
1.4 KiB
Makefile
57 lines
1.4 KiB
Makefile
.PHONY: .FORCE
|
|
|
|
PLUGIN_ARCH_DIR := compel/arch/$(ARCH)/plugins
|
|
|
|
#
|
|
# CFLAGS, ASFLAGS, LDFLAGS
|
|
|
|
# General compel includes
|
|
ccflags-y += -iquote $(SRC_DIR)/compel/include
|
|
ccflags-y += -fno-stack-protector
|
|
|
|
# General compel/plugins includes
|
|
ccflags-y += -iquote $(obj)/include
|
|
ccflags-y += -iquote $(obj)/include/uapi
|
|
asflags-y += -iquote $(obj)/include
|
|
asflags-y += -iquote $(obj)/include/uapi
|
|
|
|
# Arch compel/plugins includes
|
|
ccflags-y += -iquote $(PLUGIN_ARCH_DIR)/include
|
|
asflags-y += -iquote $(PLUGIN_ARCH_DIR)/include
|
|
asflags-y += -iquote $(PLUGIN_ARCH_DIR)
|
|
|
|
# General flags for assembly
|
|
asflags-y += -fpie -Wstrict-prototypes -Wa,--noexecstack
|
|
asflags-y += -D__ASSEMBLY__ -nostdlib -fomit-frame-pointer
|
|
asflags-y += -fno-stack-protector
|
|
|
|
#
|
|
# Fds plugin
|
|
target += fds
|
|
fds-obj-y += fds/fds.o
|
|
|
|
#
|
|
# Shmem plugin
|
|
target += shmem
|
|
shmem-obj-y += shmem/shmem.o
|
|
|
|
#
|
|
# STD plugin
|
|
target += std
|
|
std-obj-y += std/std.o
|
|
std-obj-y += std/string.o
|
|
|
|
include ./$(PLUGIN_ARCH_DIR)/std/syscalls/Makefile.syscalls
|
|
|
|
define syscall-priority
|
|
$(addprefix $(obj)/,$($(1):%.o=%.d)): | $($(2))
|
|
$(addprefix $(obj)/,$($(1):%.o=%.i)): | $($(2))
|
|
$(addprefix $(obj)/,$($(1):%.o=%.s)): | $($(2))
|
|
$(addprefix $(obj)/,$($(1))): | $($(2))
|
|
endef
|
|
|
|
#
|
|
# Almost all plugins depen on syscall headers
|
|
# and definitions so we have to order their
|
|
# generation manually.
|
|
$(foreach t,$(target),$(eval $(call syscall-priority,$(t)-obj-y,std-headers-deps)))
|