summaryrefslogtreecommitdiffstats
path: root/scripts/lib/bsp/substrate/target/arch/powerpc/conf/machine/{{=machine}}.conf
blob: 52a5a8abfb7acbc74932f0e2765f66703a7f4507 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#@TYPE: Machine
#@NAME: {{=machine}}

#@DESCRIPTION: Machine configuration for {{=machine}} systems

TARGET_FPU = ""

{{ input type:"choicelist" name:"tunefile" prio:"40" msg:"Which machine tuning would you like to use?" default:"tune_ppc603e" }}
{{ input type:"choice" val:"tune_ppc603e" msg:"ppc603e tuning optimizations" }}
{{ input type:"choice" val:"tune_ppce300c2" msg:"ppce300c2 tuning optimizations" }}
{{ input type:"choice" val:"tune_ppce500" msg:"ppce500 tuning optimizations" }}
{{ input type:"choice" val:"tune_ppce500mc" msg:"ppce500mc tuning optimizations" }}
{{ input type:"choice" val:"tune_ppce500v2" msg:"ppce500v2 tuning optimizations" }}
{{ input type:"choice" val:"tune_ppce5500_32b" msg:"ppce5500-32b tuning optimizations" }}
{{ input type:"choice" val:"tune_ppce5500_64b" msg:"ppce5500-64b tuning optimizations" }}
{{ if tunefile == "tune_ppc603e": }}
include conf/machine/include/tune-ppc603e.inc
{{ if tunefile == "tune_ppce300c2": }}
include conf/machine/include/tune-ppce300c2.inc
{{ if tunefile == "tune_ppce500": }}
include conf/machine/include/tune-ppce500.inc
{{ if tunefile == "tune_ppce500mc": }}
include conf/machine/include/tune-ppce500mc.inc
{{ if tunefile == "tune_ppce500v2": }}
include conf/machine/include/tune-ppce500v2.inc
{{ if tunefile == "tune_ppce5500_32b": }}
include conf/machine/include/tune-ppce5500-32b.inc
{{ if tunefile == "tune_ppce5500_64b": }}
include conf/machine/include/tune-ppce5500-64b.inc

KERNEL_IMAGETYPE = "uImage"

SERIAL_CONSOLE = "115200 ttyS0"

MACHINE_FEATURES = "keyboard pci ext2 ext3 serial"

{{ if kernel_choice == "custom": preferred_kernel = "linux-yocto-custom" }}
{{ if kernel_choice == "custom": }}
PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}"

{{ if kernel_choice != "custom": preferred_kernel = kernel_choice.split('_')[0] }}
{{ if kernel_choice != "custom": preferred_kernel_version = kernel_choice.split('_')[1] }}
{{ if kernel_choice != "custom": }}
PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}"
PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%"

{{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }}
{{ if xserver == "y": }}
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
XSERVER = "xserver-xorg \
           xf86-input-evdev \
           xf86-video-fbdev"

{{ input type:"edit" name:"uboot_entrypoint" prio:"40" msg:"Please specify a value for UBOOT_ENTRYPOINT:" default:"0x00000000" }}
UBOOT_ENTRYPOINT = "{{=uboot_entrypoint}}"

{{ input type:"edit" name:"kernel_devicetree" prio:"40" msg:"Please specify a [arch/powerpc/boot/dts/xxx] value for KERNEL_DEVICETREE:" default:"mpc8315erdb.dts" }}
KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/{{=kernel_devicetree}}"

MACHINE_EXTRA_RRECOMMENDS = " kernel-modules"