$(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
export BOARD
export KERNEL
+source:
+ $(MAKE) -C $(BOARD)-$(KERNEL) source
+ $(MAKE) -C image/$(BOARD) source
+
prepare:
$(MAKE) -C $(BOARD)-$(KERNEL) prepare
$(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
install-targets:
clean-targets:
+source:
prepare:
compile: compile-targets
install: compile install-targets
$(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
$(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
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
lzma: $(TARGETS)
$(CP) $^ $(LZMA_DIR)
-lzma-source: $(DL_DIR)/$(LZMA_SOURCE)
lzma-clean: FORCE
-$(MAKE) -C $(LZMA_LIB_DIR) clean
#############################################################
+source: $(DL_DIR)/$(LZMA_SOURCE)
prepare: $(LZMA_DIR)/.unpacked
compile: lzma
install: lzma FORCE
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