[commit: ghc] master: aclocal.m4: add minimal support for nios2 architecture (02aaeab)

git at git.haskell.org git at git.haskell.org
Mon Dec 25 15:49:47 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/02aaeabd585124f1394a3ad251b39b4ff368339b/ghc

>---------------------------------------------------------------

commit 02aaeabd585124f1394a3ad251b39b4ff368339b
Author: Sergei Trofimovich <slyfox at gentoo.org>
Date:   Mon Dec 25 15:46:06 2017 +0000

    aclocal.m4: add minimal support for nios2 architecture
    
    With this change unregisterised port can already produce minimal
    executables:
        ELF 32-bit LSB executable, Altera Nios II, version 1 (SYSV),
        dynamically linked, interpreter /lib/ld-linux-nios2.so.1
    
    Signed-off-by: Sergei Trofimovich <slyfox at gentoo.org>


>---------------------------------------------------------------

02aaeabd585124f1394a3ad251b39b4ff368339b
 aclocal.m4 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/aclocal.m4 b/aclocal.m4
index 5dc618d..5989a13 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -217,7 +217,7 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_VARS],
         mipsel)
             test -z "[$]2" || eval "[$]2=ArchMipsel"
             ;;
-        hppa|hppa1_1|ia64|m68k|rs6000|s390|s390x|sh4|vax)
+        hppa|hppa1_1|ia64|m68k|nios2|rs6000|s390|s390x|sh4|vax)
             test -z "[$]2" || eval "[$]2=ArchUnknown"
             ;;
         *)
@@ -1848,6 +1848,9 @@ case "$1" in
   mips*)
     $2="mips"
     ;;
+  nios2)
+    $2="nios2"
+    ;;
   powerpc64le*)
     $2="powerpc64le"
     ;;



More information about the ghc-commits mailing list