Skip to contentSkip to conversation

hw/i386: Move CONFIG_ACPI_PCI to CONFIG_PC

PATCH Applied Cole Robinson 2 participants 2 messages Sep 9, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/i386: Move CONFIG_ACPI_PCI to CONFIG_PC

CONFIG_ACPI_PCI is a hard requirement of acpi-build.c, which is built unconditionally for x86 target. Putting it in default-configs/ suggests that it can be easily disabled, which isn't true.

Relocate the symbol with the other acpi-build.c requirements, under 'config PC'. This is similar to what is done for the arm 'virt' machine type and CONFIG_ACPI_PCI

---
 default-configs/i386-softmmu.mak | 1 -
 hw/i386/Kconfig                  | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
default-configs/i386-softmmu.mak +0 -1
index cd5ea391e8..ba3fb3ff50 100644
@@ -25,4 +25,3 @@
 CONFIG_ISAPC=y
 CONFIG_I440FX=y
 CONFIG_Q35=y
-CONFIG_ACPI_PCI=y
hw/i386/Kconfig +1 -0
index 6350438036..c7a9d6315c 100644
@@ -29,6 +29,7 @@ config PC
     select MC146818RTC
     # For ACPI builder:
     select SERIAL_ISA
+    select ACPI_PCI
     select ACPI_VMGENID
     select VIRTIO_PMEM_SUPPORTED
 
Signature · 1 line
2.21.0
#1 lore raw
Quoted 29 lines · Cole Robinson

CONFIG_ACPI_PCI is a hard requirement of acpi-build.c, which is built unconditionally for x86 target. Putting it in default-configs/ suggests that it can be easily disabled, which isn't true.

Relocate the symbol with the other acpi-build.c requirements, under 'config PC'. This is similar to what is done for the arm 'virt' machine type and CONFIG_ACPI_PCI

---
 default-configs/i386-softmmu.mak | 1 -
 hw/i386/Kconfig                  | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
default-configs/i386-softmmu.mak +0 -1
index cd5ea391e8..ba3fb3ff50 100644
@@ -25,4 +25,3 @@
 CONFIG_ISAPC=y
 CONFIG_I440FX=y
 CONFIG_Q35=y
-CONFIG_ACPI_PCI=y
hw/i386/Kconfig +0 -0
index 6350438036..c7a9d6315c 100644

hw/i386/Kconfig config PC · line 35

Quoted 7 lines
hw/i386/Kconfig +1 -0
@@ -29,6 +29,7 @@ config PC
     select MC146818RTC
     # For ACPI builder:
     select SERIAL_ISA
+    select ACPI_PCI
     select ACPI_VMGENID
     select VIRTIO_PMEM_SUPPORTED
 

Queued, thanks.

Paolo