toolchain/: convert to DOWNLOAD helper
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 16 Jan 2009 11:47:05 +0000 (11:47 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 16 Jan 2009 11:47:05 +0000 (11:47 -0000)
toolchain/binutils/binutils.mk
toolchain/ccache/ccache.mk
toolchain/gcc/gcc-uclibc-3.x.mk
toolchain/gcc/gcc-uclibc-4.x.mk
toolchain/gdb/gdb.mk
toolchain/kernel-headers/kernel-headers.mk
toolchain/uClibc/uclibc.mk

index a9ec7d35289a79acdc2049e789e420f14b411a90..c285c6a62dd369240bdb22e1264ab71b544898a6 100644 (file)
@@ -84,7 +84,7 @@ BINUTILS_DIR1:=$(TOOL_BUILD_DIR)/binutils-$(BINUTILS_VERSION)-build
 
 $(DL_DIR)/$(BINUTILS_SOURCE):
        mkdir -p $(DL_DIR)
-       $(WGET) -P $(DL_DIR) $(BINUTILS_SITE)/$(BINUTILS_SOURCE)
+       $(call DOWNLOAD,$(BINUTILS_SITE),$(BINUTILS_SOURCE))
 
 binutils-unpacked: $(BINUTILS_DIR)/.patched
 $(BINUTILS_DIR)/.unpacked: $(DL_DIR)/$(BINUTILS_SOURCE)
index d34bfb3e74e39f584e9f0e728b38f9ff145123eb..723b8719fda306adce407f7e41849a8498d4879a 100644 (file)
@@ -13,7 +13,7 @@ CCACHE_BINARY:=ccache
 CCACHE_TARGET_BINARY:=usr/bin/ccache
 
 $(DL_DIR)/$(CCACHE_SOURCE):
-       $(WGET) -P $(DL_DIR) $(CCACHE_SITE)/$(CCACHE_SOURCE)
+       $(call DOWNLOAD,$(CCACHE_SITE),$(CCACHE_SOURCE))
 
 $(CCACHE_DIR1)/.unpacked: $(DL_DIR)/$(CCACHE_SOURCE)
        $(CCACHE_CAT) $(DL_DIR)/$(CCACHE_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
index 3f1a3cac44d5711859fe0a52937201f36c702b7f..fc59b6bf65cc4fb736f2973f6192fc90dfccc9b8 100644 (file)
@@ -138,7 +138,7 @@ GCC_BUILD_DIR1:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION)-initial
 
 $(DL_DIR)/$(GCC_SOURCE):
        mkdir -p $(DL_DIR)
-       $(WGET) -P $(DL_DIR) $(GCC_SITE)/$(GCC_SOURCE)
+       $(call DOWNLOAD,$(GCC_SITE),$(GCC_SOURCE))
 
 gcc-unpacked: $(GCC_DIR)/.patched
 $(GCC_DIR)/.unpacked: $(DL_DIR)/$(GCC_SOURCE)
index 793e368405bc7dfb3ff8f98905ca3cdb2426693f..88878a8ced1a9ac2a7b68775790f81b2294039f1 100644 (file)
@@ -149,7 +149,7 @@ HOST_SOURCE+=gcc-source
 
 $(DL_DIR)/$(GCC_SOURCE):
        mkdir -p $(DL_DIR)
-       $(WGET) -P $(DL_DIR) $(GCC_SITE)/$(GCC_SOURCE)
+       $(call DOWNLOAD,$(GCC_SITE),$(GCC_SOURCE))
 
 gcc-unpacked: $(GCC_DIR)/.patched
 $(GCC_DIR)/.unpacked: $(DL_DIR)/$(GCC_SOURCE)
index f239dba01550149f565b215d680be315ad9df32e..6e46c0bd1922a17180a80744b541ff6104492038 100644 (file)
@@ -41,7 +41,7 @@ endif
 endif
 
 $(DL_DIR)/$(GDB_SOURCE):
-       $(WGET) -P $(DL_DIR) $(GDB_SITE)/$(GDB_SOURCE)
+       $(call DOWNLOAD,$(GDB_SITE),$(GDB_SOURCE))
 
 gdb-unpacked: $(GDB_DIR)/.unpacked
 $(GDB_DIR)/.unpacked: $(DL_DIR)/$(GDB_SOURCE)
index 50326c6cdd6755dc46f3b4a5b64011ce6d460d14..dd81555980474197c7fab0c78b54925adcb5ca78 100644 (file)
@@ -31,7 +31,7 @@ include toolchain/kernel-headers/kernel-headers-new.makefile
 include toolchain/kernel-headers/kernel-headers-old.makefile
 
 $(DL_DIR)/$(LINUX_HEADERS_SOURCE):
-       $(WGET) -P $(DL_DIR) $(LINUX_HEADERS_SITE)/$(LINUX_HEADERS_SOURCE)
+       $(call DOWNLOAD,$(LINUX_HEADERS_SITE),$(LINUX_HEADERS_SOURCE))
 
 kernel-headers: $(LINUX_HEADERS_DIR)/.configured
 
index af35e33d285815e9d5ed8462f9523a4e66730688..b595b22d75d20228a25575652b58d71fd70fc85e 100644 (file)
@@ -94,14 +94,14 @@ UCLIBC_SPARC_TYPE:=CONFIG_SPARC_$(strip $(subst ",, $(BR2_SPARC_TYPE)))
 #"))
 
 $(DL_DIR)/$(UCLIBC_SOURCE):
-       $(WGET) -P $(DL_DIR) $(UCLIBC_SITE)/$(UCLIBC_SOURCE)
+       $(call DOWNLOAD,$(UCLIBC_SITE),$(UCLIBC_SOURCE))
 
 ifneq ($(BR2_ENABLE_LOCALE_PREGENERATED),)
 UCLIBC_SITE_LOCALE:=http://www.uclibc.org/downloads
 UCLIBC_SOURCE_LOCALE:=uClibc-locale-030818.tgz
 
 $(DL_DIR)/$(UCLIBC_SOURCE_LOCALE):
-       $(WGET) -P $(DL_DIR) $(UCLIBC_SITE_LOCALE)/$(UCLIBC_SOURCE_LOCALE)
+       $(call DOWNLOAD,$(UCLIBC_SITE_LOCALE),$(UCLIBC_SOURCE_LOCALE))
 
 UCLIBC_LOCALE_DATA:=$(DL_DIR)/$(UCLIBC_SOURCE_LOCALE)
 else