summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin E Martin <kem@kem.org>2004-08-11 21:14:01 +0000
committerKevin E Martin <kem@kem.org>2004-08-11 21:14:01 +0000
commit86ef3ff4848ea1959bbefe5a8587042000cd7591 (patch)
tree3f8d238b23a9ba9f49253edb9644eede63b238d2
parent30cfbd75c79e305dd11cf2266b1d36a042c4b513 (diff)
Apply PPC64 build patch (Bug #303, Mike A. Harris, Alan Coopersmith).
-rw-r--r--Imake.cf8
-rw-r--r--linux.cf16
-rw-r--r--xorg.cf101
3 files changed, 121 insertions, 4 deletions
diff --git a/Imake.cf b/Imake.cf
index 1bd7bdf..b182c29 100644
--- a/Imake.cf
+++ b/Imake.cf
@@ -1,4 +1,4 @@
-XCOMM $XdotOrg: xc/config/cf/Imake.cf,v 1.2 2004/04/23 18:41:58 eich Exp $
+XCOMM $XdotOrg: xc/config/cf/Imake.cf,v 1.3 2004/07/24 16:32:39 herrb Exp $
XCOMM $Xorg: Imake.cf,v 1.4 2000/08/17 19:41:45 cpqbld Exp $
/*
* To add support for another platform:
@@ -835,6 +835,12 @@ XCOMM Keep cpp from replacing path elements containing i486/i586/i686
# endif
# undef __powerpc__
# endif
+# ifdef __powerpc64__
+# ifndef Ppc64Architecture
+# define Ppc64Architecture
+# endif
+# undef __powerpc64__
+# endif
# ifdef sparc
# define SparcArchitecture
# undef sparc
diff --git a/linux.cf b/linux.cf
index 70f4d6b..e40f70d 100644
--- a/linux.cf
+++ b/linux.cf
@@ -1,4 +1,4 @@
-XCOMM $XdotOrg: xc/config/cf/linux.cf,v 1.11 2004/08/02 19:35:07 eich Exp $
+XCOMM $XdotOrg: xc/config/cf/linux.cf,v 1.12 2004/08/07 01:05:32 keithp Exp $
XCOMM platform: $Xorg: linux.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
@@ -347,6 +347,8 @@ InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class
# define BuildXF86DRI NO
# elif defined(PpcArchitecture)
# define BuildXF86DRI YES
+# elif defined(Ppc64Architecture)
+# define BuildXF86DRI NO
# elif defined(s390Architecture) || defined(s390xArchitecture)
# define BuildXF86DRI NO
# elif defined(SparcArchitecture)
@@ -539,7 +541,7 @@ InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class
#define MkdirHierCmd mkdir -p
#ifndef HaveLib64
-# if defined (AMD64Architecture) || defined (s390xArchitecture)
+# if defined (AMD64Architecture) || defined (s390xArchitecture) || defined (Ppc64Architecture)
# define HaveLib64 YES
# else
# define HaveLib64 NO
@@ -846,6 +848,16 @@ InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
#endif
+#ifdef Ppc64Architecture
+# define DefaultCCOptions -fsigned-char -mminimal-toc
+# ifndef OptimizedCDebugFlags
+# define OptimizedCDebugFlags DefaultGcc2Ppc64Opt
+# endif
+# define LinuxMachineDefines -D__powerpc64__ -D__powerpc__
+# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
+# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
+#endif /* Ppc64Architecture */
+
#ifdef PpcArchitecture
# define DefaultCCOptions -fsigned-char
# ifndef OptimizedCDebugFlags
diff --git a/xorg.cf b/xorg.cf
index 7bf00f8..83bcae4 100644
--- a/xorg.cf
+++ b/xorg.cf
@@ -1,4 +1,4 @@
-XCOMM $XdotOrg: xc/config/cf/xorg.cf,v 1.15 2004/08/08 20:56:56 krh Exp $
+XCOMM $XdotOrg: xc/config/cf/xorg.cf,v 1.16 2004/08/10 21:37:35 kem Exp $
/*
* This configuration file contains all of the configuration
* information for the Xorg based X Servers.
@@ -651,6 +651,99 @@ RELEASE_VERSION = ReleaseVersion
# endif
#endif
+/*
+ * For PowerPC 64bit systems
+ * only libraries are strictly needed
+ */
+#if defined(Ppc64Architecture)
+# ifndef XF86Server
+# define XF86Server YES
+# endif
+/* Amiga framebuffer module */
+# ifndef XF86AFB
+# define XF86AFB NO
+# endif
+/* 1bpp module */
+# ifndef XF1Bpp
+# define XF1Bpp NO
+# endif
+/* 4bpp module */
+# ifndef XF4Bpp
+# define XF4Bpp NO
+# endif
+/* 8/32bpp overlay module */
+# ifndef XF8_32Bpp
+# define XF8_32Bpp YES
+# endif
+/* 8/16bpp dual fb module */
+# ifndef XF8_16Bpp
+# define XF8_16Bpp YES
+# endif
+/* 24/32bpp conversion module */
+# ifndef XF24_32Bpp
+# define XF24_32Bpp YES
+# endif
+/* shadow fb module */
+# ifndef XFShadowFB
+# define XFShadowFB YES
+# endif
+/* vgahw module */
+# ifndef XF86VgaHw
+# define XF86VgaHw NO
+# endif
+/* fbdevhw module */
+# ifndef XF86FBDevHw
+# define XF86FBDevHw YES
+# endif
+/* XAA module */
+# ifndef XF86XAA
+# define XF86XAA YES
+# endif
+/* ramdac module */
+# ifndef XF86Ramdac
+# define XF86Ramdac YES
+# endif
+/* I2C module */
+# ifndef XF86I2C
+# define XF86I2C YES
+# endif
+/* DDC module */
+# ifndef XF86DDC
+# define XF86DDC YES
+# endif
+/* RAC (Resource Access Control) module */
+# ifndef XF86RAC
+# define XF86RAC YES
+# endif
+
+/* int10 module */
+# ifndef XF86Int10
+# define XF86Int10 YES
+# endif
+
+# ifndef DevelDrivers
+# if XFree86Devel
+# define DevelDrivers
+# else
+# define DevelDrivers /* */
+# endif
+# endif
+
+/* Pure PCI drivers should go first */
+# ifndef XF86CardDrivers
+# define XF86CardDrivers ati mga \
+ DevelDrivers \
+ XF86OSCardDrivers XF86ExtraCardDrivers
+# endif
+# if HasGlide3
+# define TdfxDriDriver
+# else
+# define TdfxDriDriver /**/
+# endif
+# ifndef DriDrivers
+# define DriDrivers gamma r128
+# endif
+#endif
/*
* For Mips/Arc platforms, the default is to build all modules which
@@ -1471,6 +1564,12 @@ XFREE86JAPANESEDOCDIR = $(DOCDIR)/Japanese
# endif
#endif
+#if HasGcc2 && defined(Ppc64Architecture)
+# ifndef DefaultGcc2Ppc64Opt
+# define DefaultGcc2Ppc64Opt -O2 GccAliasingArgs
+# endif
+#endif
+
#if HasGcc2 && defined(PpcArchitecture)
# ifndef DefaultGcc2PpcOpt
# define DefaultGcc2PpcOpt -O2 GccAliasingArgs