]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/char/parallel: Make it possible to compile also without CONFIG_PARALLEL
authorThomas Huth <thuth@redhat.com>
Mon, 11 Mar 2019 09:50:54 +0000 (10:50 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 Mar 2019 08:39:57 +0000 (09:39 +0100)
For the downstream distribution of QEMU, we want to compile without
CONFIG_PARALLEL. Commit 9157eee1b1c076ff3 already moved the function
parallel_hds_isa_init() (which is still required for linking) into a file
that is included anyway, but commit bb3d5ea858e7f888563a moved it
to a separate file which is only compiled again if CONFIG_PARALLEL is
set. To be able to link QEMU again without CONFIG_PARALLEL, the file
should be considered for linking for all targets that have CONFIG_ISA_BUS.
And while we're at it, add a proper comment in there with the rationale
for the separate file.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1552297854-25847-1-git-send-email-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/char/Makefile.objs
hw/char/parallel-isa.c
hw/i386/Kconfig
hw/sparc64/Kconfig

index c4947d7ae7b4d4c44455193c1941f88c6697db79..cf086e7114b426b337f0c216677b9b3ae2d18545 100644 (file)
@@ -2,7 +2,7 @@ common-obj-$(CONFIG_IPACK) += ipoctal232.o
 common-obj-$(CONFIG_ESCC) += escc.o
 common-obj-$(CONFIG_NRF51_SOC) += nrf51_uart.o
 common-obj-$(CONFIG_PARALLEL) += parallel.o
-common-obj-$(CONFIG_PARALLEL) += parallel-isa.o
+common-obj-$(CONFIG_ISA_BUS) += parallel-isa.o
 common-obj-$(CONFIG_PL011) += pl011.o
 common-obj-$(CONFIG_SERIAL) += serial.o
 common-obj-$(CONFIG_SERIAL_ISA) += serial-isa.o
index 639e179585406a9a1399dd729a106a8f205f0f27..a043832e728fcc47493f88e1786db31315e1e0cd 100644 (file)
@@ -1,6 +1,9 @@
 /*
  * QEMU Parallel PORT (ISA bus helpers)
  *
+ * These functions reside in a separate file since they also might be
+ * required for linking when compiling QEMU without CONFIG_PARALLEL.
+ *
  * Copyright (c) 2003 Fabrice Bellard
  *
  * SPDX-License-Identifier: MIT
index 78fd70396a686cc2ce45b8c0a85e85c5f5342b7c..4e4415fc88e45fec1a78ace32e0687b5a2285ac7 100644 (file)
@@ -9,6 +9,7 @@ config PC
     imply ISA_IPMI_KCS
     imply ISA_IPMI_BT
     imply ISA_DEBUG
+    imply PARALLEL
     imply PCI_DEVICES
     imply PVPANIC
     imply QXL
@@ -25,8 +26,6 @@ config PC
     select I82374
     select I8257
     select MC146818RTC
-    # Needed by the board code:
-    select PARALLEL
     # For ACPI builder:
     select SERIAL_ISA
     select ACPI_VMGENID
index 4a8166ebb7180c712960ad4cf81687b4ee703f4b..d4d76a89be4f01bb23af8800fea40dd566304eb9 100644 (file)
@@ -3,13 +3,13 @@ config SUN4U
     imply PCI_DEVICES
     imply SUNHME
     imply TEST_DEVICES
+    imply PARALLEL
     select M48T59
     select ISA_BUS
     select FDC
     select SERIAL_ISA
     select PCI_SABRE
     select IDE_CMD646
-    select PARALLEL
     select PCKBD
     select SIMBA