hw/riscv/Kconfig: Add missing dependency MICROCHIP_PFSOC -> SERIAL
commit8cbb537ea979c5312cbcb2770d1afae3779be7a1
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 13 May 2021 05:50:27 +0000 (13 07:50 +0200)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 20 Jul 2021 13:32:34 +0000 (20 15:32 +0200)
treea785fc7ef1593f00c55976209ed3b9e5da38cf67
parentee9ffe0c8efac4f194aed288563949b09705b0de
hw/riscv/Kconfig: Add missing dependency MICROCHIP_PFSOC -> SERIAL

Commit a8fb0a500a6 ("hw/char: Add Microchip PolarFire SoC MMUART
emulation") added a dependency on the SERIAL model, but forgot to
add the Kconfig selector.
Add the dependency to the MCHP_PFSOC_MMUART symbol to fix when
building the MICROCHIP_PFSOC machine stand-alone:

  /usr/bin/ld: libcommon.fa.p/hw_char_mchp_pfsoc_mmuart.c.o: in function `mchp_pfsoc_mmuart_create':
  hw/char/mchp_pfsoc_mmuart.c:79: undefined reference to `serial_mm_init'

Fixes: a8fb0a500a6 ("hw/char: Add Microchip PolarFire SoC MMUART emulation")
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210515173716.358295-7-philmd@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
hw/char/Kconfig