Don't try to generate whr-g300n image if it's going to be more than 4M
Signed-off-by: Roman Yeryomin <roman@advem.lv> SVN-Revision: 40489
This commit is contained in:
parent
3269f57c58
commit
72803e0e27
1 changed files with 9 additions and 7 deletions
|
@ -456,13 +456,15 @@ define BuildFirmware/WHRG300N/squashfs
|
||||||
$(call BuildFirmware/Default4M/$(1),$(1),whr-g300n,WHR-G300N)
|
$(call BuildFirmware/Default4M/$(1),$(1),whr-g300n,WHR-G300N)
|
||||||
# the following line has a bad argument 3 ... the old Makefile was already broken
|
# the following line has a bad argument 3 ... the old Makefile was already broken
|
||||||
$(call BuildFirmware/Buffalo,$(1),whr-g300n,whr-g300n)
|
$(call BuildFirmware/Buffalo,$(1),whr-g300n,whr-g300n)
|
||||||
( \
|
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; \
|
echo -n -e "# Airstation FirmWare\nrun u_fw\nreset\n\n" | \
|
||||||
dd if=$(call sysupname,$(1),whr-g300n); \
|
dd bs=512 count=1 conv=sync; \
|
||||||
) > $(KDIR)/whr-g300n-tftp.tmp
|
dd if=$(call sysupname,$(1),whr-g300n); \
|
||||||
buffalo-tftp -i $(KDIR)/whr-g300n-tftp.tmp \
|
) > $(KDIR)/whr-g300n-tftp.tmp && \
|
||||||
-o $(call imgname,$(1),whr-g300n)-tftp.bin
|
buffalo-tftp -i $(KDIR)/whr-g300n-tftp.tmp \
|
||||||
|
-o $(call imgname,$(1),whr-g300n)-tftp.bin; \
|
||||||
|
fi
|
||||||
endef
|
endef
|
||||||
BuildFirmware/WHRG300N/initramfs=$(call BuildFirmware/OF/initramfs,$(1),whr-g300n,WHR-G300N)
|
BuildFirmware/WHRG300N/initramfs=$(call BuildFirmware/OF/initramfs,$(1),whr-g300n,WHR-G300N)
|
||||||
Image/Build/Profile/WHRG300N=$(call BuildFirmware/WHRG300N/$(1),$(1))
|
Image/Build/Profile/WHRG300N=$(call BuildFirmware/WHRG300N/$(1),$(1))
|
||||||
|
|
Loading…
Reference in a new issue