Module Name: src
Committed By: christos
Date: Sun Dec 30 23:19:40 UTC 2018
Modified Files:
src: build.sh
Log Message:
add build libs (undocumented).
To generate a diff of this commit:
cvs rdiff -u -r1.328 -r1.329 src/build.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/build.sh
diff -u src/build.sh:1.328 src/build.sh:1.329
--- src/build.sh:1.328 Thu Aug 9 04:30:29 2018
+++ src/build.sh Sun Dec 30 18:19:40 2018
@@ -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 @@ level of source directory"
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 @@ parseoptions()
iso-image-source|\
iso-image|\
kernels|\
+ libs|\
live-image|\
makewrapper|\
modules|\
@@ -1934,7 +1936,7 @@ createmakewrapper()
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 @@ buildtools()
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 @@ main()
tools)
buildtools
;;
+ libs)
+ buildlibs
+ ;;
sets)
statusmsg "Building sets from pre-populated ${DESTDIR}"