Module Name: src Committed By: lukem Date: Fri Jun 2 20:48:09 UTC 2023
Modified Files: src: Makefile build.sh Log Message: build.sh: add show-params operation Add show-params operation to the makefile target, and reword params operation to describe what it's done since 2012. (In 2012-11-04 the Makefile's previous params target was renamed to show-params and a new params target was added to save a 'params' file, and build.sh wasn't adapted.) To generate a diff of this commit: cvs rdiff -u -r1.335 -r1.336 src/Makefile cvs rdiff -u -r1.370 -r1.371 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/Makefile diff -u src/Makefile:1.335 src/Makefile:1.336 --- src/Makefile:1.335 Sun Aug 21 07:10:03 2022 +++ src/Makefile Fri Jun 2 20:48:09 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.335 2022/08/21 07:10:03 lukem Exp $ +# $NetBSD: Makefile,v 1.336 2023/06/02 20:48:09 lukem Exp $ # # This is the top-level makefile for building NetBSD. For an outline of @@ -88,8 +88,8 @@ # do-top-obj: creates the top level object directory. # do-tools-obj: creates object directories for the host toolchain. # do-tools: builds host toolchain. -# params: record the values of variables that might affect the -# build. +# params: create params file with various make(1) parameters. +# show-params: show various make(1) parameters. # obj: creates object directories. # do-distrib-dirs: creates the distribution directories. # includes: installs include files. Index: src/build.sh diff -u src/build.sh:1.370 src/build.sh:1.371 --- src/build.sh:1.370 Fri Jun 2 14:29:11 2023 +++ src/build.sh Fri Jun 2 20:48:09 2023 @@ -1,5 +1,5 @@ #! /usr/bin/env sh -# $NetBSD: build.sh,v 1.370 2023/06/02 14:29:11 lukem Exp $ +# $NetBSD: build.sh,v 1.371 2023/06/02 20:48:09 lukem Exp $ # # Copyright (c) 2001-2023 The NetBSD Foundation, Inc. # All rights reserved. @@ -563,6 +563,7 @@ level of source directory" do_install_image=false do_disk_image=false do_params=false + do_show_params=false do_rump=false do_dtb=false @@ -1084,7 +1085,8 @@ help() RELEASEDIR/RELEASEMACHINEDIR/installation/installimage. disk-image=TARGET Create bootable disk image in RELEASEDIR/RELEASEMACHINEDIR/binary/gzimg/TARGET.img.gz. - params Show various make(1) parameters. + params Create params file with various make(1) parameters. + show-params Show various make(1) parameters. list-arch Show a list of valid MACHINE/MACHINE_ARCH values, and exit. The list may be narrowed by passing glob patterns or exact values in MACHINE or MACHINE_ARCH. @@ -1461,6 +1463,7 @@ parseoptions() rump|\ rumptest|\ sets|\ + show-params|\ sourcesets|\ syspkgs|\ tools) @@ -2013,7 +2016,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.370 2023/06/02 14:29:11 lukem Exp $ +# Generated from: \$NetBSD: build.sh,v 1.371 2023/06/02 20:48:09 lukem Exp $ # with these arguments: ${_args} # @@ -2485,7 +2488,7 @@ main() statusmsg "Successful make ${op}" ;; - cleandir|obj|sourcesets|syspkgs|params) + cleandir|obj|sourcesets|syspkgs|params|show-params) ${runcmd} "${makewrapper}" ${parallel} ${op} || bomb "Failed to make ${op}" statusmsg "Successful make ${op}"