From 97c40266b1b69e101ce035c8aa73bf2665c5c256 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sun, 1 Jan 2023 15:32:32 +0100 Subject: [PATCH] package/qemu: add option to install blobs 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" Signed-off-by: Thomas Petazzoni --- 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