[RFC PATCH 0/4] hw: Have some targets select FDT on a per-machine basis

Philippe Mathieu-Daudé posted 4 patches 5 years, 1 month ago
Test docker-quick@centos7 failed
Test docker-mingw@fedora failed
Test checkpatch failed
Test FreeBSD failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20201005150845.2124381-1-philmd@redhat.com
Maintainers: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>, Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>, Aurelien Jarno <aurelien@aurel32.net>, Jiaxun Yang <jiaxun.yang@flygoat.com>
Kconfig.host       |  4 ++++
hw/mips/Kconfig    |  1 +
hw/ppc/Kconfig     | 15 ++++++---------
hw/ppc/meson.build |  2 +-
hw/rx/Kconfig      |  1 +
5 files changed, 13 insertions(+), 10 deletions(-)
[RFC PATCH 0/4] hw: Have some targets select FDT on a per-machine basis
Posted by Philippe Mathieu-Daudé 5 years, 1 month ago
PoC to have CONFIG_FDT per-machine set by Kconfig, looking at
Paolo's "dtc: Convert Makefile bits to meson bits":
https://lists.gnu.org/archive/html/qemu-devel/2020-10/msg00983.html

These files shouldn't be needed:
. default-configs/targets/mips64el-softmmu.mak
. default-configs/targets/ppc-softmmu.mak
. default-configs/targets/ppc64-softmmu.mak
. default-configs/targets/rx-softmmu.mak

The QEMU FTD API is used by these boot.c files, so for these it is
easier to have a per-target config:
. hw/arm/boot.c
. hw/microblaze/boot.c
. hw/nios2/boot.c
. hw/riscv/boot.c

Philippe Mathieu-Daudé (4):
  Kconfig.host: Declare FDT symbol
  hw/ppc: Rename FDT_PPC as FDT
  hw/mips/Kconfig: Let boston machine select FDT
  hw/rx/Kconfig: Let gdbsim machine select FDT

 Kconfig.host       |  4 ++++
 hw/mips/Kconfig    |  1 +
 hw/ppc/Kconfig     | 15 ++++++---------
 hw/ppc/meson.build |  2 +-
 hw/rx/Kconfig      |  1 +
 5 files changed, 13 insertions(+), 10 deletions(-)

-- 
2.26.2