summaryrefslogtreecommitdiff
path: root/module/system/base
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2016-01-28 05:10:53 +0100
committerAndy Wingo <wingo@pobox.com>2016-08-07 13:30:30 +0200
commit8ad67667f33b0ab016495145026e65fef40aa2a4 (patch)
tree421992153e780e72a3807e5b5561576e87c68c6d /module/system/base
parentbcc40bc1c7ee25808153b720aa38322c211623cc (diff)
Recognize nios2 as compilation target
Add support for the nios2 architecture. Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'module/system/base')
-rw-r--r--module/system/base/target.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/system/base/target.scm b/module/system/base/target.scm
index d60a8e0af..d1f6cff79 100644
--- a/module/system/base/target.scm
+++ b/module/system/base/target.scm
@@ -63,7 +63,7 @@
(cond ((string-match "^i[0-9]86$" cpu)
(endianness little))
((member cpu '("x86_64" "ia64"
- "powerpcle" "powerpc64le" "mipsel" "mips64el" "sh4"))
+ "powerpcle" "powerpc64le" "mipsel" "mips64el" "nios2" "sh4"))
(endianness little))
((member cpu '("sparc" "sparc64" "powerpc" "powerpc64" "spu"
"mips" "mips64" "m68k" "s390x"))
@@ -102,7 +102,7 @@
((string-match "64$" cpu) 8)
((string-match "64_?[lbe][lbe]$" cpu) 8)
- ((member cpu '("sparc" "powerpc" "mips" "mipsel" "m68k" "sh4")) 4)
+ ((member cpu '("sparc" "powerpc" "mips" "mipsel" "nios2" "m68k" "sh4")) 4)
((member cpu '("s390x")) 8)
((string-match "^arm.*" cpu) 4)
(else (error "unknown CPU word size" cpu)))))