summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
Diffstat (limited to 'extra')
-rw-r--r--extra/Configs/Config.in14
-rw-r--r--extra/Configs/Config.nios31
-rw-r--r--extra/Configs/Config.nios230
3 files changed, 75 insertions, 0 deletions
diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in
index b61a1ebfd..b1624dafd 100644
--- a/extra/Configs/Config.in
+++ b/extra/Configs/Config.in
@@ -44,6 +44,12 @@ config TARGET_microblaze
config TARGET_mips
bool "mips"
+config TARGET_nios
+ bool "nios"
+
+config TARGET_nios2
+ bool "nios2"
+
config TARGET_powerpc
bool "powerpc"
@@ -97,6 +103,14 @@ if TARGET_m68k
source "extra/Configs/Config.m68k"
endif
+if TARGET_nios
+source "extra/Configs/Config.nios"
+endif
+
+if TARGET_nios2
+source "extra/Configs/Config.nios2"
+endif
+
if TARGET_microblaze
source "extra/Configs/Config.microblaze"
endif
diff --git a/extra/Configs/Config.nios b/extra/Configs/Config.nios
new file mode 100644
index 000000000..10a5f0a20
--- /dev/null
+++ b/extra/Configs/Config.nios
@@ -0,0 +1,31 @@
+#
+# For a description of the syntax of this configuration file,
+# see extra/config/Kconfig-language.txt
+#
+
+config TARGET_ARCH
+ default "nios"
+
+config HAVE_ELF
+ bool
+ select ARCH_HAS_NO_MMU
+ select ARCH_LITTLE_ENDIAN
+ select HAVE_NO_PIC
+ select HAVE_NO_SHARED
+ select ARCH_HAS_NO_LDSO
+ default y
+
+config ARCH_CFLAGS
+ string
+ default "-m32 -funaligned-struct-hack"
+
+config ARCH_LDFLAGS
+ string
+
+config LIBGCC_CFLAGS
+ string
+
+config CROSS
+ string
+ default nios-elf-
+
diff --git a/extra/Configs/Config.nios2 b/extra/Configs/Config.nios2
new file mode 100644
index 000000000..cc7caf17d
--- /dev/null
+++ b/extra/Configs/Config.nios2
@@ -0,0 +1,30 @@
+#
+# For a description of the syntax of this configuration file,
+# see extra/config/Kconfig-language.txt
+#
+
+config TARGET_ARCH
+ default "nios2"
+
+config HAVE_ELF
+ bool
+ select ARCH_HAS_NO_MMU
+ select ARCH_LITTLE_ENDIAN
+ select HAVE_NO_PIC
+ select HAVE_NO_SHARED
+ select ARCH_HAS_NO_LDSO
+ default y
+
+config ARCH_CFLAGS
+ string
+
+config ARCH_LDFLAGS
+ string
+
+config LIBGCC_CFLAGS
+ string
+
+config CROSS
+ string
+ default nios2-elf-
+