From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/4] boot/ovmf-bin: new package
Date: Sat, 23 Jul 2022 19:06:24 +0200 [thread overview]
Message-ID: <20220723170624.GH2641@scaer> (raw)
In-Reply-To: <20220719074042.2214649-2-thomas.petazzoni@bootlin.com>
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 <thomas.petazzoni@bootlin.com>
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
next prev parent reply other threads:[~2022-07-23 17:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-19 7:40 [Buildroot] [PATCH 0/4] Update grub to 2.06 Thomas Petazzoni via buildroot
2022-07-19 7:40 ` [Buildroot] [PATCH 1/4] boot/ovmf-bin: new package Thomas Petazzoni via buildroot
2022-07-23 17:06 ` Yann E. MORIN [this message]
2022-07-19 7:40 ` [Buildroot] [PATCH 2/4] boot/grub2: update to 2.06 Thomas Petazzoni via buildroot
2022-07-21 10:24 ` yann.morin
2022-07-23 14:11 ` Yann E. MORIN
2022-07-19 7:40 ` [Buildroot] [PATCH 3/4] boot/grub2: update readme.txt details Thomas Petazzoni via buildroot
2022-07-23 17:08 ` Yann E. MORIN
2022-07-19 7:40 ` [Buildroot] [PATCH 4/4] support/testing/tests/boot: new test cases for Grub Thomas Petazzoni via buildroot
2022-07-23 17:09 ` Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220723170624.GH2641@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@buildroot.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.