Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 | {{ input type:"choice" val:"mips64" msg:"MIPS64 (64-bit)" }} |
| 31 | {{ if qemuarch == "i386": }} |
| 32 | require conf/machine/include/qemu.inc |
| 33 | require conf/machine/include/tune-i586.inc |
| 34 | {{ if qemuarch == "x86_64": }} |
| 35 | require conf/machine/include/qemu.inc |
| 36 | DEFAULTTUNE ?= "core2-64" |
| 37 | require conf/machine/include/tune-core2.inc |
| 38 | {{ if qemuarch == "arm": }} |
| 39 | require conf/machine/include/qemu.inc |
| 40 | require conf/machine/include/tune-arm926ejs.inc |
| 41 | {{ if qemuarch == "powerpc": }} |
| 42 | require conf/machine/include/qemu.inc |
| 43 | require conf/machine/include/tune-ppc7400.inc |
| 44 | {{ if qemuarch == "mips": }} |
| 45 | require conf/machine/include/qemu.inc |
| 46 | require conf/machine/include/tune-mips32.inc |
| 47 | {{ if qemuarch == "mips64": }} |
| 48 | require conf/machine/include/qemu.inc |
| 49 | require conf/machine/include/tune-mips64.inc |
| 50 | |
| 51 | {{ if qemuarch == "i386" or qemuarch == "x86_64": }} |
| 52 | MACHINE_FEATURES += "x86" |
| 53 | KERNEL_IMAGETYPE = "bzImage" |
| 54 | SERIAL_CONSOLE = "115200 ttyS0" |
| 55 | XSERVER = "xserver-xorg \ |
| 56 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast', '', d)} \ |
| 57 | xf86-input-vmmouse \ |
| 58 | xf86-input-keyboard \ |
| 59 | xf86-input-evdev \ |
| 60 | xf86-video-vmware" |
| 61 | |
| 62 | {{ if qemuarch == "arm": }} |
| 63 | KERNEL_IMAGETYPE = "zImage" |
| 64 | SERIAL_CONSOLE = "115200 ttyAMA0" |
| 65 | |
| 66 | {{ if qemuarch == "powerpc": }} |
| 67 | KERNEL_IMAGETYPE = "vmlinux" |
| 68 | SERIAL_CONSOLE = "115200 ttyS0" |
| 69 | |
| 70 | {{ if qemuarch == "mips" or qemuarch == "mips64": }} |
| 71 | KERNEL_IMAGETYPE = "vmlinux" |
| 72 | KERNEL_ALT_IMAGETYPE = "vmlinux.bin" |
| 73 | SERIAL_CONSOLE = "115200 ttyS0" |
| 74 | MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" |