Source-Changes-HG archive

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

[src/trunk]: src Use TOOL_GZIP in mkimage, and pass the TOOL_GZIP into it.



details:   https://anonhg.NetBSD.org/src/rev/f57676b80d39
branches:  trunk
changeset: 787406:f57676b80d39
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Jun 16 13:47:42 2013 +0000

description:
Use TOOL_GZIP in mkimage, and pass the TOOL_GZIP into it.

diffstat:

 distrib/utils/embedded/mkimage |  5 +++--
 etc/etc.evbarm/Makefile.inc    |  3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diffs (44 lines):

diff -r 53606f251d18 -r f57676b80d39 distrib/utils/embedded/mkimage
--- a/distrib/utils/embedded/mkimage    Sun Jun 16 13:33:30 2013 +0000
+++ b/distrib/utils/embedded/mkimage    Sun Jun 16 13:47:42 2013 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: mkimage,v 1.39 2013/05/20 19:27:17 christos Exp $
+# $NetBSD: mkimage,v 1.40 2013/06/16 13:47:42 jakllsch Exp $
 #
 # Copyright (c) 2013 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -39,6 +39,7 @@
 
 DISKLABEL=${TOOL_DISKLABEL:-disklabel}
 FDISK=${TOOL_FDISK:-fdisk}
+GZIP=${TOOL_GZIP:-gzip}
 MAKEFS=${TOOL_MAKEFS:-makefs}
 MTREE=${TOOL_MTREE:-mtree}
 
@@ -199,7 +200,7 @@
 if $compress; then
        echo ${bar} Compressing image ${bar}
        rm -f "${image}.gz"
-       gzip -9 ${image}
+       ${GZIP} -9 ${image}
        image="${image}.gz"
 fi
 
diff -r 53606f251d18 -r f57676b80d39 etc/etc.evbarm/Makefile.inc
--- a/etc/etc.evbarm/Makefile.inc       Sun Jun 16 13:33:30 2013 +0000
+++ b/etc/etc.evbarm/Makefile.inc       Sun Jun 16 13:47:42 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.51 2013/03/23 11:51:47 he Exp $
+#      $NetBSD: Makefile.inc,v 1.52 2013/06/16 13:47:42 jakllsch Exp $
 #
 #      etc.evbarm/Makefile.inc -- evbarm-specific etc Makefile targets
 #
@@ -26,6 +26,7 @@
        TOOL_MAKEFS=${TOOL_MAKEFS} \
        TOOL_DISKLABEL=${TOOL_DISKLABEL} \
        TOOL_FDISK=${TOOL_FDISK} \
+       TOOL_GZIP=${TOOL_GZIP} \
        TOOL_MKNOD=${TOOL_MKNOD} \
        TOOL_PAX=${TOOL_PAX} \
        TOOL_MTREE=${TOOL_MTREE} \



Home | Main Index | Thread Index | Old Index