aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/image
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-02-24 16:18:46 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-02-24 16:18:46 +0000
commit700c4f5ca7f9d491c33e11f9fd9e88db477e4fdd (patch)
tree6f299865052a8f1a5a2bfb440665ee0bda700058 /target/linux/ramips/image
parent5fd9ec85c60f74b100b152c2555ec2f51603f898 (diff)
downloadupstream-700c4f5ca7f9d491c33e11f9fd9e88db477e4fdd.tar.gz
upstream-700c4f5ca7f9d491c33e11f9fd9e88db477e4fdd.tar.bz2
upstream-700c4f5ca7f9d491c33e11f9fd9e88db477e4fdd.zip
ramips: fix FONERA20N image generation
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30710 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/image')
-rw-r--r--target/linux/ramips/image/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile
index ed735a9b1f..031b03ab1a 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -165,9 +165,11 @@ define BuildFirmware/DIR300B1
endef
define BuildFirmware/Edimax
- mkedimaximg -i $(call sysupname,$(1),$(2)) \
- -o $(call imgname,$(1),$(2))-factory.bin \
- -s $(3) -m $(4) -f $(5) -S $(6)
+ if [ -e "$(call sysupname,$(1),$(2))" ]; then \
+ mkedimaximg -i $(call sysupname,$(1),$(2)) \
+ -o $(call imgname,$(1),$(2))-factory.bin \
+ -s $(3) -m $(4) -f $(5) -S $(6); \
+ fi
endef
mtdlayout_f5d8235=320k(u-boot)ro,1536k(kernel),6208k(rootfs),64k(nvram),64k(factory),7744k@0x50000(firmware)
@@ -178,7 +180,7 @@ define BuildFirmware/F5D8235
endef
define BuildFirmware/FONERA20N
- $(call Image/Build/Template/GENERIC_8M,$(1),fonera20n,FONERA20N,ttyS1,57600,phys)
+ $(call BuildFirmware/GENERIC_8M,$(1),fonera20n,FONERA20N,ttyS1,57600,phys)
$(call BuildFirmware/Edimax,$(1),fonera20n,RSDK,NL1T,0x50000,0xc0000)
endef