[CRIU] [PATCH 01/23] cr: don't compile the suite for an unsupported architecture

Alexander Kartashov alekskartashov at parallels.com
Mon Jan 14 02:25:43 EST 2013


Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 Makefile |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index 1e4c851..e3137c6 100644
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,8 @@ endif
 SRC_DIR		?= $(shell pwd)
 ARCH_DIR	:= $(SRC_DIR)/arch/$(ARCH)
 
+$(if $(wildcard $(ARCH_DIR)),,$(error "The architecture $(ARCH) isn't supported"))
+
 CFLAGS		+= -I$(SRC_DIR)/include -I$(SRC_DIR)/pie -I$(ARCH_DIR) -iquote $(ARCH_DIR)/include -fno-strict-aliasing
 
 LIBS		:= -lrt -lpthread -lprotobuf-c
-- 
1.7.10.4



More information about the CRIU mailing list