qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] hw: Have some targets select FDT on a per-machine basis
@ 2020-10-05 15:08 Philippe Mathieu-Daudé
  2020-10-05 15:08 ` [RFC PATCH 1/4] Kconfig.host: Declare FDT symbol Philippe Mathieu-Daudé
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-10-05 15:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Aleksandar Rikalo, Yoshinori Sato, Jiaxun Yang,
	Aleksandar Markovic, qemu-ppc, Paolo Bonzini,
	Philippe Mathieu-Daudé,
	Aurelien Jarno, David Gibson

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [RFC PATCH 1/4] Kconfig.host: Declare FDT symbol
  2020-10-05 15:08 [RFC PATCH 0/4] hw: Have some targets select FDT on a per-machine basis Philippe Mathieu-Daudé
@ 2020-10-05 15:08 ` Philippe Mathieu-Daudé
  2020-10-05 15:08 ` [RFC PATCH 2/4] hw/ppc: Rename FDT_PPC as FDT Philippe Mathieu-Daudé
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-10-05 15:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Aleksandar Rikalo, Yoshinori Sato, Jiaxun Yang,
	Aleksandar Markovic, qemu-ppc, Paolo Bonzini,
	Philippe Mathieu-Daudé,
	Aurelien Jarno, David Gibson

Declare FDT symbol in the root Kconfig as it is
- dependent of libfdt
- used by various targets

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 Kconfig.host | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Kconfig.host b/Kconfig.host
index a9a55a9c31..c07a27220f 100644
--- a/Kconfig.host
+++ b/Kconfig.host
@@ -37,3 +37,7 @@ config VIRTFS
 
 config PVRDMA
     bool
+
+config FDT
+    bool
+    #depends on LIBFDT
-- 
2.26.2



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [RFC PATCH 2/4] hw/ppc: Rename FDT_PPC as FDT
  2020-10-05 15:08 [RFC PATCH 0/4] hw: Have some targets select FDT on a per-machine basis Philippe Mathieu-Daudé
  2020-10-05 15:08 ` [RFC PATCH 1/4] Kconfig.host: Declare FDT symbol Philippe Mathieu-Daudé
@ 2020-10-05 15:08 ` Philippe Mathieu-Daudé
  2020-10-05 15:08 ` [RFC PATCH 3/4] hw/mips/Kconfig: Let boston machine select FDT Philippe Mathieu-Daudé
  2020-10-05 15:08 ` [RFC PATCH 4/4] hw/rx/Kconfig: Let gdbsim " Philippe Mathieu-Daudé
  3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-10-05 15:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Aleksandar Rikalo, Yoshinori Sato, Jiaxun Yang,
	Aleksandar Markovic, qemu-ppc, Paolo Bonzini,
	Philippe Mathieu-Daudé,
	Aurelien Jarno, David Gibson

Use the generic FDT symbol.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 hw/ppc/Kconfig     | 15 ++++++---------
 hw/ppc/meson.build |  2 +-
 2 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/hw/ppc/Kconfig b/hw/ppc/Kconfig
index dd86e664d2..e6b8957964 100644
--- a/hw/ppc/Kconfig
+++ b/hw/ppc/Kconfig
@@ -10,7 +10,7 @@ config PSERIES
     select XICS_SPAPR
     select XIVE_SPAPR
     select MSI_NONBROKEN
-    select FDT_PPC
+    select FDT
     select CHRP_NVRAM
 
 config SPAPR_RNG
@@ -28,7 +28,7 @@ config POWERNV
     select MC146818RTC
     select XICS
     select XIVE
-    select FDT_PPC
+    select FDT
     select PCI_EXPRESS
     select MSI_NONBROKEN
 
@@ -47,7 +47,7 @@ config PPC440
     select PCI_EXPRESS
     select PPC4XX
     select SERIAL
-    select FDT_PPC
+    select FDT
 
 config PPC4XX
     bool
@@ -66,7 +66,7 @@ config SAM460EX
     select SMBUS_EEPROM
     select USB_EHCI_SYSBUS
     select USB_OHCI
-    select FDT_PPC
+    select FDT
 
 config PREP
     bool
@@ -117,7 +117,7 @@ config E500
     select PPCE500_PCI
     select SERIAL
     select MPC_I2C
-    select FDT_PPC
+    select FDT
 
 config VIRTEX
     bool
@@ -126,7 +126,7 @@ config VIRTEX
     select SERIAL
     select XILINX
     select XILINX_ETHLITE
-    select FDT_PPC
+    select FDT
 
 config XIVE
     bool
@@ -146,6 +146,3 @@ config XIVE_KVM
 # Only used by 64-bit targets
 config FW_CFG_PPC
     bool
-
-config FDT_PPC
-    bool
diff --git a/hw/ppc/meson.build b/hw/ppc/meson.build
index ffa2ec37fa..613a635bc4 100644
--- a/hw/ppc/meson.build
+++ b/hw/ppc/meson.build
@@ -3,7 +3,7 @@ ppc_ss.add(files(
   'ppc.c',
   'ppc_booke.c',
 ))
-ppc_ss.add(when: 'CONFIG_FDT_PPC', if_true: [files(
+ppc_ss.add(when: 'CONFIG_FDT', if_true: [files(
   'fdt.c',
 ), fdt])
 ppc_ss.add(when: 'CONFIG_FW_CFG_PPC', if_true: files('fw_cfg.c'))
-- 
2.26.2



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [RFC PATCH 3/4] hw/mips/Kconfig: Let boston machine select FDT
  2020-10-05 15:08 [RFC PATCH 0/4] hw: Have some targets select FDT on a per-machine basis Philippe Mathieu-Daudé
  2020-10-05 15:08 ` [RFC PATCH 1/4] Kconfig.host: Declare FDT symbol Philippe Mathieu-Daudé
  2020-10-05 15:08 ` [RFC PATCH 2/4] hw/ppc: Rename FDT_PPC as FDT Philippe Mathieu-Daudé
@ 2020-10-05 15:08 ` Philippe Mathieu-Daudé
  2020-10-05 15:08 ` [RFC PATCH 4/4] hw/rx/Kconfig: Let gdbsim " Philippe Mathieu-Daudé
  3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-10-05 15:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Aleksandar Rikalo, Yoshinori Sato, Jiaxun Yang,
	Aleksandar Markovic, qemu-ppc, Paolo Bonzini,
	Philippe Mathieu-Daudé,
	Aurelien Jarno, David Gibson

The 'boston' machine is the only MIPS one using QEMU FDT API.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 hw/mips/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/mips/Kconfig b/hw/mips/Kconfig
index 67d39c56a4..faf4c3a606 100644
--- a/hw/mips/Kconfig
+++ b/hw/mips/Kconfig
@@ -51,3 +51,4 @@ config MIPS_CPS
 
 config MIPS_BOSTON
     bool
+    select FDT
-- 
2.26.2



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [RFC PATCH 4/4] hw/rx/Kconfig: Let gdbsim machine select FDT
  2020-10-05 15:08 [RFC PATCH 0/4] hw: Have some targets select FDT on a per-machine basis Philippe Mathieu-Daudé
                   ` (2 preceding siblings ...)
  2020-10-05 15:08 ` [RFC PATCH 3/4] hw/mips/Kconfig: Let boston machine select FDT Philippe Mathieu-Daudé
@ 2020-10-05 15:08 ` Philippe Mathieu-Daudé
  3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-10-05 15:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Aleksandar Rikalo, Yoshinori Sato, Jiaxun Yang,
	Aleksandar Markovic, qemu-ppc, Paolo Bonzini,
	Philippe Mathieu-Daudé,
	Aurelien Jarno, David Gibson

The 'gdbsim' machine uses QEMU FDT API.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 hw/rx/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/rx/Kconfig b/hw/rx/Kconfig
index 2b297c5a6a..d1b1645ea5 100644
--- a/hw/rx/Kconfig
+++ b/hw/rx/Kconfig
@@ -8,3 +8,4 @@ config RX62N_MCU
 config RX_GDBSIM
     bool
     select RX62N_MCU
+    select FDT
-- 
2.26.2



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-10-05 15:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-05 15:08 [RFC PATCH 0/4] hw: Have some targets select FDT on a per-machine basis Philippe Mathieu-Daudé
2020-10-05 15:08 ` [RFC PATCH 1/4] Kconfig.host: Declare FDT symbol Philippe Mathieu-Daudé
2020-10-05 15:08 ` [RFC PATCH 2/4] hw/ppc: Rename FDT_PPC as FDT Philippe Mathieu-Daudé
2020-10-05 15:08 ` [RFC PATCH 3/4] hw/mips/Kconfig: Let boston machine select FDT Philippe Mathieu-Daudé
2020-10-05 15:08 ` [RFC PATCH 4/4] hw/rx/Kconfig: Let gdbsim " Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).