pci: Build hw/pci/pci-hmp-cmds.c only when CONFIG_PCI
commitc2c139749733545516ffff0b54f949bb3343711f
authorMarkus Armbruster <armbru@redhat.com>
Thu, 1 Dec 2022 12:11:25 +0000 (1 13:11 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 19 Dec 2022 15:21:56 +0000 (19 16:21 +0100)
tree4d3edba8c5e5e8ba63ba9238c579fd25bad9c9f8
parent6be4ddffd09a3b184338ecb07ce3539732e00ba1
pci: Build hw/pci/pci-hmp-cmds.c only when CONFIG_PCI

We compile pci-hmp-cmds.c always, but pci-qmp-cmds.c only when
CONFIG_PCI.  hw/pci/pci-stub.c keeps the linker happy when
!CONFIG_PCI.  Build pci-hmp-cmds.c that way, too.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20221201121133.3813857-6-armbru@redhat.com>
hw/pci/meson.build
hw/pci/pci-stub.c