[CRIU] [PATCH 16/19] compel: criu -- Use compel-host program

Cyrill Gorcunov gorcunov at openvz.org
Wed Sep 21 13:54:31 PDT 2016


compel-host is needed to build criu itself and
run during piegen blob generation.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 Makefile          | 4 ++--
 criu/pie/Makefile | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index a11964123e7c..742d012569f5 100644
--- a/Makefile
+++ b/Makefile
@@ -193,9 +193,9 @@ include Makefile.compel
 #
 # But note that we're already included
 # the nmk so we can reuse it there.
-criu/%: images/built-in.o compel/compel $(VERSION_HEADER) .FORCE
+criu/%: images/built-in.o compel/compel-host $(VERSION_HEADER) .FORCE
 	$(Q) $(MAKE) $(build)=criu $@
-criu: images/built-in.o compel/compel $(VERSION_HEADER)
+criu: images/built-in.o compel/compel-host $(VERSION_HEADER)
 	$(Q) $(MAKE) $(build)=criu all
 .PHONY: criu
 
diff --git a/criu/pie/Makefile b/criu/pie/Makefile
index 1b11acfb0646..763500296b8f 100644
--- a/criu/pie/Makefile
+++ b/criu/pie/Makefile
@@ -54,9 +54,9 @@ CFLAGS			+= -iquote $(SRC_DIR)
 
 ccflags-y		+= -DCR_NOGLIBC
 ifneq ($(filter-out clean mrproper,$(MAKECMDGOALS)),)
-NATIVE_CFLAGS		:= $(shell $(SRC_DIR)/compel/compel --arch=$(ARCH) cflags)
+NATIVE_CFLAGS		:= $(shell $(SRC_DIR)/compel/compel-host --arch=$(ARCH) cflags)
 ifeq ($(ARCH),x86)
-        COMPAT_CFLAGS	:= $(shell $(SRC_DIR)/compel/compel --arch=ia32 cflags)
+        COMPAT_CFLAGS	:= $(shell $(SRC_DIR)/compel/compel-host --arch=ia32 cflags)
 endif
 endif
 
@@ -154,9 +154,9 @@ $(obj)/parasite-$(1).built-in.bin.o: $(obj)/$(1).built-in.o		\
 endef
 $(eval $(call map,gen-rule-built-in.bin.o,$(parasite_target)))
 
-$(obj)/%-blob.h: $(obj)/%.built-in.bin.o $(SRC_DIR)/compel/compel
+$(obj)/%-blob.h: $(obj)/%.built-in.bin.o $(SRC_DIR)/compel/compel-host
 	$(call msg-gen, $@)
-	$(Q) $(SRC_DIR)/compel/compel piegen -f $<			\
+	$(Q) $(SRC_DIR)/compel/compel-host piegen -f $<			\
 		-v $(call target-name,$@)_relocs			\
 		-p $(call target-name,$@)_blob_offset__			\
 		-s $(call target-name,$@)_blob				\
-- 
2.7.4



More information about the CRIU mailing list