---
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
+
+ * config.sub (psp): Recognize.
+ * testsuite/config-sub.data: Add test case.
+
2020-06-15 Jessica Clarke
* 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-elfpru-unknown-elf
prupru-unknown-elf
ps2i386-ibm-aix
+pspmipsallegrexel-sony-psp
pw32 i586-unknown-pw32
pyramidpyramid-unknown-none
rdos32 i386-pc-rdos
--
2.26.2