libhugetlbfs/libhugetlbfs-ppc64le.patch
Marcus Meissner 2d7c6831ca Accepting request 213633 from openSUSE:Factory:PowerLE
- Add support of ppc64le with 4 patches
	libhugetlbfs-ppc64le.patch
	libhugetlbfs.ppc64le.step2.patch
	libhugetlbfs.ppc64le.step3.patch
	libhugetlbfs.ppc64le.step4.patch (forwarded request 213554 from michel_mno)

OBS-URL: https://build.opensuse.org/request/show/213633
OBS-URL: https://build.opensuse.org/package/show/Base:System/libhugetlbfs?expand=0&rev=32
2014-01-13 12:39:27 +00:00

43 lines
769 B
Diff

Add ppc64le support
Signed-off-by: Anton Blanchard <anton@samba.org>
---
diff --git a/Makefile b/Makefile
index 48205af..7919c3b 100644
--- a/Makefile
+++ b/Makefile
@@ -46,6 +46,11 @@ CC32 = gcc -m32
ELF32 = elf32ppclinux
endif
else
+ifeq ($(ARCH),ppc64le)
+CC64 = gcc -m64
+ELF64 = elf64lppc
+TMPLIB64 = lib64
+else
ifeq ($(ARCH),ppc)
CC32 = gcc -m32
ELF32 = elf32ppclinux
@@ -100,6 +105,7 @@ endif
endif
endif
endif
+endif
ifdef CC32
OBJDIRS += obj32
diff --git a/contrib/tlbmiss_cost.sh b/contrib/tlbmiss_cost.sh
index 1f1e234..8fbf798 100755
--- a/contrib/tlbmiss_cost.sh
+++ b/contrib/tlbmiss_cost.sh
@@ -44,7 +44,7 @@ cpumhz() {
FNAME="cpu MHz"
FINDEX=4
case "`uname -m`" in
- ppc64)
+ ppc64|ppc64le)
FNAME="clock"
FINDEX=3
;;