[Buildroot] [git commit branch/next] package/qemu: add option to install blobs

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Feb 22 21:03:18 UTC 2023


commit: https://git.buildroot.net/buildroot/commit/?id=97c40266b1b69e101ce035c8aa73bf2665c5c256
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next

Binary blobs are BIOS of some sorts for the various machines emulated
by QEMU. There is no option to individually install blobs; it's an
all-or-nothing option.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 package/qemu/Config.in | 11 +++++++++++
 package/qemu/qemu.mk   |  6 ++++++
 2 files changed, 17 insertions(+)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 154b98a541..a446c0cf68 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -58,6 +58,17 @@ config BR2_PACKAGE_QEMU_SYSTEM
 
 if BR2_PACKAGE_QEMU_SYSTEM
 
+config BR2_PACKAGE_QEMU_BLOBS
+	bool "Install binary blobs"
+	default y
+	help
+	  Say 'y' here (the default) to install binary blobs (such as
+	  BIOS or firmwares for the different machines simulated by
+	  QEMU). Say 'n' to not install those blobs.
+
+	  Note: Some machines may be unbootable without those blobs.
+	  If unsure, say 'y'.
+
 config BR2_PACKAGE_QEMU_SLIRP
 	bool "Enable user mode networking (SLIRP)"
 	select BR2_PACKAGE_SLIRP
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 58b4ff10a5..d514a2285c 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -246,6 +246,12 @@ ifeq ($(BR2_STATIC_LIBS),y)
 QEMU_OPTS += --static
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_BLOBS),y)
+QEMU_OPTS += --enable-install-blobs
+else
+QEMU_OPTS += --disable-install-blobs
+endif
+
 # Override CPP, as it expects to be able to call it like it'd
 # call the compiler.
 define QEMU_CONFIGURE_CMDS



More information about the buildroot mailing list