From: Alexander Dahl <post@lespocky.de>
To: ptxdist@pengutronix.de
Cc: Christian Melki <christian.melki@t2data.com>
Subject: Re: [ptxdist] [PATCH] U-Boot: Add TF-A dependency option.
Date: Mon, 29 Nov 2021 16:31:41 +0100 [thread overview]
Message-ID: <20211129153141.2alx7wi3tytuf5gh@falbala.internal.home.lespocky.de> (raw)
In-Reply-To: <20211129142720.595432-1-christian.melki@t2data.com>
[-- Attachment #1.1: Type: text/plain, Size: 3371 bytes --]
Hello Christian,
On Mon, Nov 29, 2021 at 03:27:20PM +0100, Christian Melki wrote:
> Let U-Boot depend on TF-A firmwares for inclusion.
> TF-A firmwares are a common thing on various machines.
> Also add an option to let U-Boot build without the
> "Out Of Tree" option. This option sometimes breaks
> builds with various external dependencies.
I would split the TF-A stuff from the oot build and make two
changesets. Those two are conceptually independent.
Greets
Alex
> Signed-off-by: Christian Melki <christian.melki@t2data.com>
> ---
> platforms/u-boot.in | 20 +++++++++++++++++++-
> rules/u-boot.make | 4 +++-
> 2 files changed, 22 insertions(+), 2 deletions(-)
>
> diff --git a/platforms/u-boot.in b/platforms/u-boot.in
> index 4ddf3b3fb..0d8213f45 100644
> --- a/platforms/u-boot.in
> +++ b/platforms/u-boot.in
> @@ -2,6 +2,7 @@
>
> menuconfig U_BOOT
> select BOOTLOADER
> + select TF_A if U_BOOT_USE_TF_A
> prompt "U-Boot "
> bool
>
> @@ -19,6 +20,16 @@ config U_BOOT_MD5
> string
> prompt "U-Boot source md5"
>
> +config U_BOOT_BUILD_OOT
> + prompt "Out of tree build"
> + default y
> + bool
> + help
> + U-Boot is usually built out of tree.
> + But for some builds, f.ex. with firmware blobs, out of tree builds
> + can break because of vendors using source paths to files.
> + This is mostly a workaround for those type of builds.
> +
> choice
> prompt "config system"
> default U_BOOT_CONFIGSYSTEM_LEGACY
> @@ -71,12 +82,19 @@ config U_BOOT_CONFIG
>
> endif
>
> +config U_BOOT_USE_TF_A
> + prompt "Include TF-A firmwares in U-Boot."
> + bool
> + help
> + Generate TF-A (ARM Trusted Firmwares type A) to include in u-boot.
> +
> config U_BOOT_CUSTOM_MAKE_OPTS
> prompt "Custom make options"
> string
> help
> List of custom make options passed at build time. Can be
> - used for example to pass a DEVICE_TREE= value.
> + used for example to pass a DEVICE_TREE= value or passing
> + TF-A firmware, BL31=${PTXDIST_PLATFORMDIR}/path-to/bl31.bin
>
> choice
> prompt "Generate environment image"
> diff --git a/rules/u-boot.make b/rules/u-boot.make
> index 38c32bf27..b2e4e1311 100644
> --- a/rules/u-boot.make
> +++ b/rules/u-boot.make
> @@ -23,9 +23,11 @@ U_BOOT_SUFFIX := tar.bz2
> U_BOOT_URL := https://ftp.denx.de/pub/u-boot/$(U_BOOT).$(U_BOOT_SUFFIX)
> U_BOOT_SOURCE := $(SRCDIR)/$(U_BOOT).$(U_BOOT_SUFFIX)
> U_BOOT_DIR := $(BUILDDIR)/$(U_BOOT)
> +ifeq ($(PTXCONF_U_BOOT_BUILD_OOT),y)
> U_BOOT_BUILD_DIR := $(U_BOOT_DIR)-build
> +endif
> U_BOOT_DEVPKG := NO
> -U_BOOT_BUILD_OOT := KEEP
> +U_BOOT_BUILD_OOT := $(call ptx/ifdef, PTXCONF_U_BOOT_BUILD_OOT, YES, NO)
>
> ifdef PTXCONF_U_BOOT_CONFIGSYSTEM_KCONFIG
> U_BOOT_CONFIG := $(call ptx/in-platformconfigdir, \
> --
> 2.30.2
>
>
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
--
/"\ ASCII RIBBON | »With the first link, the chain is forged. The first
\ / CAMPAIGN | speech censured, the first thought forbidden, the
X AGAINST | first freedom denied, chains us all irrevocably.«
/ \ HTML MAIL | (Jean-Luc Picard, quoting Judge Aaron Satie)
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 181 bytes --]
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
prev parent reply other threads:[~2021-11-29 15:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-29 14:27 Christian Melki
2021-11-29 15:31 ` Alexander Dahl [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=20211129153141.2alx7wi3tytuf5gh@falbala.internal.home.lespocky.de \
--to=post@lespocky.de \
--cc=christian.melki@t2data.com \
--cc=ptxdist@pengutronix.de \
/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