mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/3] u-boot: Move u-boot URL to github.
@ 2022-08-26 13:35 Christian Melki
  2022-08-26 13:35 ` [ptxdist] [PATCH 2/3] u-boot: Add two new u-boot image targets Christian Melki
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Christian Melki @ 2022-08-26 13:35 UTC (permalink / raw)
  To: ptxdist

* Make URL configurable. Also. This aids in pointing
ptxdist to various vendor specific releases.
* Make compression format .tar.gz. Default
github contains such releases for really old releases,
so it should be fine.
* Bump default version to something more recent.
Just cosmetics really.

Signed-off-by: Christian Melki <christian.melki@t2data.com>
---
 platforms/u-boot.in | 11 +++++++++--
 rules/u-boot.make   |  4 ++--
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/platforms/u-boot.in b/platforms/u-boot.in
index 769237081..8c7931d13 100644
--- a/platforms/u-boot.in
+++ b/platforms/u-boot.in
@@ -9,13 +9,20 @@ menuconfig U_BOOT
 
 if U_BOOT
 
+config U_BOOT_URL
+	string
+	default "https://github.com/u-boot/u-boot/releases/tag"
+	prompt "U-Boot URL"
+	help
+	  Enter the U-Boot URL you want to use.
+
 config U_BOOT_VERSION
 	string
-	default "2019.01"
+	default "v2022.01"
 	prompt "U-Boot version"
 	help
 	  Enter the U-Boot version you want to build. Usually something like
-	  "2019.01".
+	  "v2022.01".
 
 config U_BOOT_MD5
 	string
diff --git a/rules/u-boot.make b/rules/u-boot.make
index cadca4a6b..1ba6d47b0 100644
--- a/rules/u-boot.make
+++ b/rules/u-boot.make
@@ -19,8 +19,8 @@ PACKAGES-$(PTXCONF_U_BOOT) += u-boot
 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_SUFFIX		:= tar.gz
+U_BOOT_URL		:= $(PTXCONF_U_BOOT_URL)/$(U_BOOT_VERSION).$(U_BOOT_SUFFIX)
 U_BOOT_SOURCE		:= $(SRCDIR)/$(U_BOOT).$(U_BOOT_SUFFIX)
 U_BOOT_DIR		:= $(BUILDDIR)/$(U_BOOT)
 U_BOOT_BUILD_DIR	:= $(U_BOOT_DIR)$(call ptx/ifdef, PTXCONF_U_BOOT_BUILD_OOT,-build)
-- 
2.34.1




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

end of thread, other threads:[~2022-08-30  9:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-26 13:35 [ptxdist] [PATCH 1/3] u-boot: Move u-boot URL to github Christian Melki
2022-08-26 13:35 ` [ptxdist] [PATCH 2/3] u-boot: Add two new u-boot image targets Christian Melki
2022-08-26 13:35 ` [ptxdist] [PATCH 3/3] u-boot: Move image copying from targetinstall to install Christian Melki
2022-08-30  7:25   ` Michael Olbrich
2022-08-30  7:41     ` Christian Melki
2022-08-29  8:49 ` [ptxdist] [PATCH 1/3] u-boot: Move u-boot URL to github Alexander Dahl
2022-08-29 16:57   ` Christian Melki
2022-08-30  7:23     ` Michael Olbrich
2022-08-30  7:58       ` Christian Melki
2022-08-30  9:13       ` Alexander Dahl

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