diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk index 7ff1e154e97565c438e39984d9c817176e764c6c..0d2cf1063aebe55ec7665abf3e44d71a2b68c717 100644 --- a/make_helpers/build_macros.mk +++ b/make_helpers/build_macros.mk @@ -170,6 +170,19 @@ check_$(1): $$(if $(wildcard $(value $(_V))),,$$(error '$(_V)=$(value $(_V))' was specified, but '$(value $(_V))' does not exist)) endef +################################################################################ +# Generic image processing filters +################################################################################ + +# GZIP +define GZIP_RULE +$(1): $(2) + @echo " GZIP $$@" + $(Q)gzip -n -f -9 $$< --stdout > $$@ +endef + +GZIP_SUFFIX := .gz + ################################################################################ # Auxiliary macros to build TF images from sources ################################################################################