build: image: set default parameter for check-size

In most cases check-size is used with IMAGE_SIZE and vice versa. Let check-size
use IMAGE_SIZE by default.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
This commit is contained in:
Sungbo Eo 2020-03-10 22:58:00 +09:00 committed by Adrian Schmutzler
parent 5b392c7119
commit 1444e31a7b
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ define Build/xor-image
endef endef
define Build/check-size define Build/check-size
@[ $$(($(subst k,* 1024,$(subst m, * 1024k,$(1))))) -ge "$$(stat -c%s $@)" ] || { \ @[ $$(($(subst k,* 1024,$(subst m, * 1024k,$(if $(1),$(1),$(IMAGE_SIZE)))))) -ge "$$(stat -c%s $@)" ] || { \
echo "WARNING: Image file $@ is too big" >&2; \ echo "WARNING: Image file $@ is too big" >&2; \
rm -f $@; \ rm -f $@; \
} }