Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbppc/conf Allow use of pigz when compressing kern...



details:   https://anonhg.NetBSD.org/src/rev/1f1aa1399bc5
branches:  trunk
changeset: 766041:1f1aa1399bc5
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Jun 14 05:31:33 2011 +0000

description:
Allow use of pigz when compressing kernels.

diffstat:

 sys/arch/evbppc/conf/Makefile.evbppc.inc |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 0f09d001ddae -r 1f1aa1399bc5 sys/arch/evbppc/conf/Makefile.evbppc.inc
--- a/sys/arch/evbppc/conf/Makefile.evbppc.inc  Tue Jun 14 05:30:40 2011 +0000
+++ b/sys/arch/evbppc/conf/Makefile.evbppc.inc  Tue Jun 14 05:31:33 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.evbppc.inc,v 1.6 2011/05/28 05:22:25 matt Exp $
+#      $NetBSD: Makefile.evbppc.inc,v 1.7 2011/06/14 05:31:33 matt Exp $
 
 CPPFLAGS += -D__${BOARDTYPE}__
 
@@ -31,9 +31,13 @@
 MKUBOOTIMAGEARGS+=      -a ${TEXTADDR:C/....$/0000/} -e $(TEXTADDR)
 MKUBOOTIMAGEARGS+=      -n "NetBSD/$(MACHINE) ${_OSRELEASE} ($(KERNEL_BUILD:T))"
 
+.if defined(USE_PIGZGZIP) && ${USE_PIGZGZIP} != "no"
+TOOL_GZIP?=            ${TOOL_PIGZ}
+.endif
+TOOL_GZIP?=            gzip
 SYSTEM_LD_TAIL_EXTRA+=; \
-       echo gzip -v9cn $@.bin '>' $@.bin.gz; \
-       gzip -v9cn $@.bin > $@.bin.gz; \
+       echo ${TOOL_GZIP} -9cn $@.bin '>' $@.bin.gz; \
+       ${TOOL_GZIP} -9cn $@.bin > $@.bin.gz; \
        echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS} $@.bin.gz $@.ub; \
        ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS} $@.bin.gz $@.ub
 



Home | Main Index | Thread Index | Old Index