mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Dahl <ada@thorsis.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 1/2] u-boot: Introduce make macro for URL
Date: Thu, 26 Aug 2021 10:48:41 +0200	[thread overview]
Message-ID: <20210826084842.21421-2-ada@thorsis.com> (raw)
In-Reply-To: <20210826084842.21421-1-ada@thorsis.com>

This can be used in additional u-boot packages as well.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 rules/pre/u-boot.make | 15 +++++++++++++++
 rules/u-boot.make     |  2 +-
 2 files changed, 16 insertions(+), 1 deletion(-)
 create mode 100644 rules/pre/u-boot.make

diff --git a/rules/pre/u-boot.make b/rules/pre/u-boot.make
new file mode 100644
index 000000000..291a7764e
--- /dev/null
+++ b/rules/pre/u-boot.make
@@ -0,0 +1,15 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Alexander Dahl <ada@thorsis.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+u-boot/url = \
+	https://ftp.denx.de/pub/u-boot/u-boot-$($(1)_VERSION).$($(1)_SUFFIX)
+
+u-boot-url = \
+	$(call u-boot/url,$(strip $(1)))
+
+# vim: ft=make noet ts=8 sw=8
diff --git a/rules/u-boot.make b/rules/u-boot.make
index 38c32bf27..d9a7ece3b 100644
--- a/rules/u-boot.make
+++ b/rules/u-boot.make
@@ -20,7 +20,7 @@ U_BOOT_VERSION		:= $(call ptx/config-version, PTXCONF_U_BOOT)
 U_BOOT_MD5		:= $(call ptx/config-md5, PTXCONF_U_BOOT)
 U_BOOT			:= u-boot-$(U_BOOT_VERSION)
 U_BOOT_SUFFIX		:= tar.bz2
-U_BOOT_URL		:= https://ftp.denx.de/pub/u-boot/$(U_BOOT).$(U_BOOT_SUFFIX)
+U_BOOT_URL		:= $(call u-boot-url, U_BOOT)
 U_BOOT_SOURCE		:= $(SRCDIR)/$(U_BOOT).$(U_BOOT_SUFFIX)
 U_BOOT_DIR		:= $(BUILDDIR)/$(U_BOOT)
 U_BOOT_BUILD_DIR	:= $(U_BOOT_DIR)-build
-- 
2.30.2


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


  reply	other threads:[~2021-08-26  8:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-26  8:48 [ptxdist] [PATCH 0/2] Add u-boot template Alexander Dahl
2021-08-26  8:48 ` Alexander Dahl [this message]
2021-08-26  8:48 ` [ptxdist] [PATCH 2/2] templates: Introduce new " Alexander Dahl
2021-09-03 15:23   ` Michael Olbrich
     [not found] ` <CABDcavZJN7-BmEKPi5s_r=J-vi=_5=-RHofjbsVgNmuBz5QPQg@mail.gmail.com>
2021-08-26 12:25   ` [ptxdist] [PATCH 0/2] Add " Alexander Dahl
     [not found]     ` <CABDcavbtnikGhiNaJXk1AxBiTgwe_YsuHHEUVu-_3YnyyhT53A@mail.gmail.com>
2021-08-27  5:47       ` Alexander Dahl

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=20210826084842.21421-2-ada@thorsis.com \
    --to=ada@thorsis.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