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