mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] tf-a: Make URL configurable.
@ 2021-11-29 14:26 Christian Melki
  2021-12-10 13:07 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Melki @ 2021-11-29 14:26 UTC (permalink / raw)
  To: ptxdist

Since both version and md5 variables are configurable,
might aswell complete it with URL one.
This enables tf-a.make to build other TF-A trees,
other than the default one.
Most notably, CodeAurora i.MX or other downstream vendor trees.

Signed-off-by: Christian Melki <christian.melki@t2data.com>
---
 platforms/tf-a.in | 7 +++++++
 rules/tf-a.make   | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/platforms/tf-a.in b/platforms/tf-a.in
index 0936319f1..82df480ab 100644
--- a/platforms/tf-a.in
+++ b/platforms/tf-a.in
@@ -9,6 +9,13 @@ menuconfig TF_A
 
 if TF_A
 
+config TF_A_URL
+	string
+	default "https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/snapshot"
+	prompt "TF-A URL"
+	help
+	  Enter the TF-A URL you want to use.
+
 config TF_A_VERSION
 	string
 	default "v2.2"
diff --git a/rules/tf-a.make b/rules/tf-a.make
index dc8a34710..25fdb0cd2 100644
--- a/rules/tf-a.make
+++ b/rules/tf-a.make
@@ -19,7 +19,7 @@ TF_A_VERSION	:= $(call ptx/config-version, PTXCONF_TF_A)
 TF_A_MD5	:= $(call ptx/config-md5, PTXCONF_TF_A)
 TF_A		:= tf-a-$(TF_A_VERSION)
 TF_A_SUFFIX	:= tar.gz
-TF_A_URL	:= https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/snapshot/$(TF_A_VERSION).$(TF_A_SUFFIX)
+TF_A_URL	:= $(PTXCONF_TF_A_URL)/$(TF_A_VERSION).$(TF_A_SUFFIX)
 TF_A_SOURCE	:= $(SRCDIR)/$(TF_A).$(TF_A_SUFFIX)
 TF_A_DIR	:= $(BUILDDIR)/$(TF_A)
 TF_A_BUILDDIR	:= $(TF_A_DIR)/build
-- 
2.30.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [APPLIED] tf-a: Make URL configurable.
  2021-11-29 14:26 [ptxdist] [PATCH] tf-a: Make URL configurable Christian Melki
@ 2021-12-10 13:07 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2021-12-10 13:07 UTC (permalink / raw)
  To: ptxdist; +Cc: Christian Melki

Thanks, applied as 7ce9220827948602b60bfb317d0c9a29f933f0ae.

Michael

[sent from post-receive hook]

On Fri, 10 Dec 2021 14:07:02 +0100, Christian Melki <christian.melki@t2data.com> wrote:
> Since both version and md5 variables are configurable,
> might aswell complete it with URL one.
> This enables tf-a.make to build other TF-A trees,
> other than the default one.
> Most notably, CodeAurora i.MX or other downstream vendor trees.
> 
> Signed-off-by: Christian Melki <christian.melki@t2data.com>
> Message-Id: <20211129142657.595373-1-christian.melki@t2data.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/platforms/tf-a.in b/platforms/tf-a.in
> index 0936319f1b81..82df480ab3c3 100644
> --- a/platforms/tf-a.in
> +++ b/platforms/tf-a.in
> @@ -9,6 +9,13 @@ menuconfig TF_A
>  
>  if TF_A
>  
> +config TF_A_URL
> +	string
> +	default "https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/snapshot"
> +	prompt "TF-A URL"
> +	help
> +	  Enter the TF-A URL you want to use.
> +
>  config TF_A_VERSION
>  	string
>  	default "v2.2"
> diff --git a/rules/tf-a.make b/rules/tf-a.make
> index dc8a34710e4e..25fdb0cd213a 100644
> --- a/rules/tf-a.make
> +++ b/rules/tf-a.make
> @@ -19,7 +19,7 @@ TF_A_VERSION	:= $(call ptx/config-version, PTXCONF_TF_A)
>  TF_A_MD5	:= $(call ptx/config-md5, PTXCONF_TF_A)
>  TF_A		:= tf-a-$(TF_A_VERSION)
>  TF_A_SUFFIX	:= tar.gz
> -TF_A_URL	:= https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/snapshot/$(TF_A_VERSION).$(TF_A_SUFFIX)
> +TF_A_URL	:= $(PTXCONF_TF_A_URL)/$(TF_A_VERSION).$(TF_A_SUFFIX)
>  TF_A_SOURCE	:= $(SRCDIR)/$(TF_A).$(TF_A_SUFFIX)
>  TF_A_DIR	:= $(BUILDDIR)/$(TF_A)
>  TF_A_BUILDDIR	:= $(TF_A_DIR)/build

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-10 13:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-29 14:26 [ptxdist] [PATCH] tf-a: Make URL configurable Christian Melki
2021-12-10 13:07 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox