Created
December 20, 2012 00:06
-
-
Save derekbrokeit/4341920 to your computer and use it in GitHub Desktop.
Fix the configure scripts (config.guess and config.sub) to support NEC-SX9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/config.guess b/config.guess | |
index d622a44..5dd0df7 100755 | |
--- a/config.guess | |
+++ b/config.guess | |
@@ -1219,6 +1219,12 @@ EOF | |
SX-8R:SUPER-UX:*:*) | |
echo sx8r-nec-superux${UNAME_RELEASE} | |
exit ;; | |
+ SX-9:SUPER-UX:*:*) | |
+ echo sx9-nec-superux${UNAME_RELEASE} | |
+ exit ;; | |
+ SX-9R:SUPER-UX:*:*) | |
+ echo sx9r-nec-superux${UNAME_RELEASE} | |
+ exit ;; | |
Power*:Rhapsody:*:*) | |
echo powerpc-apple-rhapsody${UNAME_RELEASE} | |
exit ;; | |
diff --git a/config.sub b/config.sub | |
index c894da4..6f1ec91 100755 | |
--- a/config.sub | |
+++ b/config.sub | |
@@ -134,6 +134,7 @@ case $maybe_os in | |
os=-linux-android | |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
;; | |
+ | |
*) | |
basic_machine=`echo $1 | sed 's/-[^-]*$//'` | |
if [ $basic_machine != $1 ] | |
@@ -358,6 +359,10 @@ case $basic_machine in | |
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | |
exit 1 | |
;; | |
+ # add sx | |
+ SX-NEC) | |
+ basic_machine=sx-nec | |
+ ;; | |
# Recognize the basic CPU types with company name. | |
580-* \ | |
| a29k-* \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment