add build libs (undocumented).

This commit is contained in:
christos 2018-12-30 23:19:40 +00:00
parent 5daa785cd5
commit 0a37cd5ef4
1 changed files with 22 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#! /usr/bin/env sh #! /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. # Copyright (c) 2001-2011 The NetBSD Foundation, Inc.
# All rights reserved. # All rights reserved.
@ -537,6 +537,7 @@ level of source directory"
do_rebuildmake=false do_rebuildmake=false
do_removedirs=false do_removedirs=false
do_tools=false do_tools=false
do_libs=false
do_cleandir=false do_cleandir=false
do_obj=false do_obj=false
do_build=false do_build=false
@ -1382,6 +1383,7 @@ parseoptions()
iso-image-source|\ iso-image-source|\
iso-image|\ iso-image|\
kernels|\ kernels|\
libs|\
live-image|\ live-image|\
makewrapper|\ makewrapper|\
modules|\ modules|\
@ -1934,7 +1936,7 @@ createmakewrapper()
eval cat <<EOF ${makewrapout} eval cat <<EOF ${makewrapout}
#! ${HOST_SH} #! ${HOST_SH}
# Set proper variables to allow easy "make" building of a NetBSD subtree. # 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} # with these arguments: ${_args}
# #
@ -1988,6 +1990,21 @@ buildtools()
statusmsg "Tools built to ${TOOLDIR}" 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() getkernelconf()
{ {
kernelconf="$1" kernelconf="$1"
@ -2293,6 +2310,9 @@ main()
tools) tools)
buildtools buildtools
;; ;;
libs)
buildlibs
;;
sets) sets)
statusmsg "Building sets from pre-populated ${DESTDIR}" statusmsg "Building sets from pre-populated ${DESTDIR}"