hw/ppc/Kconfig: Add dependency PEGASOS2 -> ATI_VGA
commitd1751d8b5d9bb0eb876c8b7226b18c1d6eedd179
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 14 May 2021 09:53:20 +0000 (14 11:53 +0200)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 20 Jul 2021 18:10:20 +0000 (20 20:10 +0200)
treec0e3f4c925178de70863009e80e08b37c2a6e694
parentba4253cef26ba612d3a4413744c86c625e46bb2c
hw/ppc/Kconfig: Add dependency PEGASOS2 -> ATI_VGA

The ATI VGA device isn't a requisite for the Pegasos2 machine
because Linux only uses the serial console; see commit ba7e5ac18e7
("hw/ppc: Add emulation of Genesi/bPlan Pegasos II") for rationale.

Using the default devices we don't have any problem:

  $ qemu-system-ppc -M pegasos2
  qemu-system-ppc: standard VGA not available

But when trying to explicitly use the ATI device we get an error:

  $ qemu-system-ppc -M pegasos2 -vga none -bios pegasos2.rom -device ati-vga,romfile=
  qemu-system-ppc: -device ati-vga,romfile=: 'ati-vga' is not a valid device model name

Add it as an implicit Kconfig dependency.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210515173716.358295-13-philmd@redhat.com>
Acked-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/Kconfig