diff options
Diffstat (limited to 'scripts/lib/bsp/substrate/target/arch/qemu/conf/machine/machine.conf')
-rw-r--r-- | scripts/lib/bsp/substrate/target/arch/qemu/conf/machine/machine.conf | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/scripts/lib/bsp/substrate/target/arch/qemu/conf/machine/machine.conf b/scripts/lib/bsp/substrate/target/arch/qemu/conf/machine/machine.conf new file mode 100644 index 0000000000..52f1866b5b --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/qemu/conf/machine/machine.conf | |||
@@ -0,0 +1,70 @@ | |||
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 | {{ if qemuarch == "i386" or qemuarch == "x86_64": }} | ||
19 | PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" | ||
20 | PREFERRED_PROVIDER_virtual/libgl ?= "mesa" | ||
21 | PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa" | ||
22 | PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa" | ||
23 | |||
24 | {{ input type:"choicelist" name:"qemuarch" prio:"5" msg:"Which qemu architecture would you like to use?" default:"i386" }} | ||
25 | {{ input type:"choice" val:"i386" msg:"i386 (32-bit)" }} | ||
26 | {{ input type:"choice" val:"x86_64" msg:"x86_64 (64-bit)" }} | ||
27 | {{ input type:"choice" val:"arm" msg:"ARM (32-bit)" }} | ||
28 | {{ input type:"choice" val:"powerpc" msg:"PowerPC (32-bit)" }} | ||
29 | {{ input type:"choice" val:"mips" msg:"MIPS (32-bit)" }} | ||
30 | {{ if qemuarch == "i386": }} | ||
31 | require conf/machine/include/qemu.inc | ||
32 | require conf/machine/include/tune-i586.inc | ||
33 | {{ if qemuarch == "x86_64": }} | ||
34 | require conf/machine/include/qemu.inc | ||
35 | DEFAULTTUNE ?= "core2-64" | ||
36 | require conf/machine/include/tune-core2.inc | ||
37 | {{ if qemuarch == "arm": }} | ||
38 | require conf/machine/include/qemu.inc | ||
39 | require conf/machine/include/tune-arm926ejs.inc | ||
40 | {{ if qemuarch == "powerpc": }} | ||
41 | require conf/machine/include/qemu.inc | ||
42 | require conf/machine/include/tune-ppc7400.inc | ||
43 | {{ if qemuarch == "mips": }} | ||
44 | require conf/machine/include/qemu.inc | ||
45 | require conf/machine/include/tune-mips32.inc | ||
46 | |||
47 | {{ if qemuarch == "i386" or qemuarch == "x86_64": }} | ||
48 | MACHINE_FEATURES += "x86" | ||
49 | KERNEL_IMAGETYPE = "bzImage" | ||
50 | SERIAL_CONSOLE = "115200 ttyS0" | ||
51 | XSERVER = "xserver-xorg \ | ||
52 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast', '', d)} \ | ||
53 | xf86-input-vmmouse \ | ||
54 | xf86-input-keyboard \ | ||
55 | xf86-input-evdev \ | ||
56 | xf86-video-vmware" | ||
57 | |||
58 | {{ if qemuarch == "arm": }} | ||
59 | KERNEL_IMAGETYPE = "zImage" | ||
60 | SERIAL_CONSOLE = "115200 ttyAMA0" | ||
61 | |||
62 | {{ if qemuarch == "powerpc": }} | ||
63 | KERNEL_IMAGETYPE = "vmlinux" | ||
64 | SERIAL_CONSOLE = "115200 ttyS0" | ||
65 | |||
66 | {{ if qemuarch == "mips": }} | ||
67 | KERNEL_IMAGETYPE = "vmlinux" | ||
68 | KERNEL_ALT_IMAGETYPE = "vmlinux.bin" | ||
69 | SERIAL_CONSOLE = "115200 ttyS0" | ||
70 | MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" | ||