diff options
author | Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com> | 2014-08-11 00:18:59 +0100 |
---|---|---|
committer | James Cloos <cloos@jhcloos.com> | 2014-09-06 12:59:53 -0400 |
commit | 3c4f28ceeefcb038eb3cf0ff65c4e80f16f26a50 (patch) | |
tree | 2cba5595c4f53de31f7e4d13041de4b5f8140e70 | |
parent | 5bf89151abdfdb1e5c183df9f28ee57b75e33c03 (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.cf | 4 | ||||
-rw-r--r-- | linux.cf | 9 | ||||
-rw-r--r-- | xfree86.cf | 6 | ||||
-rw-r--r-- | xorg.cf | 6 |
4 files changed, 25 insertions, 0 deletions
@@ -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 @@ -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 @@ -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 @@ -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 |