add target/download
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4030 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
6243bf9649
commit
00ea655b03
|
@ -5,19 +5,24 @@ all: install
|
||||||
$(BIN_DIR):
|
$(BIN_DIR):
|
||||||
mkdir -p $(BIN_DIR)
|
mkdir -p $(BIN_DIR)
|
||||||
|
|
||||||
|
TARGETS:=linux utils lzma
|
||||||
|
|
||||||
linux-compile: utils-install lzma-install
|
linux-compile: utils-install lzma-install
|
||||||
linux-install: $(BIN_DIR)
|
linux-install: $(BIN_DIR)
|
||||||
|
|
||||||
|
download: $(patsubst %,%-source,$(TARGETS))
|
||||||
prepare: linux-prepare
|
prepare: linux-prepare
|
||||||
compile: linux-compile
|
compile: linux-compile
|
||||||
install: image_clean linux-install
|
install: image_clean linux-install
|
||||||
clean: linux-clean utils-clean lzma-clean image_clean
|
clean: $(patsubst %,%-clean,$(TARGETS)) image_clean
|
||||||
|
|
||||||
image_clean: FORCE
|
image_clean: FORCE
|
||||||
rm -f $(BIN_DIR)/openwrt-*
|
rm -f $(BIN_DIR)/openwrt-*
|
||||||
|
|
||||||
%-clean: FORCE
|
%-clean: FORCE
|
||||||
$(MAKE) -C $(patsubst %-clean,%,$@) clean
|
$(MAKE) -C $(patsubst %-clean,%,$@) clean
|
||||||
|
%-source: FORCE
|
||||||
|
$(MAKE) -C $(patsubst %-source,%,$@) source
|
||||||
%-prepare: FORCE
|
%-prepare: FORCE
|
||||||
$(MAKE) -C $(patsubst %-prepare,%,$@) prepare
|
$(MAKE) -C $(patsubst %-prepare,%,$@) prepare
|
||||||
%-compile: %-prepare
|
%-compile: %-prepare
|
||||||
|
|
|
@ -25,6 +25,10 @@ $(eval $(call kernel_template,2.6,sibyte,2_6_SIBYTE))
|
||||||
export BOARD
|
export BOARD
|
||||||
export KERNEL
|
export KERNEL
|
||||||
|
|
||||||
|
source:
|
||||||
|
$(MAKE) -C $(BOARD)-$(KERNEL) source
|
||||||
|
$(MAKE) -C image/$(BOARD) source
|
||||||
|
|
||||||
prepare:
|
prepare:
|
||||||
$(MAKE) -C $(BOARD)-$(KERNEL) prepare
|
$(MAKE) -C $(BOARD)-$(KERNEL) prepare
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,7 @@ ATM_FIRMWARE_MD5SUM=8bfcb31109796502d66b11baaeb2fba6
|
||||||
$(DL_DIR)/$(ATM_FIRMWARE_FILE):
|
$(DL_DIR)/$(ATM_FIRMWARE_FILE):
|
||||||
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(ATM_FIRMWARE_FILE) $(ATM_FIRMWARE_MD5SUM) $(DOWNLOAD_SITE)
|
$(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)/.unpacked: $(DL_DIR)/$(ATM_FIRMWARE_FILE)
|
||||||
$(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
|
$(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
|
||||||
$(LINUX_DIR)/.modules_done: $(LINUX_DIR)/.drivers-unpacked
|
$(LINUX_DIR)/.modules_done: $(LINUX_DIR)/.drivers-unpacked
|
||||||
|
|
|
@ -48,6 +48,7 @@ compile-targets:
|
||||||
install-targets:
|
install-targets:
|
||||||
clean-targets:
|
clean-targets:
|
||||||
|
|
||||||
|
source:
|
||||||
prepare:
|
prepare:
|
||||||
compile: compile-targets
|
compile: compile-targets
|
||||||
install: compile install-targets
|
install: compile install-targets
|
||||||
|
|
|
@ -14,6 +14,9 @@ define Image/mkfs/jffs2
|
||||||
$(call Image/Build,jffs2-128k)
|
$(call Image/Build,jffs2-128k)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
jffs2-source: FORCE
|
||||||
|
$(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 source
|
||||||
|
|
||||||
$(STAGING_DIR)/bin/mkfs.jffs2:
|
$(STAGING_DIR)/bin/mkfs.jffs2:
|
||||||
$(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 compile
|
$(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 compile
|
||||||
|
|
||||||
|
@ -21,6 +24,7 @@ jffs2-clean: FORCE
|
||||||
$(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 clean
|
$(MAKE) -C $(TOPDIR)/target/linux/image/jffs2 clean
|
||||||
rm -f $(KDIR)/root.jffs2*
|
rm -f $(KDIR)/root.jffs2*
|
||||||
|
|
||||||
|
source: jffs2-source
|
||||||
compile-targets: $(STAGING_DIR)/bin/mkfs.jffs2
|
compile-targets: $(STAGING_DIR)/bin/mkfs.jffs2
|
||||||
clean-targets: jffs2-clean
|
clean-targets: jffs2-clean
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,9 @@ else
|
||||||
ENDIAN := be
|
ENDIAN := be
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
squashfs-source: FORCE
|
||||||
|
$(MAKE) -C $(TOPDIR)/target/linux/image/squashfs source
|
||||||
|
|
||||||
$(STAGING_DIR)/bin/mksquashfs-lzma:
|
$(STAGING_DIR)/bin/mksquashfs-lzma:
|
||||||
$(MAKE) -C $(TOPDIR)/target/linux/image/squashfs compile
|
$(MAKE) -C $(TOPDIR)/target/linux/image/squashfs compile
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,6 @@ $(LZMA_DIR)/.built: $(LZMA_DIR)/.unpacked
|
||||||
lzma: $(TARGETS)
|
lzma: $(TARGETS)
|
||||||
$(CP) $^ $(LZMA_DIR)
|
$(CP) $^ $(LZMA_DIR)
|
||||||
|
|
||||||
lzma-source: $(DL_DIR)/$(LZMA_SOURCE)
|
|
||||||
|
|
||||||
lzma-clean: FORCE
|
lzma-clean: FORCE
|
||||||
-$(MAKE) -C $(LZMA_LIB_DIR) clean
|
-$(MAKE) -C $(LZMA_LIB_DIR) clean
|
||||||
|
@ -46,6 +45,7 @@ lzma-dirclean: FORCE
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
|
|
||||||
|
source: $(DL_DIR)/$(LZMA_SOURCE)
|
||||||
prepare: $(LZMA_DIR)/.unpacked
|
prepare: $(LZMA_DIR)/.unpacked
|
||||||
compile: lzma
|
compile: lzma
|
||||||
install: lzma FORCE
|
install: lzma FORCE
|
||||||
|
|
|
@ -4,6 +4,7 @@ TARGETS := addpattern trx motorola-bin dgfirmware
|
||||||
|
|
||||||
UTILS_BUILD_DIR:=$(BUILD_DIR)/target-utils
|
UTILS_BUILD_DIR:=$(BUILD_DIR)/target-utils
|
||||||
|
|
||||||
|
source:
|
||||||
prepare: $(UTILS_BUILD_DIR)
|
prepare: $(UTILS_BUILD_DIR)
|
||||||
compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS)) FORCE
|
compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS)) FORCE
|
||||||
mkdir -p $(STAGING_DIR)/bin
|
mkdir -p $(STAGING_DIR)/bin
|
||||||
|
|
Loading…
Reference in New Issue