Source-Changes-HG archive

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

[src/trunk]: src build.sh: New operation "kernels" to build all kernels



details:   https://anonhg.NetBSD.org/src/rev/6e92b870042e
branches:  trunk
changeset: 333502:6e92b870042e
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Thu Nov 06 02:02:48 2014 +0000

description:
build.sh: New operation "kernels" to build all kernels

diffstat:

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

diffs (72 lines):

diff -r 68b7dcaa6d6a -r 6e92b870042e build.sh
--- a/build.sh  Thu Nov 06 01:42:01 2014 +0000
+++ b/build.sh  Thu Nov 06 02:02:48 2014 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/env sh
-#      $NetBSD: build.sh,v 1.299 2014/11/05 08:19:17 snj Exp $
+#      $NetBSD: build.sh,v 1.300 2014/11/06 02:02:48 uebayasi Exp $
 #
 # Copyright (c) 2001-2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -543,6 +543,7 @@
        do_release=false
        do_kernel=false
        do_releasekernel=false
+       do_kernels=false
        do_modules=false
        do_installmodules=false
        do_install=false
@@ -1027,6 +1028,7 @@
     kernel.gdb=conf     Build kernel (including netbsd.gdb) with config
                        file \`conf'
     releasekernel=conf  Install kernel built by kernel=conf to RELEASEDIR.
+    kernels            Build all kernels
     installmodules=idir Run "make installmodules" to \`idir' to install all
                         kernel modules.
     modules             Build kernel modules.
@@ -1343,6 +1345,10 @@
                            bomb "Must supply a kernel name with \`${op}=...'"
                        ;;
 
+               kernels)
+                       op=kernels
+                       ;;
+
                disk-image=*)
                        arg=${op#*=}
                        op=disk_image
@@ -1870,7 +1876,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.299 2014/11/05 08:19:17 snj Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.300 2014/11/06 02:02:48 uebayasi Exp $
 # with these arguments: ${_args}
 #
 
@@ -2020,6 +2026,14 @@
        done
 }
 
+buildkernels()
+{
+       allkernels=$( make_in_dir etc '-V ${ALL_KERNELS}' )
+       for k in $allkernels; do
+               buildkernel "${k}"
+       done
+}
+
 buildmodules()
 {
        setmakeenv MKBINUTILS no
@@ -2245,6 +2259,10 @@
                        releasekernel "${arg}"
                        ;;
 
+               kernels)
+                       buildkernels
+                       ;;
+
                disk-image=*)
                        arg=${op#*=}
                        diskimage "${arg}"



Home | Main Index | Thread Index | Old Index