mirror of https://github.com/hak5/openwrt-owl.git
ramips: print image build warnings/errors to stderr
Makes warnings/errors visible when building with V=w/V=1. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 35721owl
parent
a0956a88d4
commit
1cd62d06ca
|
@ -63,9 +63,9 @@ endef
|
||||||
define MkCombineduImage
|
define MkCombineduImage
|
||||||
$(call PatchKernelLzma,$(2),$(3))
|
$(call PatchKernelLzma,$(2),$(3))
|
||||||
if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt `expr $(4) - 64` ]; then \
|
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 \
|
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 \
|
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 ; \
|
( 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
|
fi ; fi
|
||||||
|
@ -74,9 +74,9 @@ endef
|
||||||
|
|
||||||
define CatFiles
|
define CatFiles
|
||||||
if [ `stat -c%s "$(1)"` -gt $(2) ]; then \
|
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 \
|
else if [ `stat -c%s $(3)` -gt $(4) ]; then \
|
||||||
echo "Warning: $(3) is too big"; \
|
echo "Warning: $(3) is too big" >&2; \
|
||||||
else \
|
else \
|
||||||
( dd if=$(1) bs=$(2) conv=sync; dd if=$(3) ) > $(5); \
|
( dd if=$(1) bs=$(2) conv=sync; dd if=$(3) ) > $(5); \
|
||||||
fi; fi
|
fi; fi
|
||||||
|
@ -319,9 +319,9 @@ endef
|
||||||
define BuildFirmware/Seama
|
define BuildFirmware/Seama
|
||||||
$(call PatchKernelLzma,$(2),$(3))
|
$(call PatchKernelLzma,$(2),$(3))
|
||||||
if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt $(4) ]; then \
|
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 \
|
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 \
|
else \
|
||||||
( \
|
( \
|
||||||
dd if=$(KDIR)/vmlinux-$(2).bin.lzma bs=$(4) count=1 conv=sync; \
|
dd if=$(KDIR)/vmlinux-$(2).bin.lzma bs=$(4) count=1 conv=sync; \
|
||||||
|
|
Loading…
Reference in New Issue