From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 11 Mar 2022 10:27:06 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nSbYA-001p2U-2j for lore@lore.pengutronix.de; Fri, 11 Mar 2022 10:27:06 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nSbY9-0001kx-Hs; Fri, 11 Mar 2022 10:27:05 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nSbWO-0000HV-Iq; Fri, 11 Mar 2022 10:25:16 +0100 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nSbWO-0001Qk-W1; Fri, 11 Mar 2022 10:25:15 +0100 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1nSbWM-008U3Q-V7; Fri, 11 Mar 2022 10:25:14 +0100 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Fri, 11 Mar 2022 10:25:14 +0100 Message-Id: <20220311092514.2021809-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220303214920.4084431-1-christian.melki@t2data.com> References: <20220303214920.4084431-1-christian.melki@t2data.com> MIME-Version: 1.0 Subject: Re: [ptxdist] [APPLIED] qemu: Add possibility to drop edk2 firmware. X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Christian Melki Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 56410abcee8d52a26797ed089749c84eb4ad1213. Michael [sent from post-receive hook] On Fri, 11 Mar 2022 10:25:14 +0100, Christian Melki wrote: > EDK2 firmware files are large and very sparse ROM images. > The set currently borders 200M. > > AFAIK, QEMU can't load compressed raw firmware files. > So add the possibility to drop EDK2 in case it's unused. > > Signed-off-by: Christian Melki > Message-Id: <20220303214920.4084431-1-christian.melki@t2data.com> > Signed-off-by: Michael Olbrich > > diff --git a/rules/qemu.in b/rules/qemu.in > index eb689a188d3f..30f1cc2f5989 100644 > --- a/rules/qemu.in > +++ b/rules/qemu.in > @@ -62,6 +62,14 @@ config QEMU_TOOLS > help > Say y here to include tools. > > +config QEMU_EDK2_FIRMWARE > + bool > + prompt "Enable edk2 firmware" > + default y > + help > + Say n here to drop the edk2 (UEFI) firmware files. > + They can be substantial in size (> 100M). > + > config QEMU_SYS > bool > prompt "system emulation" > diff --git a/rules/qemu.make b/rules/qemu.make > index beaf1759c854..fad87903f396 100644 > --- a/rules/qemu.make > +++ b/rules/qemu.make > @@ -235,11 +235,13 @@ ifneq ($(filter i386 x86_64,$(QEMU_TARGETS)),) > @$(call install_copy, qemu, 0, 0, 0644, -, /usr/share/qemu/bios-256k.bin) > @$(call install_copy, qemu, 0, 0, 0644, -, /usr/share/qemu/bios-microvm.bin) > @$(call install_copy, qemu, 0, 0, 0644, -, /usr/share/qemu/bios.bin) > +ifdef PTXCONF_QEMU_EDK2_FIRMWARE > @$(call install_copy, qemu, 0, 0, 0644, -, /usr/share/qemu/edk2-i386-code.fd) > @$(call install_copy, qemu, 0, 0, 0644, -, /usr/share/qemu/edk2-i386-secure-code.fd) > @$(call install_copy, qemu, 0, 0, 0644, -, /usr/share/qemu/edk2-i386-vars.fd) > @$(call install_copy, qemu, 0, 0, 0644, -, /usr/share/qemu/edk2-x86_64-code.fd) > @$(call install_copy, qemu, 0, 0, 0644, -, /usr/share/qemu/edk2-x86_64-secure-code.fd) > +endif > @$(call install_copy, qemu, 0, 0, 0644, -, /usr/share/qemu/linuxboot.bin) > @$(call install_copy, qemu, 0, 0, 0644, -, /usr/share/qemu/linuxboot_dma.bin) > @$(call install_copy, qemu, 0, 0, 0644, -, /usr/share/qemu/pxe-e1000.rom) > @@ -257,9 +259,11 @@ ifneq ($(filter i386 x86_64,$(QEMU_TARGETS)),) > endif > > ifneq ($(filter arm aarch64,$(QEMU_TARGETS)),) > +ifdef PTXCONF_QEMU_EDK2_FIRMWARE > @$(call install_copy, qemu, 0, 0, 0644, -, /usr/share/qemu/edk2-aarch64-code.fd) > @$(call install_copy, qemu, 0, 0, 0644, -, /usr/share/qemu/edk2-arm-code.fd) > @$(call install_copy, qemu, 0, 0, 0644, -, /usr/share/qemu/edk2-arm-vars.fd) > +endif > @$(call install_glob, qemu, 0, 0, -, /usr/share/qemu/firmware, *arm*,) > @$(call install_glob, qemu, 0, 0, -, /usr/share/qemu/firmware, *aarch64*,) > endif _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de