Hello,

Arm64 are in the process of updating packages for their Debian port.
It would probably be a good idea to add or1k at this point to ride the
wave of autoconf updates that will follow.
We discussed this patch a bit on IRC with the following inputs:

1) openrisc-* is an alias for or32
Leave it since openrisc might be used somewhere, rip it out when or1k
is really released and merged upstream.

2) or32-*
Same as 1 although more probable that it's used.

3) or32-* defaults to -coff
Again, people might use this behavior somewhere and it's not important
to change right now.

My plan is to send this patch upstream tomorrow, if you have any
feedback or concerns please voice them! :-)

diff --git a/ChangeLog b/ChangeLog
index c4c558e..83e224c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-02-11  Christian Svensson  <[email protected]>
+
+       * config.guess (or1k:Linux:*:*): New.
+       * config.sub (or1k): Likewise.
+       * testsuite/config-guess.data: Test for or1k:Linux.
+       * testsuite/config-sub.data: Tests for or1k-linux, or1k-elf.
+
 2013-02-04  Ben Elliston  <[email protected]>

        * config.guess: Contract the list of copyright years into the
diff --git a/config.guess b/config.guess
index 6ea3454..eb57916 100755
--- a/config.guess
+++ b/config.guess
@@ -956,6 +956,9 @@ EOF
     or32:Linux:*:*)
        echo ${UNAME_MACHINE}-unknown-linux-gnu
        exit ;;
+    or1k:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-gnu
+       exit ;;
     padre:Linux:*:*)
        echo sparc-unknown-linux-gnu
        exit ;;
diff --git a/config.sub b/config.sub
index 80211d0..0d0d0ab 100755
--- a/config.sub
+++ b/config.sub
@@ -296,7 +296,7 @@ case $basic_machine in
        | nios | nios2 | nios2eb | nios2el \
        | ns16k | ns32k \
        | open8 \
-       | or32 \
+       | or1k | or32 \
        | pdp10 | pdp11 | pj | pjl \
        | powerpc | powerpc64 | powerpc64le | powerpcle \
        | pyramid \
@@ -1589,6 +1589,9 @@ case $basic_machine in
        mips*-*)
                os=-elf
                ;;
+       or1k-*)
+               os=-elf
+               ;;
        or32-*)
                os=-coff
                ;;
diff --git a/testsuite/config-guess.data b/testsuite/config-guess.data
index 0d18ea6..12c6fbf 100644
--- a/testsuite/config-guess.data
+++ b/testsuite/config-guess.data
@@ -37,6 +37,7 @@ NSE-1 1.0                     NONSTOP_KERNEL
ignored nse-tandem-nsk1.0
 NSE-N  1.0                     NONSTOP_KERNEL  ignored nse-tandem-nsk1.0
 NSE-NN 1.0                     NONSTOP_KERNEL  ignored nse-tandem-nsk1.0
 or32   ignored                 Linux           ignored or32-unknown-linux-gnu
+or1k   ignored                 Linux           ignored or1k-unknown-linux-gnu
 padre  2.6.15                  Linux           ignored sparc-unknown-linux-gnu
 pc     1.0                     ignored         ignored i586-pc-msdosdjgpp
 PowerPC        4.2                     LynxOS          ignored
powerpc-unknown-lynxos4.2
diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data
index 379cda6..ba1e9df 100644
--- a/testsuite/config-sub.data
+++ b/testsuite/config-sub.data
@@ -148,6 +148,8 @@ open8-elf                   open8-unknown-elf
 open8                          open8-unknown-none
 openrisc-linux                 or32-unknown-linux-gnu
 or32-linux                     or32-unknown-linux-gnu
+or1k-linux                     or1k-unknown-linux-gnu
+or1k-elf                       or1k-unknown-elf
 os400                          powerpc-ibm-os400
 parisc                         hppa-unknown-linux-gnu
 pc98-freebsd                   i386-pc-freebsd

Regards,
Christian Svensson
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc

Reply via email to