diff options
author | Sungbo Eo <mans0n@gorani.run> | 2020-03-10 22:58:00 +0900 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-03-21 19:59:08 +0100 |
commit | 1444e31a7bf54b796f8ef88e77fee255b959c6bb (patch) | |
tree | 9e877197eeecc78552f8b56ab9ff1fa27f3d5435 | |
parent | 5b392c7119f23aef10ffc0def9a70e8335f9f3f8 (diff) | |
download | upstream-1444e31a7bf54b796f8ef88e77fee255b959c6bb.tar.gz upstream-1444e31a7bf54b796f8ef88e77fee255b959c6bb.tar.bz2 upstream-1444e31a7bf54b796f8ef88e77fee255b959c6bb.zip |
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>
-rw-r--r-- | include/image-commands.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/image-commands.mk b/include/image-commands.mk index 2ec1922044..e7db7128b4 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -269,7 +269,7 @@ define Build/xor-image endef 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; \ rm -f $@; \ } |