aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Goossens <walter.goossens@axon.tv>2009-11-22 17:30:37 +0100
committerLeon Woestenberg <leon@sidebranch.com>2009-11-24 13:49:18 +0100
commit007594f90b71acc71447c49be8892ab23fe2b5ff (patch)
tree6ae0e502abdbd87581f5fb993e2708286e18cdd6
parentbc4944d03f14d9365bce3a08d1537f093a8f0a2c (diff)
downloadopenembedded-007594f90b71acc71447c49be8892ab23fe2b5ff.tar.gz
openembedded-007594f90b71acc71447c49be8892ab23fe2b5ff.tar.bz2
openembedded-007594f90b71acc71447c49be8892ab23fe2b5ff.zip
machine/include/nios2.inc: Generics for nios2-based machines.
Signed-off-by: Leon Woestenberg <leon@sidebranch.com>
-rw-r--r--conf/machine/include/nios2.inc42
1 files changed, 42 insertions, 0 deletions
diff --git a/conf/machine/include/nios2.inc b/conf/machine/include/nios2.inc
new file mode 100644
index 0000000000..53d76e539d
--- /dev/null
+++ b/conf/machine/include/nios2.inc
@@ -0,0 +1,42 @@
+#@TYPE: Machine configuration
+#@NAME: nios2
+#@DESCRIPTION: generic machine configuration for nios2 (non-mmu) platforms
+
+# Set default for common nios2-based machines
+MACHINE_FEATURES ?= "kernel26 usbhost pci"
+SHARED_LIBRARIES = "no"
+
+TARGET_LDFLAGS_append = " -Wl,-elf2flt"
+
+# Select an appropriate default kernel
+PREFERRED_PROVIDER_virtual/kernel ?= "linux-nios2"
+PREFERRED_VERSION_linux-nios2 ?= "2.6.28"
+
+# Select the nios2-specific toolchain parts
+PREFERRED_VERSION_binutils = "nios2-2.15"
+PREFERRED_VERSION_binutils-cross = "nios2-2.15"
+PREFERRED_VERSION_linux-libc-headers = "nios2-2.6.28"
+PREFERRED_VERSION_elf2flt-cross = "nios2-git"
+PREFERRED_VERSION_gcc-cross = "nios2-3.4.6"
+PREFERRED_VERSION_gcc-cross-initial = "nios2-3.4.6"
+PREFERRED_VERSION_gcc-cross-intermediate = "nios2-3.4.6"
+PREFERRED_VERSION_uclibc = "nios2-0.9.27"
+PREFERRED_VERSION_uclibc-initial = "nios2-0.9.27"
+
+# Set default for 16MB machines - can be overridden for more or less flash.
+ROOT_FLASH_SIZE ?= "12"
+
+# Allow for rootfs loaded direct from internal hard disk
+IMAGE_FSTYPES ?= "jffs2 tar.gz"
+
+# Set default
+EXTRA_IMAGECMD_jffs2 = "--pad --eraseblock=0x20000 -n"
+
+#-------------------------------------------------------------------------------
+# Board defaults
+#-------------------------------------------------------------------------------
+# These values are board specific but they seem to be common to a large number
+# of boards so are reasonable defaults.
+SERIAL_CONSOLE = "115200 ttyS0"
+KERNEL_CONSOLE = "ttyS0,115200n8"
+USE_VT = "0"