xorg-config.patch 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. --- xc/config/cf/host.def~ Thu May 12 15:28:01 MDT 2005
  2. +++ xc/config/cf/host.def Thu May 12 15:28:01 MDT 2005
  3. @@ -0,0 +1,45 @@
  4. +#define KDriveXServer YES
  5. +#define TinyXServer YES
  6. +#define XfbdevServer YES
  7. +#define CrossCompiling YES
  8. +#define ProjectRoot /usr/X11R6
  9. +#define NothingOutsideProjectRoot YES
  10. +
  11. +#define HasFreetype2 YES
  12. +#define Freetype2Dir REPLACE_STAGING_DIR
  13. +#define HasFontconfig YES
  14. +#define FontconfigDir REPLACE_STAGING_DIR
  15. +#define HasLibpng YES
  16. +#define HasZlib YES
  17. +#define HaveLib64 NO
  18. +#define LibDirName lib
  19. +#define SystemUsrLibDir /usr/lib
  20. +#define TkLibDir /usr/lib
  21. +
  22. +#define HasExpat YES
  23. +#define ExpatDir REPLACE_STAGING_DIR
  24. +#define XprtServer NO
  25. +#define BuildXprintClients NO
  26. +#define TouchScreen NO
  27. +#define HasTsLib NO
  28. +#define BuildDocs NO
  29. +#define BuildXF86DRI NO
  30. +#define BuildGlxExt NO
  31. +#define BuildOSMesaLib NO
  32. +#define BuildLBX NO
  33. +#define BuildLowMem NO
  34. +#define BuildIPv6 NO
  35. +#define HasPam NO
  36. +#define HasPamMisc NO
  37. +#define BuildXterm NO
  38. +#define BuildXFree86ConfigTools NO
  39. +/*
  40. +#define XF86CardDrivers mga glint nv tga s3virge sis rendition \
  41. + neomagic i740 tdfx savage \
  42. + cirrus vmware tseng trident chips apm \
  43. + GlideDriver fbdev i128 \
  44. + ati AgpGartDrivers DevelDrivers ark \
  45. + cyrix siliconmotion vesa vga \
  46. + XF86OSCardDrivers XF86ExtraCardDrivers
  47. +*/
  48. +
  49. +#define XInputDrivers mouse keyboard
  50. --- xc/config/cf/cross.def~ Thu May 12 15:28:01 MDT 2005
  51. +++ xc/config/cf/cross.def Thu May 12 15:28:01 MDT 2005
  52. @@ -1,45 +1,63 @@
  53. -/* $XFree86: xc/config/cf/cross.def,v 1.1 2000/12/08 22:09:34 keithp Exp $ */
  54. +/* $XFree86: xc/config/cf/cross.def,v 1.2 2001/03/30 02:15:17 keithp Exp $ */
  55. /*
  56. * This file contains redefinitions of some symbols to enable
  57. * cross compilation: e.g. paths for include files and paths to
  58. * compiler images. It will have to be edited to reflect these
  59. * given your local configuration.
  60. */
  61. -#if 0
  62. +/* Undefine any architectures detected */
  63. #undef i386Architecture
  64. -#define Arm32Architecture
  65. +#undef AMD64Architecture
  66. +#undef PpcArchitecture
  67. +#undef SparcArchitecture
  68. +#undef AlphaArchitecture
  69. +#undef Arm32Architecture
  70. +#undef ia64Architecture
  71. +#undef MipsArchitecture
  72. +
  73. +/* Cross compiling for: */
  74. +#define REPLACE_XORG_ARCHArchitecture
  75. +
  76. +/* MTRR detection in linux.cf is exec'ed before cross.def, so redo it here */
  77. +#undef HasMTRRSupport
  78. +#if defined (i386Architecture) || defined (AMD64Architecture)
  79. +# define HasMTRRSupport YES
  80. +#else
  81. +# define HasMTRRSupport NO /* no for non-ix86 */
  82. +#endif
  83. #undef OptimizedCDebugFlags
  84. -#define OptimizedCDebugFlags -O2
  85. -#define ServerCDebugFlags -O2
  86. +#define OptimizedCDebugFlags -Os
  87. +#define ServerCDebugFlags -Os
  88. #undef StandardDefines
  89. -#define StandardDefines -Dlinux -D__arm__ -D_POSIX_SOURCE \
  90. +#define StandardDefines -Dlinux -D__REPLACE_ARCH__ -D_POSIX_SOURCE \
  91. -D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE
  92. #undef CcCmd
  93. -#define StdIncDir /skiff/local/arm-linux/include
  94. -#define PreIncDir
  95. +#define StdIncDir REPLACE_STAGING_DIR/include
  96. +#define PreIncDir
  97. #undef PostIncDir
  98. -#define PostIncDir /skiff/local/lib/gcc-lib/arm-linux/2.95.2/include
  99. -#define CcCmd /skiff/local/bin/arm-linux-gcc
  100. +#define PostIncDir REPLACE_GCCINC_DIR
  101. +#define CcCmd REPLACE_STAGING_DIR/bin/REPLACE_ARCH-linux-gcc
  102. #undef CplusplusCmd
  103. -#define HasCplusplus YES
  104. -#define CplusplusCmd /skiff/local/bin/arm-linux-g++
  105. +#define HasCplusplus NO
  106. +#define CplusplusCmd NO
  107. #define DoRanlibCmd YES
  108. -#define RanlibCmd /skiff/local/bin/arm-linux-ranlib
  109. +#define RanlibCmd REPLACE_STAGING_DIR/bin/REPLACE_ARCH-linux-ranlib
  110. #undef ExtraLoadFlags
  111. #define ExtraLoadFlags
  112. #define FbNoPixelAddrCode
  113. #undef TermcapLibrary
  114. -#define TermcapLibrary -ltermcap
  115. +#define TermcapLibrary -lncurses
  116. #undef LdPostLib
  117. -#define LdPostLib -L/skiff/local/arm-linux/lib
  118. +#define LdPostLib -LREPLACE_STAGING_DIR/REPLACE_ARCH-linux-uclibc/lib
  119. +#undef LdCmd
  120. +#define LdCmd REPLACE_STAGING_DIR/bin/REPLACE_ARCH-linux-ld
  121. #undef ExtensionOSDefines
  122. #define ExtensionOSDefines
  123. #define ServerXdmcpDefines /**/
  124. #define HostCcCmd cc
  125. -#endif
  126. #include <cross.rules>
  127. --- xc/include/Xfuncs.h.orig 2006-07-07 17:09:16.000000000 -0600
  128. +++ xc/include/Xfuncs.h 2006-07-07 17:11:33.000000000 -0600
  129. @@ -44,18 +44,28 @@
  130. #if defined(SYSV) && !defined(SCO325) && !defined(sun)
  131. #include <memory.h>
  132. void bcopy();
  133. +#ifndef bzero
  134. #define bzero(b,len) memset(b, 0, len)
  135. +#endif
  136. +#ifndef bcmp
  137. #define bcmp(b1,b2,len) memcmp(b1, b2, len)
  138. +#endif
  139. #else
  140. #include <string.h>
  141. #if defined(SCO325) || defined(sun)
  142. #include <strings.h>
  143. #endif
  144. #define _XFUNCS_H_INCLUDED_STRING_H
  145. +#ifndef bcopy
  146. #define bcopy(b1,b2,len) memmove(b2, b1, (size_t)(len))
  147. +#endif
  148. +#ifndef bzero
  149. #define bzero(b,len) memset(b, 0, (size_t)(len))
  150. +#endif
  151. +#ifndef bcmp
  152. #define bcmp(b1,b2,len) memcmp(b1, b2, (size_t)(len))
  153. #endif
  154. +#endif
  155. #endif /* X_USEBFUNCS */
  156. /* the new Xfuncs.h */