[ltt-dev] [PATCH 4/5] Add S390 support

Jan Blunck jblunck at suse.de
Wed Jun 17 08:09:28 EDT 2009


This patch adds support for the S390 architecture.

Signed-off-by: Jan Blunck <jblunck at suse.de>
---
 Makefile |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 7eb581c..866808e 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,18 @@ endif
 ifeq ("${HOSTTYPE}","ppc64")
 ARCHTYPE=ppc
 endif
+ifeq ("${HOSTTYPE}","s390")
+ARCHTYPE=s390
+endif
+ifeq ("${HOSTTYPE}","s390x")
+ARCHTYPE=s390
+endif
+
+ifeq ($(findstring ${ARCHTYPE},"x86 ppc"),)
+APIHEADER=api_gcc.h
+else
+APIHEADER=api_${ARCHTYPE}.h
+endif
 
 #debug
 #CFLAGS=-Wall -g
@@ -44,8 +56,8 @@ endif
 arch.h: arch_${ARCHTYPE}.h
 	cp -f arch_${ARCHTYPE}.h arch.h
 
-api.h: api_${ARCHTYPE}.h
-	cp -f api_${ARCHTYPE}.h api.h
+api.h: ${APIHEADER}
+	cp -f ${APIHEADER} api.h
 
 arch_atomic.h: arch_atomic_${ARCHTYPE}.h
 	cp -f arch_atomic_${ARCHTYPE}.h arch_atomic.h
-- 
1.6.1.3





More information about the lttng-dev mailing list