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

John Crispin john at phrozen.org
Tue May 1 02:17:34 PDT 2018



On 30/04/18 22:10, Rosen Penev wrote:
> Currently, the build system uses an openwrt mirror which does not currently workand 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:
>
> 10416503 u-boot-2015.10.tar.bz2
> 8351456 u-boot-2015.10.tar.xz
>
> Signed-off-by: Rosen Penev <rosenp at gmail.com>
Hi,
patch does not apply, looks like you have a prior patch in your tree 
removing the mirror ?
     John


> 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. New sizes:
> 12304292 u-boot-2018.03.tar.bz2
> 10060652 u-boot-2018.03.tar.xz
> ---
>   package/boot/uboot-envtools/Makefile | 11 +++++++----
>   1 file changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/package/boot/uboot-envtools/Makefile b/package/boot/uboot-envtools/Makefile
> index 4f7cf57..2f8dd0a 100644
> --- a/package/boot/uboot-envtools/Makefile
> +++ b/package/boot/uboot-envtools/Makefile
> @@ -12,10 +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://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
>   




More information about the Lede-dev mailing list