Allow use of pigz when compressing kernels.

This commit is contained in:
matt 2011-06-14 05:31:33 +00:00
parent ab1bb25144
commit 19f44ab3a2

View File

@ -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 powerpc -T kernel -C gz
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