image.mk: add generic function for gzipping images if enabled
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
6f57e32f95
commit
8af5e5751d
1 changed files with 7 additions and 0 deletions
|
@ -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
|
PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $(KDIR)/fit-$(1).its $(KDIR)/fit-$(1)$(7).itb
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
ifdef CONFIG_TARGET_IMAGES_GZIP
|
||||||
|
define Image/Gzip
|
||||||
|
rm -f $(1).gz
|
||||||
|
gzip -9n $(1)
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
# $(1) source dts file
|
# $(1) source dts file
|
||||||
# $(2) target dtb file
|
# $(2) target dtb file
|
||||||
# $(3) extra CPP flags
|
# $(3) extra CPP flags
|
||||||
|
|
Loading…
Reference in a new issue