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:
authorAdrian Reber <areber@redhat.com>2019-11-04 10:56:15 +0300
committerAndrei Vagin <avagin@gmail.com>2020-02-04 23:39:04 +0300
commit075f1beaf7d36cb9ea5030e1faab9661c33290ab (patch)
tree59f578442a1c10490930f015a67671fa3add961c /Makefile
parent6be414bb2be1e8be13b996f60977ecc44b765a2e (diff)
Makefile hack for travis aarch64/armv8l
For CRIU's compile only tests for armv7hf on Travis we are using 'setarch linux32' which returns armv8l on Travis aarch64. This adds a path in the Makefile to treat armv8l just as armv7hf during compile. This enables us to run armv7hf compile tests on Travis aarch64 hardware. Much faster. Maybe not entirely correct, but probably good enough for compile testing in an armv7hf container. Signed-off-by: Adrian Reber <areber@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0140330e1..f827e7baa 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,6 @@ endif
# Architecture specific options.
ifeq ($(ARCH),arm)
ARMV := $(shell echo $(UNAME-M) | sed -nr 's/armv([[:digit:]]).*/\1/p; t; i7')
- DEFINES := -DCONFIG_ARMV$(ARMV) -DCONFIG_VDSO_32
ifeq ($(ARMV),6)
USERCFLAGS += -march=armv6
@@ -45,6 +44,16 @@ ifeq ($(ARCH),arm)
USERCFLAGS += -march=armv7-a
endif
+ ifeq ($(ARMV),8)
+ # Running 'setarch linux32 uname -m' returns armv8l on travis aarch64.
+ # This tells CRIU to handle armv8l just as armv7hf. Right now this is
+ # only used for compile testing. No further verification of armv8l exists.
+ USERCFLAGS += -march=armv7-a
+ ARMV := 7
+ endif
+
+ DEFINES := -DCONFIG_ARMV$(ARMV) -DCONFIG_VDSO_32
+
PROTOUFIX := y
# For simplicity - compile code in Arm mode without interwork.
# We could choose Thumb mode as default instead - but a dirty