config-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] * config.sub (psp): Recognize. * testsuite/config-sub.data: Add


From: Carsten Teibes
Subject: [PATCH] * config.sub (psp): Recognize. * testsuite/config-sub.data: Add test case.
Date: Thu, 18 Jun 2020 02:51:26 +0200

---
Adding this target for homebrew on an old platform (Sony PSP).
Let me know if there is anything that should better be done differently.

 ChangeLog                 |  5 +++++
 config.sub                | 12 +++++++++++-
 testsuite/config-sub.data |  1 +
 3 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index cefbe03..13ab735 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-06-18  Carsten Teibes <dev@f4ke.de>
+
+       * config.sub (psp): Recognize.
+       * testsuite/config-sub.data: Add test case.
+
 2020-06-15  Jessica Clarke <jrtc27@jrtc27.com>
 
        * config.guess (x86_64:Linux:*:*): Detect x32 ABI. This is
diff --git a/config.sub b/config.sub
index 973a298..0820805 100755
--- a/config.sub
+++ b/config.sub
@@ -2,7 +2,7 @@
 # Configuration validation subroutine script.
 #   Copyright 1992-2020 Free Software Foundation, Inc.
 
-timestamp='2020-05-04'
+timestamp='2020-06-18'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -477,6 +477,10 @@ case $1 in
                                basic_machine=hppa-unknown
                                os=linux
                                ;;
+                       psp)
+                               basic_machine=mipsallegrexel-sony
+                               os=psp
+                               ;;
                        pw32)
                                basic_machine=i586-unknown
                                os=pw32
@@ -1138,6 +1142,10 @@ case $cpu-$vendor in
                cpu=nsx
                vendor=tandem
                ;;
+       mipsallegrexel-sony)
+               cpu=mipsallegrexel
+               vendor=sony
+               ;;
        s390-*)
                cpu=s390
                vendor=ibm
@@ -1507,6 +1515,8 @@ case $os in
                ;;
        ios)
                ;;
+       psp)
+               ;;
        none)
                ;;
        *-eabi)
diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data
index cdf787d..8aedd3f 100644
--- a/testsuite/config-sub.data
+++ b/testsuite/config-sub.data
@@ -549,6 +549,7 @@ ppc                                         
powerpc-unknown-none
 pru-elf                                                pru-unknown-elf
 pru                                            pru-unknown-elf
 ps2                                            i386-ibm-aix
+psp                                            mipsallegrexel-sony-psp
 pw32                                           i586-unknown-pw32
 pyramid                                                pyramid-unknown-none
 rdos32                                         i386-pc-rdos
-- 
2.26.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]