From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 4/8] uboot: add support for bundling ATF BL31 into U-Boot
Date: Fri, 08 Dec 2017 13:37:33 +0100 [thread overview]
Message-ID: <87vahhz982.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20171203214811.3124-5-thomas.petazzoni@free-electrons.com> (Thomas Petazzoni's message of "Sun, 3 Dec 2017 22:48:07 +0100")
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
> From: Jagan Teki <jagannadh.teki@gmail.com>
> Some ARM64 platforms (such as Allwinner A64/H5) have a boot process
> where U-Boot encapsulates the BL31 part of the ARM trusted
> firmware. For such platforms, we need to build ATF before U-Boot, and
> pass a BL31 variable pointing to ATF bl31.bin to the U-Boot build
> process.
> This commit introduces a BR2_TARGET_UBOOT_NEEDS_ATF_BL31 variable to
> achieve this.
> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
> [Thomas:
> - Rename option to BR2_TARGET_UBOOT_NEEDS_ATF_BL31
> - Drop changes to arm-trusted-firmware.mk, they are taken care of by
> previous commits.
> - Improve Config.in help text
> - Add missing dependency on arm-trusted-firmware when
> BR2_TARGET_UBOOT_NEEDS_ATF_BL31 is enabled.
> - Use bl31.bin from $(BINARIES_DIR) instead of taking it from ATF's
> build dir.]
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> boot/uboot/Config.in | 10 ++++++++++
> boot/uboot/uboot.mk | 5 +++++
> 2 files changed, 15 insertions(+)
> diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
> index 0e109d0977..8fa189f410 100644
> --- a/boot/uboot/Config.in
> +++ b/boot/uboot/Config.in
> @@ -158,6 +158,16 @@ config BR2_TARGET_UBOOT_NEEDS_OPENSSL
> typically the case when the board configuration has
> CONFIG_FIT_SIGNATURE enabled.
> +config BR2_TARGET_UBOOT_NEEDS_ATF_BL31
> + bool "U-Boot needs ATF BL31"
> + depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31
The fact that you need to enable this atf suboption before this option
is even visible isn't very nice. We also need to ensure this option
cannot be selected together with
BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33 as that would cause
circular dependencies, so I've changed it to:
depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE
depend on !BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33
select BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31
And committed, thanks.
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2017-12-08 12:37 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-03 21:48 [Buildroot] [PATCH 0/8] Improve ATF to support additional platforms Thomas Petazzoni
2017-12-03 21:48 ` [Buildroot] [PATCH 1/8] arm-trusted-firmware: add option to enable/disable building FIP image Thomas Petazzoni
2017-12-04 21:10 ` Sergey Matyukevich
2017-12-06 16:09 ` Danomi Manchego
2017-12-08 9:14 ` Peter Korsgaard
2017-12-08 12:34 ` Peter Korsgaard
2017-12-03 21:48 ` [Buildroot] [PATCH 2/8] arm-trusted-firmware: add BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33 Thomas Petazzoni
2017-12-08 12:35 ` Peter Korsgaard
2017-12-03 21:48 ` [Buildroot] [PATCH 3/8] arm-trusted-firmware: allow to generate the BL31 image Thomas Petazzoni
2017-12-06 16:28 ` Jagan Teki
2017-12-08 12:35 ` Peter Korsgaard
2017-12-03 21:48 ` [Buildroot] [PATCH 4/8] uboot: add support for bundling ATF BL31 into U-Boot Thomas Petazzoni
2017-12-06 16:29 ` Jagan Teki
2017-12-08 12:37 ` Peter Korsgaard [this message]
2017-12-08 12:46 ` Thomas Petazzoni
2017-12-03 21:48 ` [Buildroot] [PATCH 5/8] mv-ddr-marvell: new package Thomas Petazzoni
2017-12-08 12:42 ` Peter Korsgaard
2017-12-08 13:18 ` Thomas Petazzoni
2017-12-03 21:48 ` [Buildroot] [PATCH 6/8] binaries-marvell: " Thomas Petazzoni
2017-12-04 20:17 ` Sergey Matyukevich
2017-12-03 21:48 ` [Buildroot] [PATCH 7/8] atf: add support for Marvell Armada SoCs Thomas Petazzoni
2017-12-08 17:59 ` Peter Korsgaard
2017-12-03 21:48 ` [Buildroot] [PATCH 8/8] support/testing: add tests for ATF Thomas Petazzoni
2017-12-04 20:33 ` Sergey Matyukevich
2017-12-08 18:02 ` Peter Korsgaard
2017-12-11 13:00 ` Thomas Petazzoni
2017-12-11 18:59 ` Peter Korsgaard
2017-12-06 16:26 ` [Buildroot] [PATCH 0/8] Improve ATF to support additional platforms Jagan Teki
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=87vahhz982.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox