From: Felix Fietkau Date: Fri, 13 Jan 2017 15:19:00 +0000 (+0100) Subject: image.mk: add generic function for gzipping images if enabled X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8af5e5751d230fda28a0921f1e312b5090a5ac97;p=openwrt%2Fstaging%2Fluka.git image.mk: add generic function for gzipping images if enabled Signed-off-by: Felix Fietkau --- diff --git a/include/image.mk b/include/image.mk index 4bd923fea8..81519cd183 100644 --- a/include/image.mk +++ b/include/image.mk @@ -147,6 +147,13 @@ define Image/BuildKernel/MkFIT PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $(KDIR)/fit-$(1).its $(KDIR)/fit-$(1)$(7).itb endef +ifdef CONFIG_TARGET_IMAGES_GZIP + define Image/Gzip + rm -f $(1).gz + gzip -9n $(1) + endef +endif + # $(1) source dts file # $(2) target dtb file # $(3) extra CPP flags