From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 26 Aug 2021 10:49:25 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mJB4f-0001cc-6Y for lore@lore.pengutronix.de; Thu, 26 Aug 2021 10:49:25 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mJB4e-0004P2-RA; Thu, 26 Aug 2021 10:49:24 +0200 Received: from mail.thorsis.com ([92.198.35.195]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJB44-0004Ob-9Z for ptxdist@pengutronix.de; Thu, 26 Aug 2021 10:48:52 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.thorsis.com (Postfix) with ESMTP id 20E4F1A3B for ; Thu, 26 Aug 2021 10:48:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.thorsis.com Received: from mail.thorsis.com ([127.0.0.1]) by localhost (mail.thorsis.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BXgLSVMvXl9N for ; Thu, 26 Aug 2021 10:48:45 +0200 (CEST) Received: by mail.thorsis.com (Postfix, from userid 109) id 88DE33247; Thu, 26 Aug 2021 10:48:45 +0200 (CEST) Received: from adahl by ada.ifak-system.com with local (Exim 4.92) (envelope-from ) id 1mJB3y-0005aK-IV for ptxdist@pengutronix.de; Thu, 26 Aug 2021 10:48:42 +0200 From: Alexander Dahl To: ptxdist@pengutronix.de Date: Thu, 26 Aug 2021 10:48:41 +0200 Message-Id: <20210826084842.21421-2-ada@thorsis.com> In-Reply-To: <20210826084842.21421-1-ada@thorsis.com> References: <20210826084842.21421-1-ada@thorsis.com> X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,BAYES_00,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH 1/2] u-boot: Introduce make macro for URL X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false This can be used in additional u-boot packages as well. Signed-off-by: Alexander Dahl --- 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 +# +# 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