summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-07-25 19:50:10 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-07-25 19:50:10 +0000
commit838c0682f8aa89b10fe77737ab6442f27a1bac64 (patch)
treef3cbfa86302db2c8ef6059927a28d6362d8f0004 /target/linux
parent0e783dde14d79785b9ce5a7fec9a07179ffbccba (diff)
downloadmtk-20170518-838c0682f8aa89b10fe77737ab6442f27a1bac64.zip
mtk-20170518-838c0682f8aa89b10fe77737ab6442f27a1bac64.tar.gz
mtk-20170518-838c0682f8aa89b10fe77737ab6442f27a1bac64.tar.bz2
fix firmware image of the TL-WR741ND
SVN-Revision: 16981
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/image/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index b18b28a..d1d4b47 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/image.mk
IMGNAME:=$(BIN_DIR)/openwrt-$(BOARD)
define imgname
-$(IMGNAME)-$(2)-$(patsubst jffs2-%,jffs2,$(1))
+$(IMGNAME)-$(2)-$(patsubst jffs2-%,jffs2,$(patsubst squashfs-%,squashfs,$(1)))
endef
VMLINUX:=$(IMGNAME)-vmlinux
@@ -156,7 +156,7 @@ define Image/Build/TPLINK
-B $(4) -N OpenWrt -V $(REVISION)\
-k $(KDIR)/vmlinux-$(2).bin.gzip \
-r $(BIN_DIR)/openwrt-$(BOARD)-root.$(1) \
- -o $(BIN_DIR)/openwrt-$(BOARD)-$(2)-$(1).uni
+ -o $(call imgname,$(1),$(2)).uni
endef
define Image/Build/Template/Compex
@@ -207,6 +207,14 @@ define Image/Build/Template/TPLINK/squashfs
$(call Image/Build/Template/TPLINK,squashfs,$(1),$(2),$(3))
endef
+define Image/Build/Template/TPLINK4K
+ $(call Image/Build/TPLINK,$(1),$(2),$(3),$(4))
+endef
+
+define Image/Build/Template/TPLINK4K/squashfs
+ $(call Image/Build/Template/TPLINK,squashfs-4k,$(1),$(2),$(3))
+endef
+
define Image/Build/Template/UBNT
$(call Image/Build/UBNT,$(1),$(2),$(3),$(4),$(5),$(6))
endef
@@ -282,7 +290,7 @@ define Image/Build/Profile/MZKW300NH
endef
define Image/Build/Profile/TLWR741NDV1
- $(call Image/Build/Template/TPLINK/$(1),tl-wr741ndv1,board=TL-WR741ND,TL-WR741NDv1)
+ $(call Image/Build/Template/TPLINK4K/$(1),tl-wr741ndv1,board=TL-WR741ND,TL-WR741NDv1)
endef
define Image/Build/Profile/TLWR841NDV3
@@ -319,6 +327,8 @@ define Image/Build/Profile/Madwifi
endef
define Image/Build/squashfs
+ dd if=$(KDIR)/root.squashfs of=$(IMGNAME)-root.squashfs-4k bs=4k conv=sync
+ $(call add_jffs2_mark,$(IMGNAME)-root.squashfs-4k)
$(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
endef