summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel A. Fernandez Montecelo <manuel.montezelo@gmail.com>2014-08-11 00:18:59 +0100
committerJames Cloos <cloos@jhcloos.com>2014-09-06 12:59:53 -0400
commit3c4f28ceeefcb038eb3cf0ff65c4e80f16f26a50 (patch)
tree2cba5595c4f53de31f7e4d13041de4b5f8140e70
parent5bf89151abdfdb1e5c183df9f28ee57b75e33c03 (diff)
Add support for OpenRISC 1000 (or1k) CPU
Signed-off-by: Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com> Signed-off-by: James Cloos <cloos@jhcloos.com>
-rw-r--r--Imake.cf4
-rw-r--r--linux.cf9
-rw-r--r--xfree86.cf6
-rw-r--r--xorg.cf6
4 files changed, 25 insertions, 0 deletions
diff --git a/Imake.cf b/Imake.cf
index 9e438e7..e7ebe4d 100644
--- a/Imake.cf
+++ b/Imake.cf
@@ -928,6 +928,10 @@ XCOMM Keep cpp from replacing path elements containing i486/i586/i686
# define PpcArchitecture
# undef powerpc
# endif
+# if defined(__or1k__)
+# define OpenRISC1000Architecture
+# undef __or1k__
+# endif
# if defined (__powerpc__) && !defined(__powerpc64__) && !defined (powerpc64)
# ifndef PpcArchitecture
# define PpcArchitecture
diff --git a/linux.cf b/linux.cf
index 75c9447..7845325 100644
--- a/linux.cf
+++ b/linux.cf
@@ -887,6 +887,15 @@ InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
#endif
+#ifdef OpenRISC1000Architecture
+# ifndef OptimizedCDebugFlags
+# define OptimizedCDebugFlags DefaultGcc2OpenRISC1000Opt
+# endif
+# define LinuxMachineDefines -D__or1k__
+# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
+# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
+#endif
+
#ifdef Ppc64Architecture
# define DefaultCCOptions -mminimal-toc
# ifndef OptimizedCDebugFlags
diff --git a/xfree86.cf b/xfree86.cf
index 3172cc2..1dbbd87 100644
--- a/xfree86.cf
+++ b/xfree86.cf
@@ -2034,6 +2034,12 @@ XFREE86JAPANESEDOCDIR = $(DOCDIR)/Japanese
# endif
#endif
+#if HasGcc2 && defined(OpenRISC1000Architecture)
+# ifndef DefaultGcc2OpenRISC1000Opt
+# define DefaultGcc2OpenRISC1000Opt -O2 GccAliasingArgs
+# endif
+#endif
+
#if HasGcc2 && defined(Ppc64Architecture)
# ifndef DefaultGcc2Ppc64Opt
# define DefaultGcc2Ppc64Opt -O2 GccAliasingArgs
diff --git a/xorg.cf b/xorg.cf
index 8ea5715..3b0f10b 100644
--- a/xorg.cf
+++ b/xorg.cf
@@ -1591,6 +1591,12 @@ XFREE86JAPANESEDOCDIR = $(DOCDIR)/Japanese
# endif
#endif
+#if HasGcc2 && defined(OpenRISC1000Architecture)
+# ifndef DefaultGcc2OpenRISC1000Opt
+# define DefaultGcc2OpenRISC1000Opt -O2 GccAliasingArgs
+# endif
+#endif
+
#if HasGcc2 && defined(PpcArchitecture)
# ifndef DefaultGcc2PpcOpt
# define DefaultGcc2PpcOpt -O2 GccAliasingArgs