hw/ppc/spapr_rng: Introduce CONFIG_SPAPR_RNG switch for spapr_rng.c
commit0e947a89ce5911ccc92972e4057dfe7d0643e8f7
authorThomas Huth <thuth@redhat.com>
Mon, 8 Oct 2018 12:39:42 +0000 (8 14:39 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 8 Nov 2018 01:04:40 +0000 (8 12:04 +1100)
treeba0bbc9795430f75980419bc021fe59988ccc7c3
parent73785b329e12bddae32201e4e1d84e0909c21364
hw/ppc/spapr_rng: Introduce CONFIG_SPAPR_RNG switch for spapr_rng.c

The spapr-rng device is suboptimal when compared to virtio-rng, so
users might want to disable it in their builds. Thus let's introduce
a proper CONFIG switch to allow us to compile QEMU without this device.
The function spapr_rng_populate_dt is required for linking, so move it
to a different location.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
default-configs/ppc64-softmmu.mak
hw/ppc/Makefile.objs
hw/ppc/spapr.c
hw/ppc/spapr_rng.c
include/hw/ppc/spapr.h