diff options
Diffstat (limited to 'scripts/lib/bsp/substrate/target/arch/x86_64/conf/machine/machine.conf')
-rw-r--r-- | scripts/lib/bsp/substrate/target/arch/x86_64/conf/machine/machine.conf | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/scripts/lib/bsp/substrate/target/arch/x86_64/conf/machine/machine.conf b/scripts/lib/bsp/substrate/target/arch/x86_64/conf/machine/machine.conf new file mode 100644 index 0000000000..e4b825104f --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/x86_64/conf/machine/machine.conf | |||
@@ -0,0 +1,65 @@ | |||
1 | # 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" : }} | ||
10 | PREFERRED_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": }} | ||
15 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
16 | PREFERRED_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_core2" msg:"Core2 tuning optimizations" }} | ||
20 | {{ input type:"choice" val:"tune_corei7" msg:"Corei7 tuning optimizations" }} | ||
21 | {{ if tunefile == "tune_core2": }} | ||
22 | DEFAULTTUNE ?= "core2-64" | ||
23 | require conf/machine/include/tune-core2.inc | ||
24 | {{ if tunefile == "tune_corei7": }} | ||
25 | DEFAULTTUNE ?= "corei7-64" | ||
26 | require conf/machine/include/tune-corei7.inc | ||
27 | |||
28 | require conf/machine/include/x86-base.inc | ||
29 | |||
30 | MACHINE_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": }} | ||
35 | {{ input type:"choicelist" name:"xserver_choice" prio:"50" msg:"Please select an xserver for this machine:" default:"xserver_i915" }} | ||
36 | |||
37 | {{ input type:"choice" val:"xserver_vesa" msg:"VESA xserver support" }} | ||
38 | {{ input type:"choice" val:"xserver_i915" msg:"i915 xserver support" }} | ||
39 | {{ input type:"choice" val:"xserver_i965" msg:"i965 xserver support" }} | ||
40 | {{ input type:"choice" val:"xserver_fbdev" msg:"fbdev xserver support" }} | ||
41 | {{ input type:"choice" val:"xserver_modesetting" msg:"modesetting xserver support" }} | ||
42 | {{ if xserver == "y": }} | ||
43 | XSERVER ?= "${XSERVER_X86_BASE} \ | ||
44 | ${XSERVER_X86_EXT} \ | ||
45 | {{ if xserver == "y" and xserver_choice == "xserver_vesa": }} | ||
46 | ${XSERVER_X86_VESA} \ | ||
47 | {{ if xserver == "y" and xserver_choice == "xserver_i915": }} | ||
48 | ${XSERVER_X86_I915} \ | ||
49 | {{ if xserver == "y" and xserver_choice == "xserver_i965": }} | ||
50 | ${XSERVER_X86_I965} \ | ||
51 | {{ if xserver == "y" and xserver_choice == "xserver_fbdev": }} | ||
52 | ${XSERVER_X86_FBDEV} \ | ||
53 | {{ if xserver == "y" and xserver_choice == "xserver_modesetting": }} | ||
54 | ${XSERVER_X86_MODESETTING} \ | ||
55 | {{ if xserver == "y": }} | ||
56 | " | ||
57 | |||
58 | MACHINE_EXTRA_RRECOMMENDS += "linux-firmware v86d eee-acpi-scripts" | ||
59 | |||
60 | EXTRA_OECONF_append_pn-matchbox-panel-2 = " --with-battery=acpi" | ||
61 | |||
62 | GLIBC_ADDONS = "nptl" | ||
63 | |||
64 | {{ if xserver == "y" and xserver_choice == "xserver_vesa": }} | ||
65 | APPEND += "video=vesafb vga=0x318" | ||