Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuoyun Sun <sunguoyun@loongson.cn>2020-04-08 05:29:21 +0300
committerAndrei Vagin <avagin@gmail.com>2020-10-20 10:18:24 +0300
commitafe90627e276e9e68cdf4872cae8fa3c5c637914 (patch)
treeb0a0c4203c8b7b218a38bcb3ea143d790a581241 /Makefile
parentd325b7b775cd2e51651c00137be0df5bd3d2d74f (diff)
mips:criu: Enable mips in criu
Signed-off-by: Guoyun Sun <sunguoyun@loongson.cn>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 00e563c11..e72dd1428 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ endif
#
# Supported Architectures
-ifneq ($(filter-out x86 arm aarch64 ppc64 s390,$(ARCH)),)
+ifneq ($(filter-out x86 arm aarch64 ppc64 s390 mips,$(ARCH)),)
$(error "The architecture $(ARCH) isn't supported")
endif
@@ -76,6 +76,10 @@ ifeq ($(ARCH),x86)
DEFINES := -DCONFIG_X86_64
endif
+ifeq ($(ARCH),mips)
+ DEFINES := -DCONFIG_MIPS
+endif
+
#
# CFLAGS_PIE:
#
@@ -105,6 +109,10 @@ WARNINGS := -Wall -Wformat-security -Wdeclaration-after-statement -Wstrict-prot
CFLAGS-GCOV := --coverage -fno-exceptions -fno-inline -fprofile-update=atomic
export CFLAGS-GCOV
+ifeq ($(ARCH),mips)
+WARNINGS := -rdynamic
+endif
+
ifneq ($(GCOV),)
LDFLAGS += -lgcov
CFLAGS += $(CFLAGS-GCOV)