aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-09-13 07:18:10 +0200
committerMathias Kresin <dev@kresin.me>2016-09-13 19:36:41 +0200
commit14b40d61e13ce0408d5ed9dff2ad3a18ab0c2471 (patch)
treedf0df3d52ae8eb2fb8c2c792c3edcc3d674c18c4 /include
parent1cd0a4c688f02918cb96ff7f5f21cddc281d4f2c (diff)
downloadupstream-14b40d61e13ce0408d5ed9dff2ad3a18ab0c2471.tar.gz
upstream-14b40d61e13ce0408d5ed9dff2ad3a18ab0c2471.tar.bz2
upstream-14b40d61e13ce0408d5ed9dff2ad3a18ab0c2471.zip
image: use check-size from new image build code
Use the new image build code and deduplicate the code. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'include')
-rw-r--r--include/image.mk9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/image.mk b/include/image.mk
index 324582a5d4..261f0f8aea 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -422,13 +422,6 @@ define Device/Build/initramfs
endef
endif
-define Device/Build/check_size
- @[ $$(($(subst k,* 1024,$(subst m, * 1024k,$(1))))) -ge "$$(stat -c%s $@)" ] || { \
- echo "WARNING: Image file $@ is too big" >&2; \
- rm -f $@; \
- }
-endef
-
define Device/Build/compile
$$(_COMPILE_TARGET): $(KDIR)/$(1)
$(eval $(call Device/Export,$(KDIR)/$(1)))
@@ -450,7 +443,7 @@ define Device/Build/kernel
$$(KDIR_KERNEL_IMAGE): $(KDIR)/$$(KERNEL_NAME) $(CURDIR)/Makefile $$(KERNEL_DEPENDS)
@rm -f $$@
$$(call concat_cmd,$$(KERNEL))
- $$(if $$(KERNEL_SIZE),$$(call Device/Build/check_size,$$(KERNEL_SIZE)))
+ $$(if $$(KERNEL_SIZE),$$(call Build/check-size,$$(KERNEL_SIZE)))
endif
endef