add target/download
authorFelix Fietkau <nbd@openwrt.org>
Tue, 20 Jun 2006 23:56:49 +0000 (23:56 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 20 Jun 2006 23:56:49 +0000 (23:56 +0000)
SVN-Revision: 4030

openwrt/target/Makefile
openwrt/target/linux/Makefile
openwrt/target/linux/ar7-2.4/Makefile
openwrt/target/linux/image/image.mk
openwrt/target/linux/image/jffs2.mk
openwrt/target/linux/image/squashfs.mk
openwrt/target/lzma/Makefile
openwrt/target/utils/Makefile

index 709a2080a51d709881b0e65d8f4b288855a8364b..d64053cbd400103e725176bc06f5015f49c319cb 100644 (file)
@@ -5,19 +5,24 @@ all: install
 $(BIN_DIR):
        mkdir -p $(BIN_DIR)
 
+TARGETS:=linux utils lzma
+
 linux-compile: utils-install lzma-install
 linux-install: $(BIN_DIR)
 
+download: $(patsubst %,%-source,$(TARGETS))
 prepare: linux-prepare
 compile: linux-compile
 install: image_clean linux-install
-clean: linux-clean utils-clean lzma-clean image_clean
+clean: $(patsubst %,%-clean,$(TARGETS)) image_clean
 
 image_clean: FORCE
        rm -f $(BIN_DIR)/openwrt-*
 
 %-clean: FORCE
        $(MAKE) -C $(patsubst %-clean,%,$@) clean
+%-source: FORCE
+       $(MAKE) -C $(patsubst %-source,%,$@) source
 %-prepare: FORCE
        $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
 %-compile: %-prepare
index c08bb4c89c053b15bf2039d09ccb3ede383c19f1..2caee31b3661042770517a02d4ad87a3b3894291 100644 (file)
@@ -25,6 +25,10 @@ $(eval $(call kernel_template,2.6,sibyte,2_6_SIBYTE))
 export BOARD
 export KERNEL
 
+source:
+       $(MAKE) -C $(BOARD)-$(KERNEL) source
+       $(MAKE) -C image/$(BOARD) source
+
 prepare:
        $(MAKE) -C $(BOARD)-$(KERNEL) prepare
 
index 7775e88884664cba7dc59882de43b453e6658960..20ad3523ac22f12b4b3b65caa818d866b01aa9dc 100644 (file)
@@ -49,6 +49,7 @@ ATM_FIRMWARE_MD5SUM=8bfcb31109796502d66b11baaeb2fba6
 $(DL_DIR)/$(ATM_FIRMWARE_FILE):
        $(SCRIPT_DIR)/download.pl $(DL_DIR) $(ATM_FIRMWARE_FILE) $(ATM_FIRMWARE_MD5SUM) $(DOWNLOAD_SITE)
 
+source: $(DL_DIR)/$(ATM_FIRMWARE_FILE)
 $(LINUX_DIR)/.unpacked: $(DL_DIR)/$(ATM_FIRMWARE_FILE)
 $(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
 $(LINUX_DIR)/.modules_done: $(LINUX_DIR)/.drivers-unpacked
index 1c9341dd76004a7a22d6a7bf5480d3d585b1c595..92143d64e8d512b5ce5f062130f2f868ec728de0 100644 (file)
@@ -48,6 +48,7 @@ compile-targets:
 install-targets:
 clean-targets:
 
+source:
 prepare:
 compile: compile-targets
 install: compile install-targets
index dd5edd01c0f62267c07c0af41274d60d4a4ffe97..a0e14daa90c89ea3ed8ce3f6b35f331135f08ad6 100644 (file)
@@ -14,6 +14,9 @@ define Image/mkfs/jffs2
        $(call Image/Build,jffs2-128k)
 endef
 
+jffs2-source: FORCE
+       $(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 source
+
 $(STAGING_DIR)/bin/mkfs.jffs2:
        $(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 compile
 
@@ -21,6 +24,7 @@ jffs2-clean: FORCE
        $(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 clean
        rm -f $(KDIR)/root.jffs2*
 
+source: jffs2-source
 compile-targets: $(STAGING_DIR)/bin/mkfs.jffs2
 clean-targets: jffs2-clean
 
index 6890daec680b5df6ce9e854fc4f67b69af5d6760..e01766c0caba278cbc82822bf48337d36d46fce8 100644 (file)
@@ -4,6 +4,9 @@ else
 ENDIAN := be
 endif
 
+squashfs-source: FORCE
+       $(MAKE) -C $(TOPDIR)/target/linux/image/squashfs source
+
 $(STAGING_DIR)/bin/mksquashfs-lzma:
        $(MAKE) -C $(TOPDIR)/target/linux/image/squashfs compile
        
index b358a9efce8f0d6a10eca672e070864e7b2f0d07..214967a15de796e52b821e7611011b2eccf3bfb7 100644 (file)
@@ -34,7 +34,6 @@ $(LZMA_DIR)/.built: $(LZMA_DIR)/.unpacked
 lzma: $(TARGETS)
        $(CP) $^ $(LZMA_DIR)
 
-lzma-source: $(DL_DIR)/$(LZMA_SOURCE)
 
 lzma-clean: FORCE
        -$(MAKE) -C $(LZMA_LIB_DIR) clean
@@ -46,6 +45,7 @@ lzma-dirclean: FORCE
 
 #############################################################
 
+source: $(DL_DIR)/$(LZMA_SOURCE)
 prepare: $(LZMA_DIR)/.unpacked
 compile: lzma
 install: lzma FORCE
index fe354754ce68132c0e026c564786fa235beab926..bcd1e653e42fa8b43c6d6fd4a65aa7176cf8a3e7 100644 (file)
@@ -4,6 +4,7 @@ TARGETS := addpattern trx motorola-bin dgfirmware
 
 UTILS_BUILD_DIR:=$(BUILD_DIR)/target-utils
 
+source:
 prepare: $(UTILS_BUILD_DIR)
 compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS)) FORCE
        mkdir -p $(STAGING_DIR)/bin