Source-Changes-HG archive

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

[src/trunk]: src/share/mk Add defaults and documentation for USE_XZ_SETS - a ...



details:   https://anonhg.NetBSD.org/src/rev/c2d032a23cdb
branches:  trunk
changeset: 433704:c2d032a23cdb
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Sep 29 06:48:22 2018 +0000

description:
Add defaults and documentation for USE_XZ_SETS - a new variable
controlling whether an architecture will use .tgz or tar.xz
sets.

diffstat:

 share/mk/bsd.README |  7 ++++++-
 share/mk/bsd.own.mk |  9 ++++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diffs (58 lines):

diff -r c5d1ae7a0bd6 -r c2d032a23cdb share/mk/bsd.README
--- a/share/mk/bsd.README       Sat Sep 29 06:36:29 2018 +0000
+++ b/share/mk/bsd.README       Sat Sep 29 06:48:22 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.README,v 1.384 2018/09/16 13:14:12 christos Exp $
+#      $NetBSD: bsd.README,v 1.385 2018/09/29 06:48:22 martin Exp $
 #      @(#)bsd.README  8.2 (Berkeley) 4/2/94
 
 This is the README file for the make "include" files for the NetBSD
@@ -582,6 +582,11 @@
                and use nbpigz to compress things.
                Default: "no".
 
+USE_XZ_SETS    If "no", use the host "gzip" program to compress sets.
+               Otherwise use xz to compress things.
+               Default: "yes" for architectures with "enough" memory to
+               decompress, "no" for older ones.
+
 COPTS.lib<lib>
 OBJCOPTS.lib<lib>
 LDADD.lib<lib>
diff -r c5d1ae7a0bd6 -r c2d032a23cdb share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Sat Sep 29 06:36:29 2018 +0000
+++ b/share/mk/bsd.own.mk       Sat Sep 29 06:48:22 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.own.mk,v 1.1075 2018/09/05 06:54:29 mrg Exp $
+#      $NetBSD: bsd.own.mk,v 1.1076 2018/09/29 06:48:22 martin Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -420,6 +420,7 @@
 TOOL_PAX=              ${TOOLDIR}/bin/${_TOOL_PREFIX}pax
 TOOL_PIC=              ${TOOLDIR}/bin/${_TOOL_PREFIX}pic
 TOOL_PIGZ=             ${TOOLDIR}/bin/${_TOOL_PREFIX}pigz
+TOOL_XZ=               ${TOOLDIR}/bin/xz
 TOOL_PKG_CREATE=       ${TOOLDIR}/bin/${_TOOL_PREFIX}pkg_create
 TOOL_POWERPCMKBOOTIMAGE=${TOOLDIR}/bin/${_TOOL_PREFIX}powerpc-mkbootimage
 TOOL_PWD_MKDB=         ${TOOLDIR}/bin/${_TOOL_PREFIX}pwd_mkdb
@@ -531,6 +532,7 @@
 TOOL_PAX=              pax
 TOOL_PIC=              pic
 TOOL_PIGZ=             pigz
+TOOL_XZ=               xz
 TOOL_PKG_CREATE=       pkg_create
 TOOL_POWERPCMKBOOTIMAGE=       powerpc-mkbootimage
 TOOL_PWD_MKDB=         pwd_mkdb
@@ -1357,6 +1359,11 @@
 ${var}?= no
 .endfor
 
+# Default to USE_XZ_SETS on some 64bit architectures where decompressor
+# memory will likely not be in short supply.
+# XXX incomplete feature, set to no everywhere
+USE_XZ_SETS?= no
+
 #
 # TOOL_GZIP and friends.  These might refer to TOOL_PIGZ or to the host gzip.
 #



Home | Main Index | Thread Index | Old Index