mirror of https://github.com/hak5/openwrt-owl.git
image.mk: make image too big warnings more visible
Output warnings through stderr to allow them to be easilier spotted when building with V=w. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 45746owl
parent
47e0c28153
commit
497fdc3f09
|
@ -321,7 +321,7 @@ endef
|
||||||
|
|
||||||
define Build/check-size
|
define Build/check-size
|
||||||
@[ $$(($(subst k,* 1024,$(subst m, * 1024k,$(1))))) -gt "$$(stat -c%s $@)" ] || { \
|
@[ $$(($(subst k,* 1024,$(subst m, * 1024k,$(1))))) -gt "$$(stat -c%s $@)" ] || { \
|
||||||
echo "WARNING: Image file $@ is too big"; \
|
echo "WARNING: Image file $@ is too big" >&2; \
|
||||||
rm -f $@; \
|
rm -f $@; \
|
||||||
}
|
}
|
||||||
endef
|
endef
|
||||||
|
@ -378,7 +378,7 @@ endif
|
||||||
|
|
||||||
define Device/Build/check_size
|
define Device/Build/check_size
|
||||||
@[ $$(($(subst k,* 1024,$(subst m, * 1024k,$(1))))) -gt "$$(stat -c%s $@)" ] || { \
|
@[ $$(($(subst k,* 1024,$(subst m, * 1024k,$(1))))) -gt "$$(stat -c%s $@)" ] || { \
|
||||||
echo "WARNING: Image file $@ is too big"; \
|
echo "WARNING: Image file $@ is too big" >&2; \
|
||||||
rm -f $@; \
|
rm -f $@; \
|
||||||
}
|
}
|
||||||
endef
|
endef
|
||||||
|
|
Loading…
Reference in New Issue