From 3ff43a6838a6a67d58513ac47b2fe68b0f1d6713 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Fri, 16 Jan 2009 12:07:53 +0000 Subject: [PATCH] buildroot: convert remaining WGET users to DOWNLOAD helper --- package/mpfr/mpfr.mk | 3 ++- package/setserial/setserial.mk | 2 +- target/linux/Makefile.in | 2 +- target/linux/Makefile.in.advanced | 4 ++-- target/u-boot/Makefile.in | 2 +- toolchain/kernel-headers/kernel-headers-new.makefile | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/package/mpfr/mpfr.mk b/package/mpfr/mpfr.mk index 631be64a04..48b080dd79 100644 --- a/package/mpfr/mpfr.mk +++ b/package/mpfr/mpfr.mk @@ -21,7 +21,8 @@ ifneq ($(MPFR_PATCH),) MPFR_PATCH_SOURCE:=$(DL_DIR)/$(MPFR_PATCH_FILE) $(MPFR_PATCH_SOURCE): - $(WGET) -O $@ $(MPFR_SITE),$(MPFR_PATCH) + $(call DOWNLOAD,$(MPFR_SITE),$(MPFR_PATCH)) + mv $(DL_DIR)/$(MPFR_PATCH) $@ endif $(DL_DIR)/$(MPFR_SOURCE): diff --git a/package/setserial/setserial.mk b/package/setserial/setserial.mk index 394ae46375..73ef6015e1 100644 --- a/package/setserial/setserial.mk +++ b/package/setserial/setserial.mk @@ -18,7 +18,7 @@ $(DL_DIR)/$(SETSERIAL_SOURCE): ifneq ($(SETSERIAL_PATCH_FILE),) SETSERIAL_PATCH:=$(DL_DIR)/$(SETSERIAL_PATCH_FILE) $(SETSERIAL_PATCH): - $(WGET) -O $@ $(SETSERIAL_SITE),$(SETSERIAL_PATCH_FILE) + $(call DOWNLOAD,$(SETSERIAL_SITE),$(SETSERIAL_PATCH_FILE)) else SETSERIAL_PATCH:= endif diff --git a/target/linux/Makefile.in b/target/linux/Makefile.in index 625a2e2444..30ef3b92a1 100644 --- a/target/linux/Makefile.in +++ b/target/linux/Makefile.in @@ -108,7 +108,7 @@ $(LINUX26_KCONFIG): ifneq ($(strip $(LINUX26_VERSION)),$(strip $(LINUX_HEADERS_VERSION))) $(DL_DIR)/$(LINUX26_SOURCE): - $(WGET) -P $(DL_DIR) $(LINUX26_SITE)/$(LINUX26_SOURCE) + $(call DOWNLOAD,$(LINUX26_SITE),$(LINUX26_SOURCE)) endif # ($(LINUX26_VERSION),$(LINUX_HEADERS_VERSION)) $(LINUX26_DIR)/.unpacked: $(DL_DIR)/$(LINUX26_SOURCE) diff --git a/target/linux/Makefile.in.advanced b/target/linux/Makefile.in.advanced index 15dff261e1..d2d985b530 100644 --- a/target/linux/Makefile.in.advanced +++ b/target/linux/Makefile.in.advanced @@ -203,12 +203,12 @@ LINUX26_MAKE_FLAGS = HOSTCC="$(HOSTCC)" HOSTCFLAGS="$(HOSTCFLAGS)" \ ifneq ($(strip $(LINUX26_SOURCE)),$(strip $(LINUX_HEADERS_SOURCE))) $(DL_DIR)/$(LINUX26_SOURCE): - $(WGET) -P $(DL_DIR) $(LINUX26_SITE)/$(LINUX26_SOURCE) + $(call DOWNLOAD,$(LINUX26_SITE),$(LINUX26_SOURCE)) endif # ($(LINUX26_VERSION),$(LINUX_HEADERS_VERSION)) ifneq ($(strip $(LINUX26_PATCH_SOURCE)),) $(DL_DIR)/$(LINUX26_PATCH_SOURCE): - $(WGET) -P $(DL_DIR) $(LINUX26_PATCH_SITE)/$(LINUX26_PATCH_SOURCE) + $(call DOWNLOAD,$(LINUX26_PATCH_SITE),$(LINUX26_PATCH_SOURCE)) endif $(LINUX26_DIR)/.unpacked: $(DL_DIR)/$(LINUX26_SOURCE) diff --git a/target/u-boot/Makefile.in b/target/u-boot/Makefile.in index b5bb8e1ddc..baf331da7f 100644 --- a/target/u-boot/Makefile.in +++ b/target/u-boot/Makefile.in @@ -76,7 +76,7 @@ endef #")) $(DL_DIR)/$(U_BOOT_SOURCE): - $(WGET) -P $(DL_DIR) $(U_BOOT_SITE)/$(U_BOOT_SOURCE) + $(call DOWNLOAD,$(U_BOOT_SITE),$(U_BOOT_SOURCE)) $(U_BOOT_DIR)/.unpacked: $(DL_DIR)/$(U_BOOT_SOURCE) $(U_BOOT_CAT) $(DL_DIR)/$(U_BOOT_SOURCE) \ diff --git a/toolchain/kernel-headers/kernel-headers-new.makefile b/toolchain/kernel-headers/kernel-headers-new.makefile index 42c943d878..7b66578efb 100644 --- a/toolchain/kernel-headers/kernel-headers-new.makefile +++ b/toolchain/kernel-headers/kernel-headers-new.makefile @@ -45,7 +45,7 @@ LINUX_RT_SOURCE:=patch-$(LINUX_HEADERS_VERSION)-$(LINUX_RT_VERSION) LINUX_RT_SITE:=$(BR2_KERNEL_MIRROR)/linux/kernel/projects/rt/older/ LINUX_HEADERS_DEPENDS+=$(DL_DIR)/$(LINUX_RT_SOURCE) $(DL_DIR)/$(LINUX_RT_SOURCE): - $(WGET) -P $(DL_DIR) $(LINUX_RT_SITE)/$(LINUX_RT_SOURCE) + $(call DOWNLOAD,$(LINUX_RT_SITE),$(LINUX_RT_SOURCE)) endif $(LINUX_HEADERS_UNPACK_DIR)/.unpacked: $(DL_DIR)/$(LINUX_HEADERS_SOURCE) -- 2.30.2