Since binutils contains code that targets or1knd, I'm going to submit the following to upstream for config.guess/config.sub. I'll hold until tomorrow before sending this to allow people to comment.
>From d9e94867afff1c5db93876ecbc58d73a0711e753 Mon Sep 17 00:00:00 2001 From: Christian Svensson <[email protected]> Date: Sat, 8 Mar 2014 13:50:32 +0000 Subject: [PATCH] Add or1knd as a supported architecture. * config.guess (or1knd:Linux:*:*): New. * config.sub (or1knd): Likewise. * testsuite/config-guess.data: Test for or1knd:Linux. * testsuite/config-sub.data: Tests for or1knd-linux, or1knd-elf, or1knd and or1k. Signed-off-by: Christian Svensson <[email protected]> --- ChangeLog | 8 ++++++++ config.guess | 2 +- config.sub | 4 ++-- testsuite/config-guess.data | 1 + testsuite/config-sub.data | 4 ++++ 5 files changed, 16 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index bac2206..d035b54 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2014-03-08 Christian Svensson <[email protected]> + + * config.guess (or1knd:Linux:*:*): New. + * config.sub (or1knd): Likewise. + * testsuite/config-guess.data: Test for or1knd:Linux. + * testsuite/config-sub.data: Tests for or1knd-linux, or1knd-elf, + or1knd and or1k. + 2014-02-12 Urs Janssen <[email protected]> * config.guess (Linux|GNU|GNU/*): Strip extraneous whitespace diff --git a/config.guess b/config.guess index 72625d4..0a4df75 100755 --- a/config.guess +++ b/config.guess @@ -969,7 +969,7 @@ EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; - or1k:Linux:*:*) + or1k:Linux:*:* | or1knd:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; or32:Linux:*:*) diff --git a/config.sub b/config.sub index 092cff0..dfe8582 100755 --- a/config.sub +++ b/config.sub @@ -297,7 +297,7 @@ case $basic_machine in | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 \ - | or1k | or32 \ + | or1k | or1knd | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ @@ -1594,7 +1594,7 @@ case $basic_machine in mips*-*) os=-elf ;; - or1k-*) + or1k-* | or1knd-*) os=-elf ;; or32-*) diff --git a/testsuite/config-guess.data b/testsuite/config-guess.data index a789be4..82adfd3 100644 --- a/testsuite/config-guess.data +++ b/testsuite/config-guess.data @@ -39,6 +39,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 or1k ignored Linux ignored or1k-unknown-linux-gnu +or1knd ignored Linux ignored or1knd-unknown-linux-gnu or32 ignored Linux ignored or32-unknown-linux-gnu padre 2.6.15 Linux ignored sparc-unknown-linux-gnu pc 1.0 ignored ignored i586-pc-msdosdjgpp diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data index 20dba9b..d257f5f 100644 --- a/testsuite/config-sub.data +++ b/testsuite/config-sub.data @@ -159,8 +159,12 @@ nvptx nvptx-unknown-none open8-elf open8-unknown-elf open8 open8-unknown-none openrisc-linux or32-unknown-linux-gnu +or1k or1k-unknown-elf or1k-elf or1k-unknown-elf or1k-linux or1k-unknown-linux-gnu +or1knd or1knd-unknown-elf +or1knd-elf or1knd-unknown-elf +or1knd-linux or1knd-unknown-linux-gnu or32-linux or32-unknown-linux-gnu os400 powerpc-ibm-os400 parisc hppa-unknown-linux-gnu -- 1.7.10.4 On Tue, Feb 12, 2013 at 1:15 PM, Jeremy Bennett <[email protected]> wrote: > On Tue, 2013-02-12 at 11:07 +0100, Christian Svensson wrote: >> On Mon, Feb 11, 2013 at 11:38 AM, Jonas Bonn <[email protected]> wrote: >> > On 02/11/2013 11:30 AM, Christian Svensson wrote: >> >> >> >> 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! :-) >> > >> > >> > Looks good to me. >> > /Jonas >> >> Submitted to upstream. > > Hi Christian, > > Thanks for doing this. > > Best wishes, > > > Jeremy > > -- > Tel: +44 (1590) 610184 > Cell: +44 (7970) 676050 > SkypeID: jeremybennett > Email: [email protected] > Web: www.embecosm.com > > _______________________________________________ > OpenRISC mailing list > [email protected] > http://lists.openrisc.net/listinfo/openrisc _______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
