ramips: build factory-compatible image for AR725W
authorJohn Crispin <john@openwrt.org>
Tue, 22 Apr 2014 08:08:42 +0000 (08:08 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 22 Apr 2014 08:08:42 +0000 (08:08 +0000)
Signed-off-by: Claudio Leite <leitec@staticky.com>
SVN-Revision: 40552

target/linux/ramips/image/Makefile

index bf9ccc198afc08194e53c382259e855c438f0f0c..26386bf05c209a69c5878c95baa2dd4a5523a28c 100644 (file)
@@ -257,11 +257,21 @@ define BuildFirmware/PorayDualSize/squashfs
 endef
 BuildFirmware/PorayDualSize/initramfs=$(call BuildFirmware/DefaultDualSize/initramfs,$(1),$(2),$(3))
 
+define BuildFirmware/Gemtek/squashfs
+       $(call BuildFirmware/Default4M/$(1),$(1),$(2),$(3))
+       if [ -e "$(call sysupname,$(1),$(2))" ]; then \
+               mkheader_gemtek "$(call sysupname,$(1),$(2))" \
+                       "$(call imgname,$(1),$(2))-factory.bin" $(2) || \
+               rm -f "$(call imgname,$(1),$(2))-factory.bin"; \
+       fi
+endef
+BuildFirmware/Gemtek/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
+
 #
 # RT288X Profiles
 #
 
-Image/Build/Profile/AR725W=$(call BuildFirmware/Default4M/$(1),$(1),ar725w,AR725W)
+Image/Build/Profile/AR725W=$(call BuildFirmware/Gemtek/$(1),$(1),ar725w,AR725W)
 
 # 0x790000
 belkin_f5d8235v1_mtd_size=7929856