[LEDE-DEV] [PATCH V5] uboot-envtools: Change download to git.

Rosen Penev rosenp at gmail.com
Tue May 1 12:59:05 PDT 2018


Currently, the build system uses an openwrt mirror which does not currently
work and FTP can be unreliable under several circumstances (Ubuntu 16.04
WSL being an example). This change implicitly allows using all the mirrors
to download.

Changing this to git also allows using .tar.xz archives which are smaller.

Size difference:

12304292 u-boot-2018.03.tar.bz2
10060652 u-boot-2018.03.tar.xz

Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
v2: Change git URL from GitHub to official mirror.
v3: Change URL to HTTPS now that Wolfgang Denke added support.
v4: Rebased against current master. Old sizes:
10416503 u-boot-2015.10.tar.bz2
8351456 u-boot-2015.10.tar.xz
v5: Actually rebased against master and formated to 75 chars per line.
 package/boot/uboot-envtools/Makefile | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/package/boot/uboot-envtools/Makefile b/package/boot/uboot-envtools/Makefile
index 8de6455..2f8dd0a 100644
--- a/package/boot/uboot-envtools/Makefile
+++ b/package/boot/uboot-envtools/Makefile
@@ -12,12 +12,13 @@ PKG_DISTNAME:=u-boot
 PKG_VERSION:=2018.03
 PKG_RELEASE:=1
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/u-boot-$(PKG_VERSION)
-PKG_SOURCE:=$(PKG_DISTNAME)-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=\
-	http://mirror2.openwrt.org/sources \
-	ftp://ftp.denx.de/pub/u-boot
-PKG_HASH:=7e7477534409d5368eb1371ffde6820f0f79780a1a1f676161c48442cb303dfd
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE:=$(PKG_DISTNAME)-$(PKG_VERSION).tar.xz
+PKG_SOURCE_SUBDIR:=$(PKG_DISTNAME)-$(PKG_VERSION)
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_DISTNAME)-$(PKG_VERSION)
+PKG_SOURCE_URL:=https://git.denx.de/u-boot.git
+PKG_SOURCE_VERSION:=f95ab1fb6e37f0601f397091bb011edf7a98b890
+PKG_MIRROR_HASH:=b50d8b6fe0d90b92c8c147457b1b4c2ed1cdb03191085cfc57fdad77c0bfffab
 
 PKG_BUILD_DEPENDS:=fstools
 
-- 
2.7.4




More information about the Lede-dev mailing list