From: Christian Melki <christian.melki@t2data.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] tf-a: Make URL configurable.
Date: Mon, 29 Nov 2021 15:26:57 +0100 [thread overview]
Message-ID: <20211129142657.595373-1-christian.melki@t2data.com> (raw)
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
next reply other threads:[~2021-11-29 14:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-29 14:26 Christian Melki [this message]
2021-12-10 13:07 ` [ptxdist] [APPLIED] " Michael Olbrich
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=20211129142657.595373-1-christian.melki@t2data.com \
--to=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