Skip to content

Commit

Permalink
hw/pci/Makefile.objs: make pcie configurable
Browse files Browse the repository at this point in the history
Make pcie splited from pci and make it configurable.

Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190123065618.3520-30-yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
yangzhon authored and bonzini committed Mar 7, 2019
1 parent 8f01b41 commit e9947d1
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions default-configs/arm-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ CONFIG_VERSATILE=y
CONFIG_VERSATILE_PCI=y
CONFIG_VERSATILE_I2C=y

CONFIG_PCI_EXPRESS=y
CONFIG_PCI_EXPRESS_GENERIC_BRIDGE=y
CONFIG_VFIO_XGMAC=y
CONFIG_VFIO_AMD_XGBE=y
Expand Down
1 change: 1 addition & 0 deletions default-configs/i386-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ CONFIG_ISA_TESTDEV=y
CONFIG_VMPORT=y
CONFIG_SGA=y
CONFIG_LPC_ICH9=y
CONFIG_PCI_EXPRESS=y
CONFIG_PCI_EXPRESS_Q35=y
CONFIG_APIC=y
CONFIG_IOAPIC=y
Expand Down
1 change: 1 addition & 0 deletions default-configs/mips64el-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ CONFIG_JAZZ_LED=y
CONFIG_VT82C686=y
CONFIG_MIPS_BOSTON=y
CONFIG_FITLOADER=y
CONFIG_PCI_EXPRESS=y
CONFIG_PCI_EXPRESS_XILINX=y
1 change: 1 addition & 0 deletions default-configs/ppc-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ CONFIG_ETSEC=y
CONFIG_PPC405=y
CONFIG_PPC440=y
CONFIG_VIRTEX=y
CONFIG_PCI_EXPRESS=y

# For Sam460ex
CONFIG_SAM460EX=y
Expand Down
1 change: 1 addition & 0 deletions default-configs/riscv32-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ CONFIG_VIRTIO_MMIO=y

CONFIG_CADENCE=y

CONFIG_PCI_EXPRESS=y
CONFIG_PCI_EXPRESS_GENERIC_BRIDGE=y

CONFIG_VGA=y
Expand Down
1 change: 1 addition & 0 deletions default-configs/riscv64-softmmu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ CONFIG_VIRTIO_MMIO=y

CONFIG_CADENCE=y

CONFIG_PCI_EXPRESS=y
CONFIG_PCI_EXPRESS_GENERIC_BRIDGE=y

CONFIG_VGA=y
Expand Down
4 changes: 4 additions & 0 deletions hw/pci/Kconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
config PCI
bool

config PCI_EXPRESS
bool
select PCI
9 changes: 7 additions & 2 deletions hw/pci/Makefile.objs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ common-obj-$(CONFIG_PCI) += pci.o pci_bridge.o
common-obj-$(CONFIG_PCI) += msix.o msi.o
common-obj-$(CONFIG_PCI) += shpc.o
common-obj-$(CONFIG_PCI) += slotid_cap.o
common-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
common-obj-$(CONFIG_PCI) += pcie.o pcie_aer.o pcie_port.o
common-obj-$(CONFIG_PCI) += pci_host.o

# The functions in these modules can be used by devices too. Since we
# allow plugging PCIe devices into PCI buses, include them even if
# CONFIG_PCI_EXPRESS=n.
common-obj-$(CONFIG_PCI) += pcie.o pcie_aer.o
common-obj-$(CONFIG_PCI_EXPRESS) += pcie_port.o pcie_host.o

common-obj-$(call lnot,$(CONFIG_PCI)) += pci-stub.o
common-obj-$(CONFIG_ALL) += pci-stub.o

0 comments on commit e9947d1

Please sign in to comment.