All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/4] package/edk2-aarch64-bin: new package
Date: Mon, 17 May 2021 18:23:06 +0200	[thread overview]
Message-ID: <20210517162306.GZ2506@scaer> (raw)
In-Reply-To: <20200712163422.1162187-1-romain.naour@gmail.com>

Romain, All,

Thanks for this series.

Since then, Dick has submitted the support needed to build edk2 from
source, and this has just been merged into the next branch now:
    https://git.buildroot.org/buildroot/commit/?id=1074a37e783b

As such, and as discussed on IRC, I believe this old patchset of yours
is no longer required, so I marked it superseded on patchwork. Thanks
for your initial work on this and your feedback! :-)

Regards,
Yann E. MORIN.

On 2020-07-12 18:34 +0200, Romain Naour spake thusly:
> Linaro provide pre-built versions of the binary firmware images of
> UEFI [1] based on the TianoCore edk2 project [2].
> 
> The qemu_aarch64_virt_defconfig will be updated by a follow up commit to
> use those firmware to test Aarch64 efi system under Qemu.
> 
> Building edk2 firmware from source require to build edk2 package for
> the host using a script based buildsystem. Instead we use firmware
> provided by Linaro to avoid the maintainance burden.
> There is a limited added value to build them just for Qemu testing
> purpose.
> 
> Building edk2 firmware could be intersting for secure boot or for
> other target than Qemu.
> 
> We need to package the edk2 Aarch64 and ARM firmware in two separate
> packages since the downloaded files are using the same name
> (QEMU_EFI.fd and QEMU_VARS.fd). The ARM firmware will be added by
> a follow up patch.
> 
> [1] http://releases.linaro.org/reference-platform/enterprise/firmware/open-source/19.03/
> [2] https://github.com/tianocore/edk2
> 
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> ---
>  DEVELOPERS                                    |  1 +
>  package/Config.in.host                        |  1 +
>  package/edk2-aarch64-bin/Config.in.host       | 12 ++++++++++
>  .../edk2-aarch64-bin/edk2-aarch64-bin.hash    |  3 +++
>  package/edk2-aarch64-bin/edk2-aarch64-bin.mk  | 24 +++++++++++++++++++
>  5 files changed, 41 insertions(+)
>  create mode 100644 package/edk2-aarch64-bin/Config.in.host
>  create mode 100644 package/edk2-aarch64-bin/edk2-aarch64-bin.hash
>  create mode 100644 package/edk2-aarch64-bin/edk2-aarch64-bin.mk
> 
> diff --git a/DEVELOPERS b/DEVELOPERS
> index ed9f1388a3..0cb76226bb 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -2191,6 +2191,7 @@ F:	package/binutils/
>  F:	package/bullet/
>  F:	package/clang/
>  F:	package/clinfo/
> +F:	package/edk2-aarch64-bin/
>  F:	package/efl/
>  F:	package/enet/
>  F:	package/enlightenment/
> diff --git a/package/Config.in.host b/package/Config.in.host
> index 647fc24841..28ccc33037 100644
> --- a/package/Config.in.host
> +++ b/package/Config.in.host
> @@ -18,6 +18,7 @@ menu "Host utilities"
>  	source "package/dtc/Config.in.host"
>  	source "package/e2fsprogs/Config.in.host"
>  	source "package/e2tools/Config.in.host"
> +	source "package/edk2-aarch64-bin/Config.in.host"
>  	source "package/erofs-utils/Config.in.host"
>  	source "package/eudev/Config.in.host"
>  	source "package/exfatprogs/Config.in.host"
> diff --git a/package/edk2-aarch64-bin/Config.in.host b/package/edk2-aarch64-bin/Config.in.host
> new file mode 100644
> index 0000000000..b4ec08cb48
> --- /dev/null
> +++ b/package/edk2-aarch64-bin/Config.in.host
> @@ -0,0 +1,12 @@
> +config BR2_PACKAGE_HOST_EDK2_AARCH64_BIN
> +	bool "host-edk2-aarch64-bin"
> +	depends on BR2_aarch64
> +	help
> +	  This package will install pre-built versions of the binary
> +	  firmware images of UEFI based on the TianoCore project.
> +
> +	  This image is intended to be used by host-qemu to boot UEFI
> +	  images for Aarch64 target.
> +
> +	  https://github.com/tianocore/edk2
> +	  http://releases.linaro.org/reference-platform/enterprise/firmware/open-source/19.03/
> diff --git a/package/edk2-aarch64-bin/edk2-aarch64-bin.hash b/package/edk2-aarch64-bin/edk2-aarch64-bin.hash
> new file mode 100644
> index 0000000000..3166b09dae
> --- /dev/null
> +++ b/package/edk2-aarch64-bin/edk2-aarch64-bin.hash
> @@ -0,0 +1,3 @@
> +# From http://releases.linaro.org/reference-platform/enterprise/firmware/open-source/19.03/release/qemu-aarch64/SHA256SUMS
> +sha256  43301ef5f620945a082c5f47ae933e154e0cff0976ed22a8cff66033020f6020  QEMU_EFI.fd
> +sha256  8b634c1e6bd11607850b69111f6c4dbd1583dbbd1460dac72dbacbdc1a4a130a  QEMU_VARS.fd
> diff --git a/package/edk2-aarch64-bin/edk2-aarch64-bin.mk b/package/edk2-aarch64-bin/edk2-aarch64-bin.mk
> new file mode 100644
> index 0000000000..78818cdc81
> --- /dev/null
> +++ b/package/edk2-aarch64-bin/edk2-aarch64-bin.mk
> @@ -0,0 +1,24 @@
> +################################################################################
> +#
> +# edk2-aarch64-bin
> +#
> +################################################################################
> +
> +EDK2_AARCH64_BIN_VERSION = 19.03
> +EDK2_AARCH64_BIN_SITE = http://releases.linaro.org/reference-platform/enterprise/firmware/open-source/$(EDK2_AARCH64_BIN_VERSION)/release/qemu-aarch64
> +EDK2_AARCH64_BIN_LICENSE = BSD-2-Clause (edk2), ISC (uefi-tools), BSD-3-Clause (ATF)
> +
> +HOST_EDK2_AARCH64_BIN_SOURCE = QEMU_EFI.fd
> +HOST_EDK2_AARCH64_BIN_EXTRA_DOWNLOADS = $(EDK2_AARCH64_BIN_SITE)/QEMU_VARS.fd
> +
> +define HOST_EDK2_AARCH64_BIN_EXTRACT_CMDS
> +	cp $(HOST_EDK2_AARCH64_BIN_DL_DIR)/QEMU_EFI.fd $(@D)/QEMU_EFI.fd
> +	cp $(HOST_EDK2_AARCH64_BIN_DL_DIR)/QEMU_VARS.fd $(@D)/QEMU_VARS.fd
> +endef
> +
> +define HOST_EDK2_AARCH64_BIN_INSTALL_CMDS
> +	$(INSTALL) -D -m 644 $(@D)/QEMU_EFI.fd $(HOST_DIR)/usr/share/edk2/aarch64/QEMU_EFI.fd
> +	$(INSTALL) -D -m 644 $(@D)/QEMU_VARS.fd $(HOST_DIR)/usr/share/edk2/aarch64/QEMU_VARS.fd
> +endef
> +
> +$(eval $(host-generic-package))
> -- 
> 2.25.4
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/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.  |
'------------------------------^-------^------------------^--------------------'

      parent reply	other threads:[~2021-05-17 16:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-12 16:34 [Buildroot] [PATCH 1/4] package/edk2-aarch64-bin: new package Romain Naour
2020-07-12 16:34 ` [Buildroot] [PATCH 2/4] board/qemu/aarch64-virt/linux.config: enable ACPI Romain Naour
2020-07-12 16:34 ` [Buildroot] [PATCH 3/4] configs/qemu_aarch64_virt_defconfig: boot with grub bootloader with efi Romain Naour
2020-07-12 19:28   ` Thomas Petazzoni
2020-07-13 21:21     ` Romain Naour
2020-07-12 16:34 ` [Buildroot] [PATCH 4/4] board/qemu/aarch64-virt/linux.config: enable memory hotplug Romain Naour
2020-07-12 19:27   ` Thomas Petazzoni
2020-07-13 21:24     ` Romain Naour
2021-05-17 16:23 ` Yann E. MORIN [this message]

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=20210517162306.GZ2506@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /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.