[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/8] hw/nvram: Restrict stub to sysemu and tools
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 1/8] hw/nvram: Restrict stub to sysemu and tools |
Date: |
Fri, 31 Dec 2021 12:48:54 +0100 |
User-mode emulation doesn't need the fw_cfg stub.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
hw/nvram/meson.build | 6 ++++--
stubs/meson.build | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/hw/nvram/meson.build b/hw/nvram/meson.build
index 202a5466e63..f5ee9f6b88c 100644
--- a/hw/nvram/meson.build
+++ b/hw/nvram/meson.build
@@ -1,5 +1,7 @@
-# QOM interfaces must be available anytime QOM is used.
-qom_ss.add(files('fw_cfg-interface.c'))
+if have_system or have_tools
+ # QOM interfaces must be available anytime QOM is used.
+ qom_ss.add(files('fw_cfg-interface.c'))
+endif
softmmu_ss.add(files('fw_cfg.c'))
softmmu_ss.add(when: 'CONFIG_CHRP_NVRAM', if_true: files('chrp_nvram.c'))
diff --git a/stubs/meson.build b/stubs/meson.build
index 71469c1d50a..363f6fa785d 100644
--- a/stubs/meson.build
+++ b/stubs/meson.build
@@ -11,7 +11,6 @@
stub_ss.add(files('dump.c'))
stub_ss.add(files('error-printf.c'))
stub_ss.add(files('fdset.c'))
-stub_ss.add(files('fw_cfg.c'))
stub_ss.add(files('gdbstub.c'))
stub_ss.add(files('get-vm-name.c'))
if linux_io_uring.found()
@@ -51,6 +50,7 @@
stub_ss.add(files('replay-tools.c'))
endif
if have_system
+ stub_ss.add(files('fw_cfg.c'))
stub_ss.add(files('semihost.c'))
stub_ss.add(files('usb-dev-stub.c'))
stub_ss.add(files('xen-hw-stub.c'))
--
2.33.1
- [PATCH 0/8] hw/dma: Introduce dma_size_t type definition, Philippe Mathieu-Daudé, 2021/12/31
- [PATCH 1/8] hw/nvram: Restrict stub to sysemu and tools,
Philippe Mathieu-Daudé <=
- [PATCH 2/8] hw/pci: Restrict pci-bus stub to sysemu, Philippe Mathieu-Daudé, 2021/12/31
- [PATCH 3/8] hw/pci: Document pci_dma_map(), Philippe Mathieu-Daudé, 2021/12/31
- [PATCH 4/8] hw/dma: Remove CONFIG_USER_ONLY check, Philippe Mathieu-Daudé, 2021/12/31
- [PATCH 5/8] hw/rdma/rdma_utils: Rename rdma_pci_dma_map 'len' argument, Philippe Mathieu-Daudé, 2021/12/31
- [PATCH 7/8] hw/dma: Introduce dma_size_t type definition, Philippe Mathieu-Daudé, 2021/12/31
- [PATCH 8/8] hw/dma: Let dma_buf_read() / dma_buf_write() propagate MemTxResult, Philippe Mathieu-Daudé, 2021/12/31
- [PATCH 6/8] hw/scsi: Rename SCSIRequest::resid as 'residual', Philippe Mathieu-Daudé, 2021/12/31