diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-09-04 14:45:16 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-09-04 14:45:16 +0000 |
commit | 4025298f8e4e5d1606c0b609ff4e44c24c3c36e5 (patch) | |
tree | 0de8827cef2bee652ae299d159693edb20339a2c | |
parent | 490b17495b54145fc7c10126f55c711af7ec0354 (diff) | |
download | master-187ad058-4025298f8e4e5d1606c0b609ff4e44c24c3c36e5.tar.gz master-187ad058-4025298f8e4e5d1606c0b609ff4e44c24c3c36e5.tar.bz2 master-187ad058-4025298f8e4e5d1606c0b609ff4e44c24c3c36e5.zip |
image: allow exactly KERNEL_SIZE sized kernels
The KERNEL_SIZE should be the maximum size, inclusive, so we need to
check for greater equal, not just greater.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46792 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | include/image.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/image.mk b/include/image.mk index d9fa03e454..cf6717cf19 100644 --- a/include/image.mk +++ b/include/image.mk @@ -385,7 +385,7 @@ define Build/pad-offset endef define Build/check-size - @[ $$(($(subst k,* 1024,$(subst m, * 1024k,$(1))))) -gt "$$(stat -c%s $@)" ] || { \ + @[ $$(($(subst k,* 1024,$(subst m, * 1024k,$(1))))) -ge "$$(stat -c%s $@)" ] || { \ echo "WARNING: Image file $@ is too big" >&2; \ rm -f $@; \ } @@ -459,7 +459,7 @@ endef endif define Device/Build/check_size - @[ $$(($(subst k,* 1024,$(subst m, * 1024k,$(1))))) -gt "$$(stat -c%s $@)" ] || { \ + @[ $$(($(subst k,* 1024,$(subst m, * 1024k,$(1))))) -ge "$$(stat -c%s $@)" ] || { \ echo "WARNING: Image file $@ is too big" >&2; \ rm -f $@; \ } |