summaryrefslogtreecommitdiffstats
path: root/scripts/lib/bsp/substrate/target/arch/i386/conf/machine/{{=machine}}.conf
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/bsp/substrate/target/arch/i386/conf/machine/{{=machine}}.conf')
-rw-r--r--scripts/lib/bsp/substrate/target/arch/i386/conf/machine/{{=machine}}.conf67
1 files changed, 67 insertions, 0 deletions
diff --git a/scripts/lib/bsp/substrate/target/arch/i386/conf/machine/{{=machine}}.conf b/scripts/lib/bsp/substrate/target/arch/i386/conf/machine/{{=machine}}.conf
new file mode 100644
index 0000000000..b06ba12497
--- /dev/null
+++ b/scripts/lib/bsp/substrate/target/arch/i386/conf/machine/{{=machine}}.conf
@@ -0,0 +1,67 @@
1#@TYPE: Machine
2#@NAME: {{=machine}}
3
4#@DESCRIPTION: Machine configuration for {{=machine}} systems
5
6{{ if kernel_choice == "custom": preferred_kernel = "linux-yocto-custom" }}
7{{ if kernel_choice == "linux-yocto-dev": preferred_kernel = "linux-yocto-dev" }}
8{{ if kernel_choice == "custom" or kernel_choice == "linux-yocto-dev" : }}
9PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}"
10
11{{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel = kernel_choice.split('_')[0] }}
12{{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": preferred_kernel_version = kernel_choice.split('_')[1] }}
13{{ if kernel_choice != "custom" and kernel_choice != "linux-yocto-dev": }}
14PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}"
15PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%"
16
17{{ input type:"choicelist" name:"tunefile" prio:"40" msg:"Which machine tuning would you like to use?" default:"tune_core2" }}
18{{ input type:"choice" val:"tune_i586" msg:"i586 tuning optimizations" }}
19{{ input type:"choice" val:"tune_atom" msg:"Atom tuning optimizations" }}
20{{ input type:"choice" val:"tune_core2" msg:"Core2 tuning optimizations" }}
21{{ if tunefile == "tune_i586": }}
22require conf/machine/include/tune-i586.inc
23{{ if tunefile == "tune_atom": }}
24require conf/machine/include/tune-atom.inc
25{{ if tunefile == "tune_core2": }}
26require conf/machine/include/tune-core2.inc
27
28require conf/machine/include/ia32-base.inc
29
30MACHINE_FEATURES += "wifi efi pcbios"
31
32{{ input type:"boolean" name:"xserver" prio:"50" msg:"Do you need support for X? (y/n)" default:"y" }}
33
34{{ if xserver == "y" and (kernel_choice == "linux-yocto_3.4" or kernel_choice == "linux-yocto_3.10"): }}
35{{ input type:"choicelist" name:"xserver_choice" prio:"50" msg:"Please select an xserver for this machine:" default:"xserver_i915" }}
36{{ input type:"choice" val:"xserver_vesa" msg:"VESA xserver support" }}
37{{ input type:"choice" val:"xserver_i915" msg:"i915 xserver support" }}
38{{ input type:"choice" val:"xserver_i965" msg:"i965 xserver support" }}
39
40{{ if xserver == "y" and kernel_choice == "custom": }}
41{{ input type:"choicelist" name:"xserver_choice" prio:"50" msg:"Please select an xserver for this machine:" default:"xserver_i915" }}
42{{ input type:"choice" val:"xserver_vesa" msg:"VESA xserver support" }}
43{{ input type:"choice" val:"xserver_i915" msg:"i915 xserver support" }}
44{{ input type:"choice" val:"xserver_i965" msg:"i965 xserver support" }}
45
46{{ if xserver == "y" and kernel_choice != "linux-yocto_3.4" and kernel_choice != "linux-yocto_3.10" and kernel_choice != "custom": xserver_choice = "xserver_i915" }}
47
48{{ if xserver == "y": }}
49XSERVER ?= "${XSERVER_IA32_BASE} \
50 ${XSERVER_IA32_EXT} \
51{{ if xserver == "y" and xserver_choice == "xserver_vesa": }}
52 ${XSERVER_IA32_VESA} \
53{{ if xserver == "y" and xserver_choice == "xserver_i915": }}
54 ${XSERVER_IA32_I915} \
55{{ if xserver == "y" and xserver_choice == "xserver_i965": }}
56 ${XSERVER_IA32_I965} \
57{{ if xserver == "y": }}
58 "
59
60MACHINE_EXTRA_RRECOMMENDS += "linux-firmware v86d"
61
62GLIBC_ADDONS = "nptl"
63
64EXTRA_OECONF_append_pn-matchbox-panel-2 = " --with-battery=acpi"
65
66{{ if xserver == "y" and xserver_choice == "xserver_vesa": }}
67APPEND += "video=vesafb vga=0x318"