diff options
| author | Tom Zanussi <tom.zanussi@intel.com> | 2012-01-24 00:15:25 -0600 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-22 19:21:14 +0000 |
| commit | f76161b1de427403d0288dc7772907389b56a031 (patch) | |
| tree | bef2e2d2063c47d64aea7872569b93736cb47d94 /scripts/lib/bsp/substrate/target/arch/qemu/conf | |
| parent | af193ae15a2ad2e170d4a9d4bcbfff3e429784f5 (diff) | |
| download | poky-f76161b1de427403d0288dc7772907389b56a031.tar.gz | |
yocto-bsp: add BSP template files
BSP template files for all supported Yocto architectures, plus qemu
versions of the same.
Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Diffstat (limited to 'scripts/lib/bsp/substrate/target/arch/qemu/conf')
| -rw-r--r-- | scripts/lib/bsp/substrate/target/arch/qemu/conf/machine/{{=machine}}.conf | 59 |
1 files changed, 59 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..003ead198c --- /dev/null +++ b/scripts/lib/bsp/substrate/target/arch/qemu/conf/machine/{{=machine}}.conf | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | #@TYPE: Machine | ||
| 2 | #@NAME: {{=machine}} | ||
| 3 | |||
| 4 | #@DESCRIPTION: Machine configuration for {{=machine}} systems | ||
| 5 | |||
| 6 | {{ preferred_kernel = kernel_choice.split('_')[0] }} | ||
| 7 | {{ preferred_kernel_version = kernel_choice.split('_')[1] }} | ||
| 8 | PREFERRED_PROVIDER_virtual/kernel ?= "{{=preferred_kernel}}" | ||
| 9 | PREFERRED_VERSION_{{=preferred_kernel}} ?= "{{=preferred_kernel_version}}%" | ||
| 10 | |||
| 11 | PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" | ||
| 12 | |||
| 13 | {{ input type:"choicelist" name:"qemuarch" prio:"5" msg:"Which qemu architecture would you like to use?" default:"i386" }} | ||
| 14 | {{ input type:"choice" val:"i386" msg:"i386 (32-bit)" }} | ||
| 15 | {{ input type:"choice" val:"x86_64" msg:"x86_64 (64-bit)" }} | ||
| 16 | {{ input type:"choice" val:"arm" msg:"ARM (32-bit)" }} | ||
| 17 | {{ input type:"choice" val:"powerpc" msg:"PowerPC (32-bit)" }} | ||
| 18 | {{ input type:"choice" val:"mips" msg:"MIPS (32-bit)" }} | ||
| 19 | {{ if qemuarch == "i386": }} | ||
| 20 | require conf/machine/include/tune-i586.inc | ||
| 21 | {{ if qemuarch == "x86_64": }} | ||
| 22 | require conf/machine/include/tune-i586.inc | ||
| 23 | {{ if qemuarch == "arm": }} | ||
| 24 | require conf/machine/include/tune-arm926ejs.inc | ||
| 25 | {{ if qemuarch == "powerpc": }} | ||
| 26 | require conf/machine/include/tune-ppc603e.inc | ||
| 27 | {{ if qemuarch == "mips": }} | ||
| 28 | require conf/machine/include/tune-mips32.inc | ||
| 29 | |||
| 30 | require conf/machine/include/qemu.inc | ||
| 31 | |||
| 32 | {{ if qemuarch == "i386" or qemuarch == "x86_64": }} | ||
| 33 | MACHINE_FEATURES += "x86" | ||
| 34 | KERNEL_IMAGETYPE = "bzImage" | ||
| 35 | SERIAL_CONSOLE = "115200 ttyS0" | ||
| 36 | # We bypass swrast but we need it to be present for X to load correctly | ||
| 37 | XSERVER ?= "xserver-xorg \ | ||
| 38 | mesa-dri-driver-swrast \ | ||
| 39 | xf86-input-vmmouse \ | ||
| 40 | xf86-input-keyboard \ | ||
| 41 | xf86-input-evdev \ | ||
| 42 | xf86-video-vmware \ | ||
| 43 | qemugl" | ||
| 44 | GLIBC_ADDONS = "nptl" | ||
| 45 | GLIBC_EXTRA_OECONF = "--with-tls" | ||
| 46 | |||
| 47 | {{ if qemuarch == "arm": }} | ||
| 48 | KERNEL_IMAGETYPE = "zImage" | ||
| 49 | SERIAL_CONSOLE = "115200 ttyAMA0" | ||
| 50 | |||
| 51 | {{ if qemuarch == "powerpc": }} | ||
| 52 | KERNEL_IMAGETYPE = "vmlinux" | ||
| 53 | SERIAL_CONSOLE = "115200 ttyS0" | ||
| 54 | |||
| 55 | {{ if qemuarch == "mips": }} | ||
| 56 | KERNEL_IMAGETYPE = "vmlinux" | ||
| 57 | KERNEL_ALT_IMAGETYPE = "vmlinux.bin" | ||
| 58 | SERIAL_CONSOLE = "115200 ttyS0" | ||
| 59 | MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" | ||
