From 2ced0450b2a3bf064a69708e969353061fcba3a6 Mon Sep 17 00:00:00 2001 From: Michael Holzheu Date: Fri, 30 Jun 2017 20:31:43 +0200 Subject: [PATCH] s390: Enable s390 build in Makefile Reviewed-by: Alice Frosi Signed-off-by: Michael Holzheu Reviewed-by: Dmitry Safonov Signed-off-by: Andrei Vagin --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e2d89e3e4..7f03b6e1f 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ UNAME-M := $(shell uname -m) # # Supported Architectures -ifneq ($(filter-out x86 arm aarch64 ppc64,$(ARCH)),) +ifneq ($(filter-out x86 arm aarch64 ppc64 s390,$(ARCH)),) $(error "The architecture $(ARCH) isn't supported") endif @@ -65,6 +65,13 @@ ifeq ($(ARCH),x86) DEFINES := -DCONFIG_X86_64 endif +ifeq ($(ARCH),s390) + ARCH := s390 + SRCARCH := s390 + VDSO := y + DEFINES := -DCONFIG_S390 +endif + LDARCH ?= $(SRCARCH) export LDARCH VDSO export PROTOUFIX DEFINES