diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2016-09-22 23:53:00 +1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-23 14:56:39 +0100 |
commit | deba7cac00c9ff72409f021a8aef0a4a4692864d (patch) | |
tree | 9ddecc24cf756b362a20d159da0c878e0342b6ca /meta/conf/machine | |
parent | 8aa8d1459272b1158b415014b89bffbe99cc05c8 (diff) | |
download | poky-deba7cac00c9ff72409f021a8aef0a4a4692864d.tar.gz |
runqemu: Move virtio RNG to machine configuration
Not all QEMU machines (outside of those available in OE-Core) are
capable of using the virtio-rng-pci device due to various machine models
not having a pci/virtio bus. This makes it such that the use of the
'-device virtio-rng-pci' flag to QEMU is machine specific.
This patch removes the general addition of the flag to all runqemu
targets and adds the flag into the QB_OPT_APPEND for all the qemu*
machines in OE-Core that support its use (which is all of them).
(From OE-Core rev: e890c05e66a21702e9e8ccce794b74cb7f5518ed)
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine')
-rw-r--r-- | meta/conf/machine/include/qemuboot-mips.inc | 2 | ||||
-rw-r--r-- | meta/conf/machine/include/qemuboot-x86.inc | 2 | ||||
-rw-r--r-- | meta/conf/machine/qemuarm.conf | 2 | ||||
-rw-r--r-- | meta/conf/machine/qemuarm64.conf | 2 | ||||
-rw-r--r-- | meta/conf/machine/qemuppc.conf | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/meta/conf/machine/include/qemuboot-mips.inc b/meta/conf/machine/include/qemuboot-mips.inc index 0f04b81443..01f8f8bb3b 100644 --- a/meta/conf/machine/include/qemuboot-mips.inc +++ b/meta/conf/machine/include/qemuboot-mips.inc | |||
@@ -3,5 +3,5 @@ IMAGE_CLASSES += "qemuboot" | |||
3 | QB_MEM = "-m 256" | 3 | QB_MEM = "-m 256" |
4 | QB_MACHINE = "-machine malta" | 4 | QB_MACHINE = "-machine malta" |
5 | QB_KERNEL_CMDLINE_APPEND = "console=ttyS0 console=tty" | 5 | QB_KERNEL_CMDLINE_APPEND = "console=ttyS0 console=tty" |
6 | QB_OPT_APPEND = "-vga cirrus -show-cursor -usb -usbdevice tablet" | 6 | QB_OPT_APPEND = "-vga cirrus -show-cursor -usb -usbdevice tablet -device virtio-rng-pci" |
7 | QB_SYSTEM_NAME = "qemu-system-${TUNE_ARCH}" | 7 | QB_SYSTEM_NAME = "qemu-system-${TUNE_ARCH}" |
diff --git a/meta/conf/machine/include/qemuboot-x86.inc b/meta/conf/machine/include/qemuboot-x86.inc index 221cc95052..20e90716db 100644 --- a/meta/conf/machine/include/qemuboot-x86.inc +++ b/meta/conf/machine/include/qemuboot-x86.inc | |||
@@ -11,4 +11,4 @@ QB_CPU_KVM_x86-64 = "-cpu kvm64" | |||
11 | QB_AUDIO_DRV = "alsa" | 11 | QB_AUDIO_DRV = "alsa" |
12 | QB_AUDIO_OPT = "-soundhw ac97,es1370" | 12 | QB_AUDIO_OPT = "-soundhw ac97,es1370" |
13 | QB_KERNEL_CMDLINE_APPEND = "vga=0 uvesafb.mode_option=640x480-32 oprofile.timer=1 uvesafb.task_timeout=-1" | 13 | QB_KERNEL_CMDLINE_APPEND = "vga=0 uvesafb.mode_option=640x480-32 oprofile.timer=1 uvesafb.task_timeout=-1" |
14 | QB_OPT_APPEND = "-vga vmware -show-cursor -usb -usbdevice tablet" | 14 | QB_OPT_APPEND = "-vga vmware -show-cursor -usb -usbdevice tablet -device virtio-rng-pci" |
diff --git a/meta/conf/machine/qemuarm.conf b/meta/conf/machine/qemuarm.conf index 4c5891ab7c..ff1ab7d48f 100644 --- a/meta/conf/machine/qemuarm.conf +++ b/meta/conf/machine/qemuarm.conf | |||
@@ -14,6 +14,6 @@ SERIAL_CONSOLES = "115200;ttyAMA0 115200;ttyAMA1" | |||
14 | QB_SYSTEM_NAME = "qemu-system-arm" | 14 | QB_SYSTEM_NAME = "qemu-system-arm" |
15 | QB_MACHINE = "-machine versatilepb" | 15 | QB_MACHINE = "-machine versatilepb" |
16 | QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0,115200 console=tty" | 16 | QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0,115200 console=tty" |
17 | QB_OPT_APPEND = "-show-cursor -usb -usbdevice tablet" | 17 | QB_OPT_APPEND = "-show-cursor -usb -usbdevice tablet -device virtio-rng-pci" |
18 | PREFERRED_VERSION_linux-yocto ??= "4.8%" | 18 | PREFERRED_VERSION_linux-yocto ??= "4.8%" |
19 | QB_DTB = "${@base_version_less_or_equal('PREFERRED_VERSION_linux-yocto', '4.7', '', 'zImage-versatile-pb.dtb', d)}" | 19 | QB_DTB = "${@base_version_less_or_equal('PREFERRED_VERSION_linux-yocto', '4.7', '', 'zImage-versatile-pb.dtb', d)}" |
diff --git a/meta/conf/machine/qemuarm64.conf b/meta/conf/machine/qemuarm64.conf index da59c338e4..a0920fe0e4 100644 --- a/meta/conf/machine/qemuarm64.conf +++ b/meta/conf/machine/qemuarm64.conf | |||
@@ -15,7 +15,7 @@ QB_MEM = "-m 512" | |||
15 | QB_MACHINE = "-machine virt" | 15 | QB_MACHINE = "-machine virt" |
16 | QB_CPU = "-cpu cortex-a57" | 16 | QB_CPU = "-cpu cortex-a57" |
17 | QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0,38400" | 17 | QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0,38400" |
18 | QB_OPT_APPEND = "-show-cursor" | 18 | QB_OPT_APPEND = "-show-cursor -device virtio-rng-pci" |
19 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no -device virtio-net-device,netdev=net0,mac=@MAC@" | 19 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no -device virtio-net-device,netdev=net0,mac=@MAC@" |
20 | QB_SLIRP_OPT = "-netdev user,id=net0 -device virtio-net-device,netdev=net0" | 20 | QB_SLIRP_OPT = "-netdev user,id=net0 -device virtio-net-device,netdev=net0" |
21 | QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0" | 21 | QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=disk0" |
diff --git a/meta/conf/machine/qemuppc.conf b/meta/conf/machine/qemuppc.conf index e54c3dd18f..3ae33088ea 100644 --- a/meta/conf/machine/qemuppc.conf +++ b/meta/conf/machine/qemuppc.conf | |||
@@ -16,5 +16,5 @@ QB_SYSTEM_NAME = "qemu-system-ppc" | |||
16 | QB_MACHINE = "-machine mac99" | 16 | QB_MACHINE = "-machine mac99" |
17 | QB_CPU = "-cpu G4" | 17 | QB_CPU = "-cpu G4" |
18 | QB_KERNEL_CMDLINE_APPEND = "console=tty console=ttyS0" | 18 | QB_KERNEL_CMDLINE_APPEND = "console=tty console=ttyS0" |
19 | QB_OPT_APPEND = "-show-cursor -usb -usbdevice tablet" | 19 | QB_OPT_APPEND = "-show-cursor -usb -usbdevice tablet -device virtio-rng-pci" |
20 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no -device virtio-net-pci,netdev=net0,mac=@MAC@" | 20 | QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no -device virtio-net-pci,netdev=net0,mac=@MAC@" |