blob: d5abe4f61347fc2e65ad63bda8628841e4449ab8 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001# yocto-bsp-filename {{=machine}}.conf
2#@TYPE: Machine
3#@NAME: {{=machine}}
4
5#@DESCRIPTION: Machine configuration for {{=machine}} systems
6
7{{ if kernel_choice == "custom": preferred_kernel = "linux-yocto-custom" }}
8{{ if kernel_choice == "linux-yocto-dev": preferred_kernel = "linux-yocto-dev" }}
9{{ if kernel_choice == "custom" or kernel_choice == "linux-yocto-dev" : }}
10PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}"
11
12{{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel = kernel_choice.split('_')[0] }}
13{{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel_version = kernel_choice.split('_')[1] }}
14{{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": }}
15PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}"
16PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%"
17
18{{ input type:"choicelist" name:"tunefile" prio:"40" msg:"Which machine tuning would you like to use?" default:"tune_core2" }}
19{{ input type:"choice" val:"tune_i586" msg:"i586 tuning optimizations" }}
20{{ input type:"choice" val:"tune_atom" msg:"Atom tuning optimizations" }}
21{{ input type:"choice" val:"tune_core2" msg:"Core2 tuning optimizations" }}
22{{ if tunefile == "tune_i586": }}
23require conf/machine/include/tune-i586.inc
24{{ if tunefile == "tune_atom": }}
25require conf/machine/include/tune-atom.inc
26{{ if tunefile == "tune_core2": }}
27DEFAULTTUNE="core2-32"
28require conf/machine/include/tune-core2.inc
29
30require conf/machine/include/x86-base.inc
31
32MACHINE_FEATURES += "wifi efi pcbios"
33
34{{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }}
35
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050036{{ if xserver == "y" and (kernel_choice == "linux-yocto_4.4" or kernel_choice == "linux-yocto_4.1"): }}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050037{{ input type:"choicelist" name:"xserver_choice" prio:"50" msg:"Please select an xserver for this machine:" default:"xserver_vesa" }}
38{{ input type:"choice" val:"xserver_vesa" msg:"VESA xserver support" }}
39{{ input type:"choice" val:"xserver_i915" msg:"i915 xserver support" }}
40{{ input type:"choice" val:"xserver_i965" msg:"i965 xserver support" }}
41{{ input type:"choice" val:"xserver_fbdev" msg:"fbdev xserver support" }}
42{{ input type:"choice" val:"xserver_modesetting" msg:"modesetting xserver support" }}
43
44{{ if xserver == "y" and kernel_choice == "custom": }}
45{{ input type:"choicelist" name:"xserver_choice" prio:"50" msg:"Please select an xserver for this machine:" default:"xserver_vesa" }}
46{{ input type:"choice" val:"xserver_vesa" msg:"VESA xserver support" }}
47{{ input type:"choice" val:"xserver_i915" msg:"i915 xserver support" }}
48{{ input type:"choice" val:"xserver_i965" msg:"i965 xserver support" }}
49{{ input type:"choice" val:"xserver_fbdev" msg:"fbdev xserver support" }}
50{{ input type:"choice" val:"xserver_modesetting" msg:"modesetting xserver support" }}
51
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050052{{ if xserver == "y" and kernel_choice != "linux-yocto_4.4" and kernel_choice != "linux-yocto_4.1" and kernel_choice != "custom": xserver_choice = "xserver_i915" }}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050053
54{{ if xserver == "y": }}
55XSERVER ?= "${XSERVER_X86_BASE} \
56 ${XSERVER_X86_EXT} \
57{{ if xserver == "y" and xserver_choice == "xserver_vesa": }}
58 ${XSERVER_X86_VESA} \
59{{ if xserver == "y" and xserver_choice == "xserver_i915": }}
60 ${XSERVER_X86_I915} \
61{{ if xserver == "y" and xserver_choice == "xserver_i965": }}
62 ${XSERVER_X86_I965} \
63{{ if xserver == "y" and xserver_choice == "xserver_fbdev": }}
64 ${XSERVER_X86_FBDEV} \
65{{ if xserver == "y" and xserver_choice == "xserver_modesetting": }}
66 ${XSERVER_X86_MODESETTING} \
67{{ if xserver == "y": }}
68 "
69
70MACHINE_EXTRA_RRECOMMENDS += "linux-firmware v86d eee-acpi-scripts"
71
72EXTRA_OECONF_append_pn-matchbox-panel-2 = " --with-battery=acpi"
73
74GLIBC_ADDONS = "nptl"
75
76{{ if xserver == "y" and xserver_choice == "xserver_vesa": }}
77APPEND += "video=vesafb vga=0x318"