mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-23 10:09:57 +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>
42 lines
1.4 KiB
Makefile
42 lines
1.4 KiB
Makefile
include $(SRC_DIR)/Makefile.versions
|
|
|
|
.PHONY: .FORCE
|
|
|
|
COMPEL_SO_VERSION := $(COMPEL_SO_VERSION_MAJOR)$(if $(COMPEL_SO_VERSION_MINOR),.$(COMPEL_SO_VERSION_MINOR))$(if $(COMPEL_SO_VERSION_SUBLEVEL),.$(COMPEL_SO_VERSION_SUBLEVEL))
|
|
COMPEL_SO_VERSION_CODE := $(shell expr $(COMPEL_SO_VERSION_MAJOR) \* 65536 \+ $(COMPEL_SO_VERSION_MINOR) \* 256 \+ $(COMPEL_SO_VERSION_SUBLEVEL))
|
|
ccflags-y += -iquote compel/arch/$(ARCH)/src/lib/include
|
|
ccflags-y += -iquote compel/include
|
|
ccflags-y += -iquote compel/plugins/include
|
|
ccflags-y += -iquote $(SRC_DIR)/criu/include
|
|
ccflags-y += -fPIC
|
|
|
|
lib-y += arch/$(ARCH)/src/lib/handle-elf.o
|
|
host-lib-y += arch/$(ARCH)/src/lib/handle-elf.o
|
|
lib-y += src/lib/handle-elf.o
|
|
host-lib-y += src/lib/handle-elf.o
|
|
|
|
ifeq ($(ARCH),x86)
|
|
lib-y += src/lib/handle-elf-32.o
|
|
host-lib-y += src/lib/handle-elf-32.o
|
|
endif
|
|
|
|
obj-y += src/main.o
|
|
|
|
ifeq ($(ARCH),x86)
|
|
CFLAGS_handle-elf-32.o += -UCONFIG_X86_64 -DCONFIG_X86_32
|
|
CFLAGS_handle-elf-32.d += -UCONFIG_X86_64 -DCONFIG_X86_32
|
|
endif
|
|
|
|
host-ccflags-y += $(ccflags-y)
|
|
|
|
hostprogs-y += compel-host
|
|
compel-host-objs := $(patsubst %.o,%-host.o,$(obj-y) $(host-lib-y))
|
|
|
|
ifeq ($(ARCH),x86)
|
|
HOSTCFLAGS_handle-elf-32-host.o += -UCONFIG_X86_64 -DCONFIG_X86_32
|
|
HOSTCFLAGS_handle-elf-32-host.d += -UCONFIG_X86_64 -DCONFIG_X86_32
|
|
endif
|
|
|
|
cleanup-y += compel/compel
|
|
cleanup-y += compel/compel-host
|
|
cleanup-y += compel/libcompel.so
|