[openwrt/openwrt] build: image: drop unused check-kernel-size recipe
LEDE Commits
lede-commits at lists.infradead.org
Sun Aug 2 09:55:51 EDT 2020
adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/93d37fad86312850450c45b56ff5367c0009ff7a
commit 93d37fad86312850450c45b56ff5367c0009ff7a
Author: Adrian Schmutzler <freifunk at adrianschmutzler.de>
AuthorDate: Wed Jul 29 21:00:11 2020 +0200
build: image: drop unused check-kernel-size recipe
The recipe check-kernel-size is not used in the entire tree. Instead,
we already check the size of the kernel image in Device/Build/kernel
in image.mk via check-size function if KERNEL_SIZE is defined.
Therefore, drop the function. Using it would be redundant anyway.
Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
include/image-commands.mk | 7 -------
1 file changed, 7 deletions(-)
diff --git a/include/image-commands.mk b/include/image-commands.mk
index 7a370034c8..9281b91990 100644
--- a/include/image-commands.mk
+++ b/include/image-commands.mk
@@ -275,13 +275,6 @@ define Build/check-size
}
endef
-define Build/check-kernel-size
- @[ $$(($(subst k,* 1024,$(subst m, * 1024k,$(1))))) -ge "$$(stat -c%s $(IMAGE_KERNEL))" ] || { \
- echo "WARNING: Kernel for $@ is too big > $(1)" >&2; \
- rm -f $@; \
- }
-endef
-
define Build/combined-image
-sh $(TOPDIR)/scripts/combined-image.sh \
"$(IMAGE_KERNEL)" \
More information about the lede-commits
mailing list