ramips: make tp-link firmware size errors non-fatal
authorFelix Fietkau <nbd@openwrt.org>
Thu, 28 Jan 2016 14:13:01 +0000 (14:13 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 28 Jan 2016 14:13:01 +0000 (14:13 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48526

target/linux/ramips/image/Makefile

index fb064077dfc255ba74f44d0062a08b99834ef333..6f98b00140797b886243d0adee3a76ebd1a47e34 100644 (file)
@@ -158,19 +158,19 @@ endef
 
 define MkImageTpl/squashfs
        $(eval output_name=$(IMG_PREFIX)-$(2)-$(1)-$(if $(4),$(4),sysupgrade).bin)
-       $(STAGING_DIR_HOST)/bin/mktplinkfw2 -V "ver. 2.0" -B "$(2)" -j \
+       -$(STAGING_DIR_HOST)/bin/mktplinkfw2 -V "ver. 2.0" -B "$(2)" -j \
                -o $(KDIR)/$(output_name) \
                -k $(KDIR)/vmlinux-$(1)$(4).bin.lzma \
-               -r $(KDIR)/root.$(1)
-       $(CP) $(KDIR)/$(output_name) $(BIN_DIR)/$(output_name)
+               -r $(KDIR)/root.$(1) && \
+               $(CP) $(KDIR)/$(output_name) $(BIN_DIR)/$(output_name)
 endef
 
 define MkImageTpl/initramfs
        $(eval output_name=$(IMG_PREFIX)-$(2)-$(1).bin)
-       $(STAGING_DIR_HOST)/bin/mktplinkfw2 -V "ver. 2.0" -B "$(2)" -c \
+       -$(STAGING_DIR_HOST)/bin/mktplinkfw2 -V "ver. 2.0" -B "$(2)" -c \
                -o $(KDIR)/$(output_name) \
-               -k $(KDIR)/vmlinux-$(1).bin.lzma
-       $(CP) $(KDIR)/$(output_name) $(BIN_DIR)/$(output_name)
+               -k $(KDIR)/vmlinux-$(1).bin.lzma && \
+               $(CP) $(KDIR)/$(output_name) $(BIN_DIR)/$(output_name)
 endef
 
 # $(1), lowercase board name like "mt7620a_v22sg"