From: juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Mon, 4 Jul 2011 06:48:45 +0000 (+0000)
Subject: ramips: create factory image for DIR-300-B1
X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/f3959aee0f086bb5d72a2e3f35b7253ee7a4fba0

ramips: create factory image for DIR-300-B1

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27439 3c298f89-4303-0410-b956-a3cf2f4a3e73
---

diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile
index 446bf7b35..b1e856d89 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -82,6 +82,9 @@ mtd_dir300b1_kernel_part_size=851968
 mtd_dir300b1_rootfs_part_size=3014656
 define Image/Build/Template/DIR300B1
 	$(call BuildFirmware/Generic,$(1),$(2),board=$(3),mtdlayout_dir300b1,$(mtd_dir300b1_kernel_part_size),$(mtd_dir300b1_rootfs_part_size))
+	mkwrgimg -s wrgn23_dlwbr_dir300b -d /dev/mtdblock/2 \
+		-i $(call imgname,$(1),$(2))-sysupgrade.bin \
+		-o $(call imgname,$(1),$(2))-factory.bin
 endef
 
 define Image/Build/Profile/DIR300B1