From 1ef478c0b7e91b333b657380bd6539d12ae5d7fe Mon Sep 17 00:00:00 2001 From: jogo Date: Thu, 21 Feb 2013 11:45:33 +0000 Subject: [PATCH] ramips: print image build warnings/errors to stderr Makes warnings/errors visible when building with V=w/V=1. Signed-off-by: Jonas Gorski git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35721 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/image/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 75f0e50d64..d88bc95edb 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -63,9 +63,9 @@ endef define MkCombineduImage $(call PatchKernelLzma,$(2),$(3)) if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt `expr $(4) - 64` ]; then \ - echo "Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \ + echo "Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big" >&2; \ else if [ `stat -c%s "$(KDIR)/root.$(1)"` -gt $(5) ]; then \ - echo "Warning: $(KDIR)/root.$(1) is too big"; \ + echo "Warning: $(KDIR)/root.$(1) is too big" >&2; \ else \ ( dd if=$(KDIR)/vmlinux-$(2).bin.lzma bs=`expr $(4) - 64` conv=sync ; dd if=$(KDIR)/root.$(1) ) > $(KDIR)/vmlinux-$(2).bin.lzma.combined ; \ fi ; fi @@ -74,9 +74,9 @@ endef define CatFiles if [ `stat -c%s "$(1)"` -gt $(2) ]; then \ - echo "Warning: $(1) is too big"; \ + echo "Warning: $(1) is too big" >&2; \ else if [ `stat -c%s $(3)` -gt $(4) ]; then \ - echo "Warning: $(3) is too big"; \ + echo "Warning: $(3) is too big" >&2; \ else \ ( dd if=$(1) bs=$(2) conv=sync; dd if=$(3) ) > $(5); \ fi; fi @@ -319,9 +319,9 @@ endef define BuildFirmware/Seama $(call PatchKernelLzma,$(2),$(3)) if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt $(4) ]; then \ - echo "Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \ + echo "Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big" >&2; \ else if [ `stat -c%s $(KDIR)/root.$(1)` -gt $(5) ]; then \ - echo "Warning: $(KDIR)/root.$(1) is too big"; \ + echo "Warning: $(KDIR)/root.$(1) is too big" >&2; \ else \ ( \ dd if=$(KDIR)/vmlinux-$(2).bin.lzma bs=$(4) count=1 conv=sync; \ -- 2.11.0