From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 73161C433EF for ; Sat, 23 Jul 2022 17:06:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 049484243A; Sat, 23 Jul 2022 17:06:35 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 049484243A X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9wFGAI8kqwn0; Sat, 23 Jul 2022 17:06:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 342004242D; Sat, 23 Jul 2022 17:06:32 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 342004242D Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 615A61BF5DE for ; Sat, 23 Jul 2022 17:06:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 3BE0C4055E for ; Sat, 23 Jul 2022 17:06:30 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 3BE0C4055E X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DZ1FzBqJ2juc for ; Sat, 23 Jul 2022 17:06:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org DF24C404DF Received: from smtp4-g21.free.fr (smtp4-g21.free.fr [IPv6:2a01:e0c:1:1599::13]) by smtp2.osuosl.org (Postfix) with ESMTPS id DF24C404DF for ; Sat, 23 Jul 2022 17:06:28 +0000 (UTC) Received: from ymorin.is-a-geek.org (unknown [IPv6:2a01:cb19:8acf:5600:a82c:98de:96c7:ec71]) (Authenticated sender: yann.morin.1998@free.fr) by smtp4-g21.free.fr (Postfix) with ESMTPSA id B0A2719F396; Sat, 23 Jul 2022 19:06:24 +0200 (CEST) Received: by ymorin.is-a-geek.org (sSMTP sendmail emulation); Sat, 23 Jul 2022 19:06:24 +0200 Date: Sat, 23 Jul 2022 19:06:24 +0200 From: "Yann E. MORIN" To: Thomas Petazzoni Message-ID: <20220723170624.GH2641@scaer> References: <20220719074042.2214649-1-thomas.petazzoni@bootlin.com> <20220719074042.2214649-2-thomas.petazzoni@bootlin.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220719074042.2214649-2-thomas.petazzoni@bootlin.com> User-Agent: Mutt/1.5.22 (2013-10-16) X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1658595986; bh=axxgtorrltiCkBbwRnkJIoJTybIfVGMdxO9oNM16CNM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mk8mOg7bG5XdyMu6vYrQHHjENnHxG5Ahp3TberFfyE8CrBVai/1aYnYe2CmSuHcWf 29YcRTr5YhOCKrex0DSceTV+AAnsf4hGCjDbH4IlosneTxjJ9Lypb641uxQGHGJDUh aEAdwwS9bAMwC6cXhUY5oag/e65ca/7esfWq4jgNZ3wRsynCvjioj4/CCYdqmSH0BY 1lvc1q6vVEh8TBxnROwzbhxI3pk4jh0fBPeRUD/aJ0zriMEWuG67xSCjX+2/d4S/1s uURZ972cjqNqjK7sp7WZzUnoo39izZQ3UyxvO7DSiFzU/H4em05Q0bcXwnVAXUSXMX 70Y22G97v1fBg== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=free.fr header.i=@free.fr header.a=rsa-sha256 header.s=smtp-20201208 header.b=mk8mOg7b Subject: Re: [Buildroot] [PATCH 1/4] boot/ovmf-bin: new package X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: buildroot@buildroot.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Thomas, All, On 2022-07-19 09:40 +0200, Thomas Petazzoni via buildroot spake thusly: > This package allows to easily grab and install pre-compiled UEFI > firmware files suitable for testing in Qemu. They are going to be used > by the Grub test cases. > > Signed-off-by: Thomas Petazzoni As discussed IRL, this package is not necessary, as we already have edk2 packaged in Buildroot, and that does work nicely to provide the EFI BIOS. So, I've marked this patch rekected, and switched your runtime tests to use edk2 (moe as a reply to that ptch). Regards, Yann E. MORIN. > --- > DEVELOPERS | 1 + > boot/Config.in | 1 + > boot/ovmf-bin/Config.in | 15 +++++++++++++ > boot/ovmf-bin/ovmf-bin.hash | 3 +++ > boot/ovmf-bin/ovmf-bin.mk | 45 +++++++++++++++++++++++++++++++++++++ > 5 files changed, 65 insertions(+) > create mode 100644 boot/ovmf-bin/Config.in > create mode 100644 boot/ovmf-bin/ovmf-bin.hash > create mode 100644 boot/ovmf-bin/ovmf-bin.mk > > diff --git a/DEVELOPERS b/DEVELOPERS > index 5c3c24ff7a..34effa6005 100644 > --- a/DEVELOPERS > +++ b/DEVELOPERS > @@ -2796,6 +2796,7 @@ F: boot/beaglev-secondboot/ > F: boot/boot-wrapper-aarch64/ > F: boot/grub2/ > F: boot/gummiboot/ > +F: boot/ovmf-bin/ > F: configs/beaglev_defconfig > F: configs/stm32mp157c_dk2_defconfig > F: package/android-tools/ > diff --git a/boot/Config.in b/boot/Config.in > index 40472ae07d..470bb4361f 100644 > --- a/boot/Config.in > +++ b/boot/Config.in > @@ -18,6 +18,7 @@ source "boot/mv-ddr-marvell/Config.in" > source "boot/mxs-bootlets/Config.in" > source "boot/optee-os/Config.in" > source "boot/opensbi/Config.in" > +source "boot/ovmf-bin/Config.in" > source "boot/s500-bootloader/Config.in" > source "boot/shim/Config.in" > source "boot/sun20i-d1-spl/Config.in" > diff --git a/boot/ovmf-bin/Config.in b/boot/ovmf-bin/Config.in > new file mode 100644 > index 0000000000..921e7e82fc > --- /dev/null > +++ b/boot/ovmf-bin/Config.in > @@ -0,0 +1,15 @@ > +config BR2_TARGET_OVMF_BIN_ARCH_SUPPORTS > + bool > + default y if BR2_arm > + default y if BR2_aarch64 > + default y if BR2_i386 > + default y if BR2_x86_64 > + > +config BR2_TARGET_OVMF_BIN > + bool "ovmf-bin" > + depends on BR2_TARGET_OVMF_BIN_ARCH_SUPPORTS > + help > + This package downloads and installs pre-compiled versions of > + EDK2, called OVMF, that target Qemu. > + > + https://retrage.github.io/edk2-nightly/ > diff --git a/boot/ovmf-bin/ovmf-bin.hash b/boot/ovmf-bin/ovmf-bin.hash > new file mode 100644 > index 0000000000..6b8ddb58f7 > --- /dev/null > +++ b/boot/ovmf-bin/ovmf-bin.hash > @@ -0,0 +1,3 @@ > +# Locally calculated > +sha256 00bed311df18cdfcf344d1334501efc88767e2f1896bd28692896ab5996e0801 ovmf-bin-cb6914fad57eb57164d1cd3f23b7c09797793d5d.tar.gz > +sha256 50ce20c9cfdb0e19ee34fe0a51fc0afe961f743697b068359ab2f862b494df80 License.txt > diff --git a/boot/ovmf-bin/ovmf-bin.mk b/boot/ovmf-bin/ovmf-bin.mk > new file mode 100644 > index 0000000000..591190d63b > --- /dev/null > +++ b/boot/ovmf-bin/ovmf-bin.mk > @@ -0,0 +1,45 @@ > +################################################################################ > +# > +# ovmf-bin > +# > +################################################################################ > + > +OVMF_BIN_VERSION = cb6914fad57eb57164d1cd3f23b7c09797793d5d > +OVMF_BIN_SITE = $(call github,retrage,edk2-nightly,$(OVMF_BIN_VERSION)) > +OVMF_BIN_EXTRA_DOWNLOADS = https://raw.githubusercontent.com/tianocore/edk2/edk2-stable202205/License.txt > +# The license at > +# https://github.com/retrage/edk2-nightly/blob/master/LICENSE is > +# BSD-3-Clause, but this license is only the one for the build > +# infrastructure used to produce the nightly EDK2 builds. The actual > +# license of the EDK2 binaries is > +# https://github.com/tianocore/edk2/blob/master/License.txt, which is > +# BSD-2-Clause-Patent. > +OVMF_BIN_LICENSE = BSD-2-Clause-Patent > +OVMF_BIN_LICENSE_FILES = License.txt > + > +OVMF_BIN_INSTALL_IMAGES = YES > +OVMF_BIN_INSTALL_TARGET = NO > + > +define OVMF_BIN_INSTALL_LICENSE_FILE > + cp $(OVMF_BIN_DL_DIR)/License.txt $(@D) > +endef > + > +OVMF_BIN_POST_EXTRACT_HOOKS += OVMF_BIN_INSTALL_LICENSE_FILE > + > +ifeq ($(BR2_arm),y) > +OVMF_BIN_FILES = RELEASEARM_QEMU_EFI.fd RELEASEARM_QEMU_VARS.fd > +else ifeq ($(BR2_aarch64),y) > +OVMF_BIN_FILES = RELEASEAARCH64_QEMU_EFI.fd RELEASEAARCH64_QEMU_VARS.fd > +else ifeq ($(BR2_i386),y) > +OVMF_BIN_FILES = RELEASEIa32_OVMF.fd RELEASEIa32_OVMF_CODE.fd RELEASEIa32_OVMF_VARS.fd > +else ifeq ($(BR2_x86_64),y) > +OVMF_BIN_FILES = RELEASEX64_OVMF.fd RELEASEX64_OVMF_CODE.fd RELEASEX64_OVMF_VARS.fd > +endif > + > +define OVMF_BIN_INSTALL_IMAGES_CMDS > + $(foreach f,$(OVMF_BIN_FILES),\ > + $(INSTALL) -D -m 0644 $(@D)/bin/$(f) $(BINARIES_DIR)/$(f) > + ) > +endef > + > +$(eval $(generic-package)) > -- > 2.36.1 > > _______________________________________________ > buildroot mailing list > buildroot@buildroot.org > https://lists.buildroot.org/mailman/listinfo/buildroot -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot