[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/3] hw/i386/Kconfig: Allow to compile Q35 without FDC_ISA
From: |
Thomas Huth |
Subject: |
[PATCH 2/3] hw/i386/Kconfig: Allow to compile Q35 without FDC_ISA |
Date: |
Thu, 25 Apr 2024 20:43:14 +0200 |
The q35 machine can be used without floppy disk controller (FDC),
but due to our current Kconfig setup, the FDC code is still always
included in the binary. To fix this, the "PC" config option should
only imply the "FDC_ISA" instead of always selecting it.
The i440fx and the isa-pc machine currently always instantiate
the FDC, so we have to add the select statements now there instead.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
hw/i386/Kconfig | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/i386/Kconfig b/hw/i386/Kconfig
index a6ee052f9a..0b08580862 100644
--- a/hw/i386/Kconfig
+++ b/hw/i386/Kconfig
@@ -32,7 +32,7 @@ config PC
imply VGA_PCI
imply VIRTIO_VGA
imply NVDIMM
- select FDC_ISA
+ imply FDC_ISA
select I8259
select I8254
select PCKBD
@@ -70,6 +70,7 @@ config I440FX
imply VMPORT
imply VMMOUSE
select ACPI_PIIX4
+ select FDC_ISA
select PC_PCI
select PC_ACPI
select PCI_I440FX
@@ -83,6 +84,7 @@ config ISAPC
bool
imply VGA_ISA
select ISA_BUS
+ select FDC_ISA
select PC
select IDE_ISA
# FIXME: it is in the same file as i440fx, and does not compile
--
2.44.0