X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fimage%2FMakefile;h=63f7425a9ed5ee68a8f6bf2c5e909abc87d9b145;hb=30f85788546a1742fa5fc3564597aa12b47b1a2e;hp=c6a42ad8e76f9ddb43b7566239b8885183ccb43d;hpb=fc76ed2f1ee1cedf23c4c53073ac812fef682781;p=openwrt.git diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index c6a42ad8e7..63f7425a9e 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -456,13 +456,15 @@ define BuildFirmware/WHRG300N/squashfs $(call BuildFirmware/Default4M/$(1),$(1),whr-g300n,WHR-G300N) # the following line has a bad argument 3 ... the old Makefile was already broken $(call BuildFirmware/Buffalo,$(1),whr-g300n,whr-g300n) - ( \ - echo -n -e "# Airstation FirmWare\nrun u_fw\nreset\n\n" | \ - dd bs=512 count=1 conv=sync; \ - dd if=$(call sysupname,$(1),whr-g300n); \ - ) > $(KDIR)/whr-g300n-tftp.tmp - buffalo-tftp -i $(KDIR)/whr-g300n-tftp.tmp \ - -o $(call imgname,$(1),whr-g300n)-tftp.bin + if [ -e "$(call sysupname,$(1),$(2))" ]; then \ + ( \ + echo -n -e "# Airstation FirmWare\nrun u_fw\nreset\n\n" | \ + dd bs=512 count=1 conv=sync; \ + dd if=$(call sysupname,$(1),whr-g300n); \ + ) > $(KDIR)/whr-g300n-tftp.tmp && \ + buffalo-tftp -i $(KDIR)/whr-g300n-tftp.tmp \ + -o $(call imgname,$(1),whr-g300n)-tftp.bin; \ + fi endef BuildFirmware/WHRG300N/initramfs=$(call BuildFirmware/OF/initramfs,$(1),whr-g300n,WHR-G300N) Image/Build/Profile/WHRG300N=$(call BuildFirmware/WHRG300N/$(1),$(1))