Source-Changes-HG archive

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

[src/trunk]: src add build libs (undocumented).



details:   https://anonhg.NetBSD.org/src/rev/db4d93ee5285
branches:  trunk
changeset: 995648:db4d93ee5285
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 30 23:19:40 2018 +0000

description:
add build libs (undocumented).

diffstat:

 build.sh |  24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diffs (67 lines):

diff -r 63d6ccd693fc -r db4d93ee5285 build.sh
--- a/build.sh  Sun Dec 30 22:48:31 2018 +0000
+++ b/build.sh  Sun Dec 30 23:19:40 2018 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/env sh
-#      $NetBSD: build.sh,v 1.328 2018/08/09 08:30:29 christos Exp $
+#      $NetBSD: build.sh,v 1.329 2018/12/30 23:19:40 christos Exp $
 #
 # Copyright (c) 2001-2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -537,6 +537,7 @@
        do_rebuildmake=false
        do_removedirs=false
        do_tools=false
+       do_libs=false
        do_cleandir=false
        do_obj=false
        do_build=false
@@ -1382,6 +1383,7 @@
                iso-image-source|\
                iso-image|\
                kernels|\
+               libs|\
                live-image|\
                makewrapper|\
                modules|\
@@ -1934,7 +1936,7 @@
        eval cat <<EOF ${makewrapout}
 #! ${HOST_SH}
 # Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from:  \$NetBSD: build.sh,v 1.328 2018/08/09 08:30:29 christos Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.329 2018/12/30 23:19:40 christos Exp $
 # with these arguments: ${_args}
 #
 
@@ -1988,6 +1990,21 @@
        statusmsg "Tools built to ${TOOLDIR}"
 }
 
+buildlibs()
+{
+       if [ "${MKOBJDIRS}" != "no" ]; then
+               ${runcmd} "${makewrapper}" ${parallel} obj ||
+                   bomb "Failed to make obj"
+       fi
+       if [ "${MKUPDATE}" = "no" ]; then
+               make_in_dir lib cleandir
+       fi
+       make_in_dir . do-distrib-dirs
+       make_in_dir . includes
+       make_in_dir . do-lib
+       statusmsg "libs built"
+}
+
 getkernelconf()
 {
        kernelconf="$1"
@@ -2293,6 +2310,9 @@
                tools)
                        buildtools
                        ;;
+               libs)
+                       buildlibs
+                       ;;
 
                sets)
                        statusmsg "Building sets from pre-populated ${DESTDIR}"



Home | Main Index | Thread Index | Old Index