From 6990f66861578282f2fab1dbc967077740406fd7 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Fri, 24 Feb 2012 16:18:46 +0000 Subject: [PATCH] ramips: fix FONERA20N image generation SVN-Revision: 30710 --- target/linux/ramips/image/Makefile | 10 ++++++---- 1 file 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 -- 2.30.2