aboutsummaryrefslogtreecommitdiffstats
path: root/conf/machine/include/nios2.inc
blob: 53d76e539daa5dd76da2ff9fea3a3ac7104de24a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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"