index
:
openwrt.git
OpenWrt Source Repository
log msg
author
committer
range
feature/odhcpd_odhcp6c_udhcpc-capsdrop
linksys3200ac-master
master
summary
refs
log
tree
commit
diff
path:
root
/
include
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'include')
-rw-r--r--
include/image.mk
7
1 files changed, 7 insertions, 0 deletions
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