]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
hw/isa: Introduce a CONFIG_ISA_SUPERIO switch for isa-superio.c
authorThomas Huth <thuth@redhat.com>
Mon, 30 Sep 2019 15:04:36 +0000 (17:04 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Oct 2019 16:49:16 +0000 (18:49 +0200)
Currently, isa-superio.c is always compiled as soon as CONFIG_ISA_BUS
is enabled. But there are also machines that have an ISA BUS without
any of the superio chips attached to it, so we should not compile
isa-superio.c in case we only compile a QEMU for such a machine.
Thus add a proper CONFIG_ISA_SUPERIO switch so that this file only gets
compiled when we really, really need it.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/isa/Kconfig
hw/isa/Makefile.objs
hw/mips/Kconfig

index 6db0d7970c956ff5c4d78d9096ef6b1ea7427ae9..98a289957ec2f0819e6926c6fdea6bc491aa34e6 100644 (file)
@@ -13,9 +13,13 @@ config I82378
     select MC146818RTC
     select PCSPK
 
-config PC87312
+config ISA_SUPERIO
     bool
     select ISA_BUS
+
+config PC87312
+    bool
+    select ISA_SUPERIO
     select I8259
     select I8254
     select I8257
@@ -34,14 +38,14 @@ config PIIX4
 
 config VT82C686
     bool
-    select ISA_BUS
+    select ISA_SUPERIO
     select ACPI_SMBUS
     select SERIAL_ISA
     select FDC
 
 config SMC37C669
     bool
-    select ISA_BUS
+    select ISA_SUPERIO
     select SERIAL_ISA
     select PARALLEL
     select FDC
index 9e106df186382e81563dc313b2c7c0edd5624243..ff974855045c6331b750462d571d4d0a997f1619 100644 (file)
@@ -1,5 +1,5 @@
 common-obj-$(CONFIG_ISA_BUS) += isa-bus.o
-common-obj-$(CONFIG_ISA_BUS) += isa-superio.o
+common-obj-$(CONFIG_ISA_SUPERIO) += isa-superio.o
 common-obj-$(CONFIG_APM) += apm.o
 common-obj-$(CONFIG_I82378) += i82378.o
 common-obj-$(CONFIG_PC87312) += pc87312.o
index 62aa01b29ec46c5627f9981b66ba2aaad03ead7b..2c2adbc42a250295cf4e45156846a88de03d12a4 100644 (file)
@@ -13,6 +13,7 @@ config R4K
 
 config MALTA
     bool
+    select ISA_SUPERIO
 
 config MIPSSIM
     bool