aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNishanth Aravamudan <nacc@us.ibm.com>2008-07-25 15:26:28 -0700
committerNishanth Aravamudan <nacc@us.ibm.com>2008-07-28 15:31:32 -0700
commit053bf4591b854395faa0ea18a9f493ac2796e4d3 (patch)
treee2d6107c256384beff834d013ecf8f54670b9fce /Makefile
parent287d1b278aaf4d6b975629354e35f4d75f5b8db4 (diff)
downloadlibhugetlbfs-053bf4591b854395faa0ea18a9f493ac2796e4d3.tar.gz
Add basic s390x support
Enable the building of the library on s390 and specify the behavior of the icache-hygiene test. The testsuite runs relatively clean. Only one major issue and I've reported it upstream. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Acked-by: Adam Litke <agl@us.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f1f83fa..59fdb47 100644
--- a/Makefile
+++ b/Makefile
@@ -63,6 +63,13 @@ CC64 = gcc -m64
LIB64 = lib64
CFLAGS += -DNO_ELFLINK
else
+ifeq ($(ARCH),s390x)
+CC64 = gcc -m64
+CC32 = gcc -m31
+LIB64 = lib64
+LIB32 = lib
+CFLAGS += -DNO_ELFLINK
+else
$(error "Unrecognized architecture ($(ARCH))")
endif
endif
@@ -70,6 +77,7 @@ endif
endif
endif
endif
+endif
ifdef CC32
OBJDIRS += obj32