While attempting to build for i.MX6, the FTP transfer of
U-Boot v2013.07 failed.

I'm not certain whether ftp access to tarballs has been
promised by Denx, but it seems more reasonable to use
the git:// protocol which is in wide use within the
U-Boot community.

Downloads for the uboot-envtools and uboot-imx6 should
also use a single target PKG_SOURCE so only one download
is needed.

Signed-off-by: Eric Nelson <[email protected]>
---
 package/boot/uboot-envtools/Makefile | 10 +++++-----
 package/boot/uboot-imx6/Makefile     |  9 +++++----
 2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/package/boot/uboot-envtools/Makefile 
b/package/boot/uboot-envtools/Makefile
index b9c8461..02c7284 100644
--- a/package/boot/uboot-envtools/Makefile
+++ b/package/boot/uboot-envtools/Makefile
@@ -12,11 +12,11 @@ PKG_DISTNAME:=u-boot
 PKG_VERSION:=2013.07
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_DISTNAME)-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot
-PKG_MD5SUM:=8445162690052e6afd4b8f87af2bb557
-
-PKG_BUILD_DIR:=$(BUILD_DIR)/u-boot-$(PKG_VERSION)
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=git://git.denx.de/u-boot.git
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_VERSION:=v2013.07
+PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.gz
 
 include $(INCLUDE_DIR)/package.mk
 
diff --git a/package/boot/uboot-imx6/Makefile b/package/boot/uboot-imx6/Makefile
index 21c7b09..080079f 100644
--- a/package/boot/uboot-imx6/Makefile
+++ b/package/boot/uboot-imx6/Makefile
@@ -11,10 +11,11 @@ PKG_NAME:=u-boot
 PKG_VERSION:=2013.07
 PKG_RELEASE:=1
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot
-PKG_MD5SUM:=8445162690052e6afd4b8f87af2bb557
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=git://git.denx.de/u-boot.git
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_VERSION:=v2013.07
+PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.gz
 
 include $(INCLUDE_DIR)/package.mk
 
-- 
1.8.1.2
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to