diff options
author | Guoyun Sun <sunguoyun@loongson.cn> | 2020-04-08 05:29:21 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2020-10-20 10:18:24 +0300 |
commit | afe90627e276e9e68cdf4872cae8fa3c5c637914 (patch) | |
tree | b0a0c4203c8b7b218a38bcb3ea143d790a581241 /Makefile | |
parent | d325b7b775cd2e51651c00137be0df5bd3d2d74f (diff) |
mips:criu: Enable mips in criu
Signed-off-by: Guoyun Sun <sunguoyun@loongson.cn>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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) |