diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-09-23 18:25:06 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-24 22:32:49 +0100 |
commit | b6b985a22393931adef3412e726832848c41ce64 (patch) | |
tree | c107412df4fdfee0dcf9afd8f3a11a9519362922 /meta/classes/qemuboot.bbclass | |
parent | 6890a23a18e9c470c27854ec38e47030fdb2f0ed (diff) | |
download | poky-b6b985a22393931adef3412e726832848c41ce64.tar.gz |
qemuboot: Add QB_RNG variable
RNG passthru has been enabled on all qemu machines but its being added
to each one of them, with this patch its turned into QB variables which
defaults to host passthru, yet it can be overridden if needed via
machine or config metadata if needed.
(From OE-Core rev: 26dd24506ef36088e17f999ce5489dc4b72194e8)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/qemuboot.bbclass')
-rw-r--r-- | meta/classes/qemuboot.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass index d8f62ef6ea..824676216e 100644 --- a/meta/classes/qemuboot.bbclass +++ b/meta/classes/qemuboot.bbclass | |||
@@ -29,6 +29,9 @@ | |||
29 | # QB_AUDIO_OPT: qemu audio option, e.g., "-soundhw ac97,es1370", used | 29 | # QB_AUDIO_OPT: qemu audio option, e.g., "-soundhw ac97,es1370", used |
30 | # when QB_AUDIO_DRV is set. | 30 | # when QB_AUDIO_DRV is set. |
31 | # | 31 | # |
32 | # QB_RNG: Pass-through for host random number generator, it can speedup boot | ||
33 | # in system mode, where system is experiencing entropy starvation | ||
34 | # | ||
32 | # QB_KERNEL_ROOT: kernel's root, e.g., /dev/vda | 35 | # QB_KERNEL_ROOT: kernel's root, e.g., /dev/vda |
33 | # | 36 | # |
34 | # QB_NETWORK_DEVICE: network device, e.g., "-device virtio-net-pci,netdev=net0,mac=@MAC@", | 37 | # QB_NETWORK_DEVICE: network device, e.g., "-device virtio-net-pci,netdev=net0,mac=@MAC@", |
@@ -77,6 +80,7 @@ QB_MEM ?= "-m 256" | |||
77 | QB_SERIAL_OPT ?= "-serial mon:stdio -serial null" | 80 | QB_SERIAL_OPT ?= "-serial mon:stdio -serial null" |
78 | QB_DEFAULT_KERNEL ?= "${KERNEL_IMAGETYPE}" | 81 | QB_DEFAULT_KERNEL ?= "${KERNEL_IMAGETYPE}" |
79 | QB_DEFAULT_FSTYPE ?= "ext4" | 82 | QB_DEFAULT_FSTYPE ?= "ext4" |
83 | QB_RNG ?= "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0" | ||
80 | QB_OPT_APPEND ?= "" | 84 | QB_OPT_APPEND ?= "" |
81 | QB_NETWORK_DEVICE ?= "-device virtio-net-pci,netdev=net0,mac=@MAC@" | 85 | QB_NETWORK_DEVICE ?= "-device virtio-net-pci,netdev=net0,mac=@MAC@" |
82 | QB_CMDLINE_IP_SLIRP ?= "ip=dhcp" | 86 | QB_CMDLINE_IP_SLIRP ?= "ip=dhcp" |