summaryrefslogtreecommitdiffstats
path: root/scripts/lib/bsp/substrate/target/arch/mips/conf/machine/machine.conf
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/bsp/substrate/target/arch/mips/conf/machine/machine.conf')
-rw-r--r--scripts/lib/bsp/substrate/target/arch/mips/conf/machine/machine.conf39
1 files changed, 39 insertions, 0 deletions
diff --git a/scripts/lib/bsp/substrate/target/arch/mips/conf/machine/machine.conf b/scripts/lib/bsp/substrate/target/arch/mips/conf/machine/machine.conf
new file mode 100644
index 0000000000..b319d626f4
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/mips/conf/machine/machine.conf
@@ -0,0 +1,39 @@
1# yocto-bsp-filename {{=machine}}.conf
2#@TYPE: Machine
3#@NAME: {{=machine}}
4
5#@DESCRIPTION: Machine configuration for {{=machine}} systems
6
7require conf/machine/include/tune-mips32.inc
8
9MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 serial"
10
11KERNEL_IMAGETYPE = "vmlinux"
12KERNEL_ALT_IMAGETYPE = "vmlinux.bin"
13KERNEL_IMAGE_STRIP_EXTRA_SECTIONS = ".comment"
14
15{{ if kernel_choice == "custom": preferred_kernel = "linux-yocto-custom" }}
16{{ if kernel_choice == "linux-yocto-dev": preferred_kernel = "linux-yocto-dev" }}
17{{ if kernel_choice == "custom" or kernel_choice == "linux-yocto-dev" : }}
18PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}"
19
20{{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel = kernel_choice.split('_')[0] }}
21{{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel_version = kernel_choice.split('_')[1] }}
22{{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": }}
23PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}"
24PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%"
25
26{{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }}
27{{ if xserver == "y": }}
28PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
29XSERVER ?= "xserver-xorg \
30 xf86-input-evdev \
31 xf86-video-fbdev"
32
33SERIAL_CONSOLE = "115200 ttyS0"
34USE_VT ?= "0"
35
36MACHINE_EXTRA_RRECOMMENDS = " kernel-modules"
37
38IMAGE_FSTYPES ?= "jffs2 tar.bz2"
39JFFS2_ERASEBLOCK = "0x10000"