summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-04-22 08:08:42 +0000
committerJohn Crispin <john@openwrt.org>2014-04-22 08:08:42 +0000
commit284ada8a3eeb1911caa08c1e3486969d6aa3e636 (patch)
treec832d3b1957afb3605c5a8c093b573248f171d05 /target/linux
parent3208d0d7b7a42ba80879cf9fa105189a391d5faf (diff)
downloadmtk-20170518-284ada8a3eeb1911caa08c1e3486969d6aa3e636.zip
mtk-20170518-284ada8a3eeb1911caa08c1e3486969d6aa3e636.tar.gz
mtk-20170518-284ada8a3eeb1911caa08c1e3486969d6aa3e636.tar.bz2
ramips: build factory-compatible image for AR725W
Signed-off-by: Claudio Leite <leitec@staticky.com> SVN-Revision: 40552
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/image/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile
index bf9ccc1..26386bf 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -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