CLOOP_TARGET:=$(IMAGE).cloop
### Note: not used yet! ck
### $(DL_DIR)/$(CLOOP_PATCH1):
-### $(WGET) -P $(DL_DIR) $(CLOOP_PATCH1_URL)/$(CLOOP_PATCH1)
+### $(call DOWNLOAD,$(CLOOP_PATCH1_URL),$(CLOOP_PATCH1))
$(DL_DIR)/$(CLOOP_SOURCE):
- $(WGET) -P $(DL_DIR) $(CLOOP_SITE)/$(CLOOP_SOURCE)
+ $(call DOWNLOAD,$(CLOOP_SITE),$(CLOOP_SOURCE))
$(CLOOP_DIR)/.unpacked: $(DL_DIR)/$(CLOOP_SOURCE) ### $(DL_DIR)/$(CLOOP_PATCH1)
$(ZCAT) $(DL_DIR)/$(CLOOP_SOURCE) | tar -C $(BUILD_DIR) -xvf -
endif
$(DL_DIR)/$(CRAMFS_SOURCE):
- $(WGET) -P $(DL_DIR) $(CRAMFS_SITE)/$(CRAMFS_SOURCE)
+ $(call DOWNLOAD,$(CRAMFS_SITE),$(CRAMFS_SOURCE))
$(CRAMFS_DIR): $(DL_DIR)/$(CRAMFS_SOURCE)
$(ZCAT) $(DL_DIR)/$(CRAMFS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
$(DL_DIR)/$(LINUX26_SOURCE):
- $(WGET) -P $(DL_DIR) $(LINUX26_SITE)/$(LINUX26_SOURCE)
+ $(call DOWNLOAD,$(LINUX26_SITE),$(LINUX26_SOURCE))
$(LINUX26_DIR)/.unpacked: $(DL_DIR)/$(LINUX26_SOURCE)
rm -rf $(LINUX26_DIR)
DATAFLASHBOOT_BINARY:=$(DATAFLASHBOOT_NAME).bin
$(DL_DIR)/$(DATAFLASHBOOT_SOURCE):
- $(WGET) -P $(DL_DIR) $(DATAFLASHBOOT_SITE)/$(DATAFLASHBOOT_SOURCE)
+ $(call DOWNLOAD,$(DATAFLASHBOOT_SITE),$(DATAFLASHBOOT_SOURCE))
$(DATAFLASHBOOT_DIR)/.unpacked: $(DL_DIR)/$(DATAFLASHBOOT_SOURCE)
mkdir -p $(PROJECT_BUILD_DIR)
endif
$(DL_DIR)/$(AT91BOOTSTRAP_SOURCE):
- $(WGET) -P $(DL_DIR) $(AT91BOOTSTRAP_SITE)/$(AT91BOOTSTRAP_SOURCE)
+ $(call DOWNLOAD,$(AT91BOOTSTRAP_SITE),$(AT91BOOTSTRAP_SOURCE))
$(AT91BOOTSTRAP_DIR)/.unpacked: $(DL_DIR)/$(AT91BOOTSTRAP_SOURCE)
mkdir -p $(PROJECT_BUILD_DIR)
UBOOT_CUSTOM:=$(UBOOT_DIR)/include/custom.h
$(DL_DIR)/$(UBOOT_SOURCE):
- $(WGET) -P $(DL_DIR) $(UBOOT_SITE)/$(UBOOT_SOURCE)
+ $(call DOWNLOAD,$(UBOOT_SITE),$(UBOOT_SOURCE))
$(DL_DIR)/$(UBOOT_PATCH_SOURCE):
- $(WGET) -P $(DL_DIR) $(UBOOT_PATCH_SITE)/$(UBOOT_PATCH_SOURCE)
+ $(call DOWNLOAD,$(UBOOT_PATCH_SITE),$(UBOOT_PATCH_SOURCE))
$(UBOOT_DIR)/.unpacked: $(DL_DIR)/$(UBOOT_SOURCE)
mkdir -p $(BUILD_DIR)
$(DL_DIR)/$(LINUX_SOURCE):
mkdir -p $(DL_DIR)
- $(WGET) -P $(DL_DIR) $(LINUX_SITE)/$(LINUX_SOURCE)
+ $(call DOWNLOAD,$(LINUX_SITE),$(LINUX_SOURCE))
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE)
mkdir -p $(TOOL_BUILD_DIR)
$(DL_DIR)/$(LINUX_SOURCE):
mkdir -p $(DL_DIR)
- $(WGET) -P $(DL_DIR) $(LINUX_SITE)/$(LINUX_SOURCE)
+ $(call DOWNLOAD,$(LINUX_SITE),$(LINUX_SOURCE))
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE)
mkdir -p $(TOOL_BUILD_DIR)
SOEKRIS_GPIO_MODULE_DIR=lib/modules/$(LINUX_VERSION)/kernel/drivers/soekris/
$(DL_DIR)/$(SOEKRIS_GPIO_SOURCE):
- $(WGET) -P $(DL_DIR) $(SOEKRIS_GPIO_SITE)/$(SOEKRIS_GPIO_SOURCE)
+ $(call DOWNLOAD,$(SOEKRIS_GPIO_SITE),$(SOEKRIS_GPIO_SOURCE))
soekris_gpio-source: $(DL_DIR)/$(SOEKRIS_GPIO_SOURCE)
$(DL_DIR)/$(LINUX_SOURCE):
mkdir -p $(DL_DIR)
- $(WGET) -P $(DL_DIR) $(LINUX_SITE)/$(LINUX_SOURCE)
+ $(call DOWNLOAD,$(LINUX_SITE),$(LINUX_SOURCE))
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE)
mkdir -p $(TOOL_BUILD_DIR)
$(DL_DIR)/$(LINUX_SOURCE):
mkdir -p $(DL_DIR)
- $(WGET) -P $(DL_DIR) $(LINUX_SITE)/$(LINUX_SOURCE)
+ $(call DOWNLOAD,$(LINUX_SITE),$(LINUX_SOURCE))
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE)
mkdir -p $(TOOL_BUILD_DIR)
GENEXT2_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/genext2fs
$(DL_DIR)/$(GENEXT2_SOURCE):
- $(WGET) -P $(DL_DIR) $(GENEXT2_SITE)/$(GENEXT2_SOURCE)
+ $(call DOWNLOAD,$(GENEXT2_SITE),$(GENEXT2_SOURCE))
$(GENEXT2_DIR)/.unpacked: $(DL_DIR)/$(GENEXT2_SOURCE)
$(ZCAT) $(DL_DIR)/$(GENEXT2_SOURCE) | tar -C $(BUILD_DIR) -xvf -
MKISOFS_TARGET:=$(MKISOFS_DIR)/mkisofs/OBJ/i686-linux-cc/mkisofs
$(DL_DIR)/$(MKISOFS_SOURCE):
- $(WGET) -P $(DL_DIR) $(MKISOFS_SITE)/$(MKISOFS_SOURCE)
+ $(call DOWNLOAD,$(MKISOFS_SITE),$(MKISOFS_SOURCE))
mkisofs-source: $(DL_DIR)/$(MKISOFS_SOURCE)
YABOOT_DIR:=$(BUILD_DIR)/yaboot-1.3.13
$(DL_DIR)/$(YABOOT_SOURCE):
- $(WGET) -P $(DL_DIR) $(YABOOT_SITE)/$(YABOOT_SOURCE)
+ $(call DOWNLOAD,$(YABOOT_SITE),$(YABOOT_SOURCE))
yaboot-source: $(DL_DIR)/$(YABOOT_SOURCE)
ROMFS_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/romfs
$(DL_DIR)/$(ROMFS_SOURCE):
- $(WGET) -P $(DL_DIR) $(ROMFS_SITE)/$(ROMFS_SOURCE)
+ $(call DOWNLOAD,$(ROMFS_SITE),$(ROMFS_SOURCE))
$(ROMFS_DIR): $(DL_DIR)/$(ROMFS_SOURCE)
$(ZCAT) $(DL_DIR)/$(ROMFS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
SQUASHFS_CAT:=$(ZCAT)
$(DL_DIR)/$(SQUASHFS_SOURCE):
- $(WGET) -P $(DL_DIR) $(SQUASHFS_SITE)/$(SQUASHFS_SOURCE)
+ $(call DOWNLOAD,$(SQUASHFS_SITE),$(SQUASHFS_SOURCE))
$(SQUASHFS_DIR)/.unpacked: $(DL_DIR)/$(SQUASHFS_SOURCE) #$(SQUASHFS_PATCH)
$(SQUASHFS_CAT) $(DL_DIR)/$(SQUASHFS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
MKFS_UBIFS_NAME:=mkfs.ubifs
$(DL_DIR)/$(MKFS_UBIFS_SOURCE):
- $(WGET) -O $(DL_DIR)/$(MKFS_UBIFS_SOURCE) "$(MKFS_UBIFS_URL)"
+ $(call DOWNLOAD,"$(MKFS_UBIFS_URL)")
$(MKFS_UBIFS_DIR)/.unpacked: $(DL_DIR)/$(MKFS_UBIFS_SOURCE)
$(ZCAT) $(DL_DIR)/$(MKFS_UBIFS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
GRUB_CONFIG-$(BR2_TARGET_GRUB_w89c840) += --enable-w89c840
$(DL_DIR)/$(GRUB_SOURCE):
- $(WGET) -P $(DL_DIR) $(GRUB_SITE)/$(GRUB_SOURCE)
+ $(call DOWNLOAD,$(GRUB_SITE),$(GRUB_SOURCE))
$(DL_DIR)/$(GRUB_PATCH):
- $(WGET) -P $(DL_DIR) $(GRUB_PATCH_SITE)/$(GRUB_PATCH)
+ $(call DOWNLOAD,$(GRUB_PATCH_SITE),$(GRUB_PATCH))
grub-source: $(DL_DIR)/$(GRUB_SOURCE) $(DL_DIR)/$(GRUB_PATCH)
GRUB2_CONFIG-$(BR2_TARGET_GRUB2_w89c840) += --enable-w89c840
$(DL_DIR)/$(GRUB2_SOURCE):
- $(WGET) -P $(DL_DIR) $(GRUB2_SITE)/$(GRUB2_SOURCE)
+ $(call DOWNLOAD,$(GRUB2_SITE),$(GRUB2_SOURCE))
$(DL_DIR)/$(GRUB2_PATCH):
- $(WGET) -P $(DL_DIR) $(GRUB2_PATCH_SITE)/$(GRUB2_PATCH)
+ $(call DOWNLOAD,$(GRUB2_PATCH_SITE),$(GRUB2_PATCH))
grub2-source: $(DL_DIR)/$(GRUB2_SOURCE) $(DL_DIR)/$(GRUB2_PATCH)
$(DL_DIR)/$(SYSLINUX_SOURCE):
- $(WGET) -P $(DL_DIR) $(SYSLINUX_SITE)/$(SYSLINUX_SOURCE)
+ $(call DOWNLOAD,$(SYSLINUX_SITE),$(SYSLINUX_SOURCE))
syslinux-source: $(DL_DIR)/$(SYSLINUX_SOURCE)