Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | From 76155065c70b5ab65c6c805423183b360141db84 Mon Sep 17 00:00:00 2001 |
| 2 | From: Marek Vasut <marex@denx.de> |
| 3 | Date: Thu, 28 Jan 2016 04:46:23 +0100 |
| 4 | Subject: [PATCH] Recognize nios2 as compilation target |
| 5 | |
| 6 | Signed-off-by: Marek Vasut <marex@denx.de> |
| 7 | Upstream-Status: Submitted [ http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22480 ] |
| 8 | --- |
| 9 | module/system/base/target.scm | 4 ++-- |
| 10 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 11 | |
| 12 | diff --git a/module/system/base/target.scm b/module/system/base/target.scm |
| 13 | index d60a8e0..d1f6cff 100644 |
| 14 | --- a/module/system/base/target.scm |
| 15 | +++ b/module/system/base/target.scm |
| 16 | @@ -65,7 +65,7 @@ |
| 17 | (cond ((string-match "^i[0-9]86$" cpu) |
| 18 | (endianness little)) |
| 19 | ((member cpu '("x86_64" "ia64" |
| 20 | - "powerpcle" "powerpc64le" "mipsel" "mips64el")) |
| 21 | + "powerpcle" "powerpc64le" "mipsel" "mips64el" "nios2")) |
| 22 | (endianness little)) |
| 23 | ((member cpu '("sparc" "sparc64" "powerpc" "powerpc64" "spu" |
| 24 | "mips" "mips64")) |
| 25 | @@ -100,7 +100,7 @@ |
| 26 | |
| 27 | ((string-match "64$" cpu) 8) |
| 28 | ((string-match "64[lbe][lbe]$" cpu) 8) |
| 29 | - ((member cpu '("sparc" "powerpc" "mips" "mipsel")) 4) |
| 30 | + ((member cpu '("sparc" "powerpc" "mips" "mipsel" "nios2")) 4) |
| 31 | ((string-match "^arm.*" cpu) 4) |
| 32 | (else (error "unknown CPU word size" cpu))))) |
| 33 | |
| 34 | -- |
| 35 | 2.7.0.rc3 |
| 36 | |