summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2015-09-04 14:45:16 +0000
committerJonas Gorski <jogo@openwrt.org>2015-09-04 14:45:16 +0000
commit4bbfb09362070210a6dca14635cb9e2d22f1c4bd (patch)
tree4aa67827dec124cc429a758de3dd558b59cd7af5 /include
parentb958c12d2c646a787f1eb37a334c3492778535c3 (diff)
downloadmtk-20170518-4bbfb09362070210a6dca14635cb9e2d22f1c4bd.zip
mtk-20170518-4bbfb09362070210a6dca14635cb9e2d22f1c4bd.tar.gz
mtk-20170518-4bbfb09362070210a6dca14635cb9e2d22f1c4bd.tar.bz2
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> SVN-Revision: 46792
Diffstat (limited to 'include')
-rw-r--r--include/image.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/image.mk b/include/image.mk
index d9fa03e..cf6717c 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 $@; \
}