summaryrefslogtreecommitdiffstats
path: root/package/gnuconfig/patches/config.sub.nios.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/gnuconfig/patches/config.sub.nios.patch')
-rw-r--r--package/gnuconfig/patches/config.sub.nios.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/gnuconfig/patches/config.sub.nios.patch b/package/gnuconfig/patches/config.sub.nios.patch
new file mode 100644
index 000000000..d95491f91
--- /dev/null
+++ b/package/gnuconfig/patches/config.sub.nios.patch
@@ -0,0 +1,18 @@
+Index: config.sub
+===================================================================
+RCS file: /cvsroot/config/config/config.sub,v
+retrieving revision 1.336
+diff -u -p -r1.336 config.sub
+--- config.sub 22 Dec 2005 23:50:21 -0000 1.336
++++ config.sub 30 Dec 2005 23:37:29 -0000
+@@ -298,6 +298,10 @@ case $basic_machine in
+ ms1)
+ basic_machine=mt-unknown
+ ;;
++ nios2 | nios2-* | nios2 | nios2-*)
++ basic_machine=nios2-altera
++ os=-none
++ ;;
+
+ # We use `pc' rather than `unknown'
+ # because (1) that's what they normally are, and