diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 68d0134bd..29b36c574 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -335,7 +335,8 @@ cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@ # --------------------------------------------------------------------------- quiet_cmd_gzip = GZIP $@ - cmd_gzip = cat $(real-prereqs) | $(KGZIP) -n -f -9 > $@ + cmd_gzip = cat $(real-prereqs) | $(KGZIP) -n -f -9 > $@ && \ + ( which advdef > /dev/null && advdef -z4 $@ ; true ) # DTC # ---------------------------------------------------------------------------