build.sh mkernels: Build all kernels in modular build

This commit is contained in:
uebayasi 2014-11-16 06:08:13 +00:00
parent 509aacc598
commit 34757c628f

View File

@ -1,5 +1,5 @@
#! /usr/bin/env sh
# $NetBSD: build.sh,v 1.303 2014/11/16 05:39:09 uebayasi Exp $
# $NetBSD: build.sh,v 1.304 2014/11/16 06:08:13 uebayasi Exp $
#
# Copyright (c) 2001-2011 The NetBSD Foundation, Inc.
# All rights reserved.
@ -1029,6 +1029,7 @@ Usage: ${progname} [-EhnorUuxy] [-a arch] [-B buildid] [-C cdextras]
file \`conf'
releasekernel=conf Install kernel built by kernel=conf to RELEASEDIR.
kernels Build all kernels
mkernels Build all kernels in modular build
mkernel=conf Build kernel with config file \`conf' in modular build
installmodules=idir Run "make installmodules" to \`idir' to install all
kernel modules.
@ -1349,6 +1350,7 @@ parseoptions()
iso-image-source|\
iso-image|\
kernels|\
mkernels|\
live-image|\
makewrapper|\
modules|\
@ -1870,7 +1872,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.303 2014/11/16 05:39:09 uebayasi Exp $
# Generated from: \$NetBSD: build.sh,v 1.304 2014/11/16 06:08:13 uebayasi Exp $
# with these arguments: ${_args}
#
@ -2262,6 +2264,11 @@ main()
buildkernels
;;
mkernels)
configopts="-M"
buildkernels
;;
disk-image=*)
arg=${op#*=}
diskimage "${arg}"