[PATCH 0/7] hw/nvram/fw_cfg: Do not build device if not needed (Spring cleanup)

Philippe Mathieu-Daudé posted 7 patches 3 years ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210426193520.4115528-1-philmd@redhat.com
Maintainers: Aurelien Jarno <aurelien@aurel32.net>, "Philippe Mathieu-Daudé" <f4bug@amsat.org>, Jiaxun Yang <jiaxun.yang@flygoat.com>, Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>
hw/arm/fw_cfg.c      | 19 +++++++++++++++++
hw/hppa/fw_cfg.c     | 19 +++++++++++++++++
hw/riscv/fw_cfg.c    | 19 +++++++++++++++++
stubs/fw_cfg.c       | 49 ++++++++++++++++++++++++++++++++++++++++++--
MAINTAINERS          |  2 +-
hw/acpi/Kconfig      |  1 +
hw/arm/Kconfig       |  2 ++
hw/arm/meson.build   |  1 +
hw/display/Kconfig   |  3 ---
hw/hppa/Kconfig      |  1 +
hw/hppa/meson.build  |  1 +
hw/i386/Kconfig      |  2 ++
hw/mips/Kconfig      |  5 +----
hw/mips/meson.build  |  2 +-
hw/nvram/Kconfig     |  7 +++++++
hw/nvram/meson.build |  2 +-
hw/ppc/Kconfig       |  1 +
hw/riscv/meson.build |  1 +
hw/sparc/Kconfig     |  1 +
hw/sparc64/Kconfig   |  1 +
stubs/meson.build    |  2 +-
21 files changed, 128 insertions(+), 13 deletions(-)
create mode 100644 hw/arm/fw_cfg.c
create mode 100644 hw/hppa/fw_cfg.c
create mode 100644 hw/riscv/fw_cfg.c
[PATCH 0/7] hw/nvram/fw_cfg: Do not build device if not needed (Spring cleanup)
Posted by Philippe Mathieu-Daudé 3 years ago
Hi,

Quite a trivial series around fw_cfg:
- enforce the FW_CFG Kconfig symbol,
- add missing Kconfig dependencies,
- explicit machines using the fw_cfg device,
- allow targets not using the device to build without it.

Please review,

Phil.

Philippe Mathieu-Daudé (7):
  stubs: Restrict fw_cfg stubs to sysemu
  hw/nvram: Rename FW_CFG_MIPS as generic FW_CFG Kconfig symbol
  hw/nvram: Declare FW_CFG_DMA Kconfig symbol in hw/nvram/
  hw/acpi/vmgenid: Make ACPI_VMGENID depends on FW_CFG Kconfig
  hw: Have machines Kconfig-select FW_CFG
  hw/{arm,hppa,riscv}: Add fw_cfg arch-specific stub
  hw/nvram: Do not build FW_CFG if not required

 hw/arm/fw_cfg.c      | 19 +++++++++++++++++
 hw/hppa/fw_cfg.c     | 19 +++++++++++++++++
 hw/riscv/fw_cfg.c    | 19 +++++++++++++++++
 stubs/fw_cfg.c       | 49 ++++++++++++++++++++++++++++++++++++++++++--
 MAINTAINERS          |  2 +-
 hw/acpi/Kconfig      |  1 +
 hw/arm/Kconfig       |  2 ++
 hw/arm/meson.build   |  1 +
 hw/display/Kconfig   |  3 ---
 hw/hppa/Kconfig      |  1 +
 hw/hppa/meson.build  |  1 +
 hw/i386/Kconfig      |  2 ++
 hw/mips/Kconfig      |  5 +----
 hw/mips/meson.build  |  2 +-
 hw/nvram/Kconfig     |  7 +++++++
 hw/nvram/meson.build |  2 +-
 hw/ppc/Kconfig       |  1 +
 hw/riscv/meson.build |  1 +
 hw/sparc/Kconfig     |  1 +
 hw/sparc64/Kconfig   |  1 +
 stubs/meson.build    |  2 +-
 21 files changed, 128 insertions(+), 13 deletions(-)
 create mode 100644 hw/arm/fw_cfg.c
 create mode 100644 hw/hppa/fw_cfg.c
 create mode 100644 hw/riscv/fw_cfg.c

-- 
2.26.3