target/: convert to DOWNLOAD helper
This commit is contained in:
parent
0ef35d5d5e
commit
ed5f6093c0
@ -11,10 +11,10 @@ CLOOP_SITE=http://debian-knoppix.alioth.debian.org/sources/
|
||||
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 -
|
||||
|
@ -14,7 +14,7 @@ CRAMFS_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/cram
|
||||
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 -
|
||||
|
@ -41,7 +41,7 @@ LINUX26_MAKE_FLAGS = $(TARGET_CONFIGURE_OPTS) ARCH=$(KERNEL_ARCH) \
|
||||
|
||||
|
||||
$(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)
|
||||
|
@ -13,7 +13,7 @@ DATAFLASHBOOT_DIR:=$(PROJECT_BUILD_DIR)/$(DATAFLASHBOOT_NAME)
|
||||
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)
|
||||
|
@ -42,7 +42,7 @@ AT91_CUSTOM_FLAGS+=-DIMG_SIZE=$(AT91BOOTSTRAP_IMG_SIZE)
|
||||
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)
|
||||
|
@ -43,10 +43,10 @@ TARGET_UBOOT_ETHADDR:=$(strip $(subst ",, $(BR2_TARGET_UBOOT_ETHADDR_AT91)))
|
||||
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)
|
||||
|
@ -57,7 +57,7 @@ LINUX_SOURCE_DIR=$(LINUX_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)
|
||||
|
@ -58,7 +58,7 @@ LINUX_SOURCE_DIR=$(LINUX_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)
|
||||
|
@ -30,7 +30,7 @@ SOEKRIS_GPIO_CAT:=$(ZCAT)
|
||||
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)
|
||||
|
||||
|
@ -46,7 +46,7 @@ LINUX_SOURCE_DIR=$(LINUX_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)
|
||||
|
@ -56,7 +56,7 @@ LINUX_SOURCE_DIR=$(LINUX_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)
|
||||
|
@ -9,7 +9,7 @@ GENEXT2_SOURCE=genext2fs-$(GENEXT2_VERSION).tar.gz
|
||||
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 -
|
||||
|
@ -10,7 +10,7 @@ MKISOFS_DIR:=$(BUILD_DIR)/cdrtools-2.01
|
||||
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)
|
||||
|
||||
|
@ -11,7 +11,7 @@ YABOOT_SITE:=http://penguinppc.org/bootloaders/yaboot
|
||||
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)
|
||||
|
||||
|
@ -9,7 +9,7 @@ ROMFS_SOURCE=genromfs-$(ROMFS_VERSION).tar.gz
|
||||
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 -
|
||||
|
@ -10,7 +10,7 @@ SQUASHFS_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/s
|
||||
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 -
|
||||
|
@ -13,7 +13,7 @@ MKFS_UBIFS_CAT:=$(ZCAT)
|
||||
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 -
|
||||
|
@ -62,10 +62,10 @@ GRUB_CONFIG-$(BR2_TARGET_GRUB_via_rhine) += --enable-via-rhine
|
||||
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)
|
||||
|
||||
|
@ -62,10 +62,10 @@ GRUB2_CONFIG-$(BR2_TARGET_GRUB2_via_rhine) += --enable-via-rhine
|
||||
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)
|
||||
|
||||
|
@ -32,7 +32,7 @@ SYSLINUX_BIN=$(SYSLINUX_DIR2)/mtools/syslinux
|
||||
|
||||
|
||||
$(DL_DIR)/$(SYSLINUX_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(SYSLINUX_SITE)/$(SYSLINUX_SOURCE)
|
||||
$(call DOWNLOAD,$(SYSLINUX_SITE),$(SYSLINUX_SOURCE))
|
||||
|
||||
syslinux-source: $(DL_DIR)/$(SYSLINUX_SOURCE)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user