This can be used in additional u-boot packages as well. Signed-off-by: Alexander Dahl <[email protected]> --- 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 <[email protected]> +# +# 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 [email protected] To unsubscribe, send a mail with subject "unsubscribe" to [email protected]
