aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-01-17 18:53:42 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-01-17 18:53:42 +0000
commit4f7f32a8c5a0a44b2ed690de98124dc383405dc8 (patch)
treead0529d072c4ac50368baf0293533caa4bb0816c /target/linux/ar71xx
parent88c5f55fabdd4b42be80c1789e3e748cc375f81c (diff)
downloadupstream-4f7f32a8c5a0a44b2ed690de98124dc383405dc8.tar.gz
upstream-4f7f32a8c5a0a44b2ed690de98124dc383405dc8.tar.bz2
upstream-4f7f32a8c5a0a44b2ed690de98124dc383405dc8.zip
ar71xx: create sysupgrade file for the WZR-HP-G300NH
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19193 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/image/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index 4cc88d477c..96611bb470 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -114,6 +114,24 @@ define Image/Build/DIR825B1
fi; fi
endef
+define Image/Build/WZRHPG300NH
+ $(call PatchKernelLzma,$(2),$(3))
+ if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt 1048576 ]; then \
+ echo "Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \
+ else if [ `stat -c%s $(KDIR)/root.$(1)` -gt 31850496 ]; then \
+ echo "Warning: $(KDIR)/root.$(1) is too big"; \
+ else \
+ mkimage -A mips -O linux -T kernel -a 0x80060000 -C lzma -e \
+ 0x80060000 \
+ -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
+ -d $(KDIR)/vmlinux-$(2).bin.lzma $(KDIR)/vmlinux-$(2).uImage; \
+ ( \
+ dd if=$(KDIR)/vmlinux-$(2).uImage bs=1M conv=sync; \
+ dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
+ ) > $(call imgname,$(1),$(2))-sysupgrade.bin; \
+ fi; fi
+endef
+
cameo_mtdlayout=mtdparts=spi0.0:128k(u-boot)ro,64k(config)ro,896k(kernel),2880k(rootfs),64k(art)ro,3776k@0x30000(firmware)
define Image/Build/Cameo
$(call PatchKernelLzma,$(2),$(3) $(cameo_mtdlayout))
@@ -449,6 +467,10 @@ define Image/Build/Profile/WRT160NL
$(call Image/Build/Template/64k/$(1),CyberTAN,wrt160nl,board=WRT160NL,1.00.01)
endef
+define Image/Build/Profile/WZRHPG300NH
+ $(call Image/Build/Template/128k/$(1),WZRHPG300NH,wzr-hp-g300nh,board=WZR-HP-G300NH)
+endef
+
define Image/Build/Profile/Default
$(call Image/Build/Profile/AP81,$(1))
$(call Image/Build/Profile/AP83,$(1))
@@ -473,6 +495,7 @@ define Image/Build/Profile/Default
$(call Image/Build/Profile/WNDR3700,$(1))
$(call Image/Build/Profile/WRT400N,$(1))
$(call Image/Build/Profile/WRT160NL,$(1))
+ $(call Image/Build/Profile/WZRHPG300NH,$(1))
endef
define Image/Build/Profile/Madwifi