Skip to contentSkip to conversation

package/qemu: add support for FDT

PATCH New Yann E. MORIN 2 participants 2 messages Nov 17, 2014 – Nov 18, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/qemu: add support for FDT

FDT is the Flat Device Tree, and allows QEMU to pass DTs to the VMs.

---
Although this looks like a feature patch, it does fix quite a number of autobuild failures, so I think it is still worth going in for the release.

It was due to my testing my full series, so I did not notice that newer versions of Qemu needed FDT support for some of its system emulations.

---
 package/qemu/Config.in | 10 ++++++++++
 package/qemu/qemu.mk   |  8 +++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)
package/qemu/Config.in +10 -0
index ebd2684..ff11208 100644
@@ -54,6 +54,7 @@ comment "... or you can select emulator families to enable, below:"
 
 config BR2_PACKAGE_QEMU_SYSTEM
 	bool "Enable all systems emulation"
+	select BR2_PACKAGE_QEMU_FDT
 	help
 	  Say 'y' to build all system emulators/virtualisers that QEMU supports.
 
@@ -81,6 +82,15 @@ config BR2_PACKAGE_QEMU_SDL
 	  Say 'y' to enable the SDL frontend, that is, a graphical window
 	  presenting the VM's display.
 
+comment "Misc. features"
+
+config BR2_PACKAGE_QEMU_FDT
+        bool "Enable FDT"
+        select BR2_PACKAGE_DTC
+        help
+          Say 'y' here to have QEMU capable of constructing Device Trees,
+          and passing them to the VMs.
+
 endif # BR2_PACKAGE_QEMU_HAS_EMULS
 
 endif # BR2_PACKAGE_QEMU
package/qemu/qemu.mk +7 -1
index 253b2b8..9cff5ed 100644
@@ -133,6 +133,13 @@ else
 QEMU_OPTS += --disable-sdl
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_FDT),y)
+QEMU_OPTS += --enable-fdt
+QEMU_DEPENDENCIES += dtc
+else
+QEMU_OPTS += --disable-fdt
+endif
+
 define QEMU_CONFIGURE_CMDS
 	( cd $(@D);                                     \
 		LIBS='$(QEMU_LIBS)'                     \
@@ -155,7 +162,6 @@ define QEMU_CONFIGURE_CMDS
 			--disable-brlapi                \
 			--disable-curses                \
 			--disable-curl                  \
-			--disable-fdt                   \
 			--disable-bluez                 \
 			--disable-guest-base            \
 			--disable-uuid                  \
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 package/qemu: add support for FDT

Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

FDT is the Flat Device Tree, and allows QEMU to pass DTs to the VMs.

Quoted 8 lines

---
Although this looks like a feature patch, it does fix quite a number of autobuild failures, so I think it is still worth going in for the release.

It was due to my testing my full series, so I did not notice that newer versions of Qemu needed FDT support for some of its system emulations.

Committed with autobuilder references added, thanks.

Signature · 1 line
Bye, Peter Korsgaard