History log of /netbsd-src/build.sh (Results 1 – 25 of 387)
Revision Date Author Comments
# 16dd98ce 28-Dec-2024 gutteridge <gutteridge@NetBSD.org>

build.sh: fix spelling and grammar in a help string


# e6351014 23-Dec-2024 kre <kre@NetBSD.org>

Make sure that local var=$expansion is properly quoted as local var="$exp"
correcting some quotes incorrectly removed in the previous version, and
adding some that should have been present but never

Make sure that local var=$expansion is properly quoted as local var="$exp"
correcting some quotes incorrectly removed in the previous version, and
adding some that should have been present but never were.

This pointed out by riastradh@ -- thanks.

Also, one addition which should have been the previous update's commit
message - a couple of uses of subshells, where the only reason was to
control shell operator precedence (which works, but is costly) were changed
(in the previous rev) to use groups instead (ie: brace bracketing instead of
parentheses).

show more ...


# 9e6ac23f 20-Dec-2024 kre <kre@NetBSD.org>

General code cleanup. No operational change intended.

Mostly fix quoting, some missing quotes added, lots of meaningless
quotes removed (no guarantee of completeness in either of those).

Also get

General code cleanup. No operational change intended.

Mostly fix quoting, some missing quotes added, lots of meaningless
quotes removed (no guarantee of completeness in either of those).

Also get rid of one use of the obsolete test -o operator, and several
less than ideal uses of the test ! operator ... replace all that by
shell || and ! uses.

Don't use $@ in any context where field splitting cannot occur (also
avoid it in a couple of places where it would be defined, but isn't
actually wanted:
echo "whatever: $@"
is technically OK, but is generally just a waste of everyone's time,
the shell passing a whole set of args to echo for it to combine
back into one line is pointless. But X="$@" and using $@ in a
here doc are simply wrong.

The 80-column police visited during the update (just a couple of
hard cases managed to avoid detection).

Many extraneous use of sh \ line continuations removed when better
use of sh syntax means they're not required.

General cleanup of sh coding style (prefer clarity over white space
minimization).

If these changes cause any issues (aside from a small possibility of
slight layout changes in some error messages) that anyone is able
to observe, please let me know.

show more ...


# 9f34be14 20-Dec-2024 riastradh <riastradh@NetBSD.org>

build.sh: Make `build.sh pkg=...' bomb with -x/MKX11=yes for now.


# b134a12d 20-Dec-2024 martin <martin@NetBSD.org>

Fix typo in previous


# 9b50f3d1 20-Dec-2024 martin <martin@NetBSD.org>

Add a new operation "show-revisionid" that extracts a marker usable
to recreate the source (depending on the revision controll system
in use).


# 8468ef8d 19-Dec-2024 riastradh <riastradh@NetBSD.org>

build.sh: Use X11_TYPE=modular for build.sh pkg=... by default.

You can override it in your MAKECONF if you want to debug issues in
pkgsrc with cross-building X11_TYPE=native, but let's try to make

build.sh: Use X11_TYPE=modular for build.sh pkg=... by default.

You can override it in your MAKECONF if you want to debug issues in
pkgsrc with cross-building X11_TYPE=native, but let's try to make
things work out of the box here if you don't go out of your way.

show more ...


# 314b018b 29-Nov-2024 riastradh <riastradh@NetBSD.org>

build.sh: Fix whitespace error introduced in previous commit.

PR toolchain/58536: build.sh should support cross-building packages
into images


# 59040e53 29-Nov-2024 riastradh <riastradh@NetBSD.org>

build.sh: Experimental new target pkg=CATEGORY/PACKAGE.

Cross-builds a binary package of CATEGORY/PACKAGE from pkgsrc,
bootstrapping pkgsrc as necessary for the cross-build.

Requires pkgsrc, which

build.sh: Experimental new target pkg=CATEGORY/PACKAGE.

Cross-builds a binary package of CATEGORY/PACKAGE from pkgsrc,
bootstrapping pkgsrc as necessary for the cross-build.

Requires pkgsrc, which can be specified by either:

- setting PKGSRCDIR with -V or in the environment
- having it at ./pkgsrc
- having it at ../pkgsrc
- having it at /usr/pkgsrc

This isn't perfect -- it'd be better if we had some kind of manifest
for the packages you want built and/or included in install images --
but I've been sitting on this for months; let's just give it a try
and see where this goes. We can take it out again if the experiment
turns out not to be fruitful.

PR toolchain/58536: build.sh should support cross-building packages
into images

show more ...


# f1f38d3f 23-Jul-2024 riastradh <riastradh@NetBSD.org>

build.sh: Adjust xsrc existence test as requested.

PR toolchain/58399


# c931e716 05-Jul-2024 riastradh <riastradh@NetBSD.org>

build.sh: Check for xsrc/Makefile, not just xsrc/.

Should make the failure mode a little more obvious when you forget to
mount xsrc.

PR toolchain/58399


# 2ac6a765 23-Apr-2024 martin <martin@NetBSD.org>

For consistency, check MKREPRO_TIMESTAMP always numerically (not as string)


# 39cc76d6 20-Apr-2024 rillig <rillig@NetBSD.org>

build.sh: fix typos in usage message


# b1992656 03-Jan-2024 thorpej <thorpej@NetBSD.org>

Add virt68k to valid_MACHINE_ARCH.


# 599f59ef 04-Sep-2023 khorben <khorben@NetBSD.org>

build.sh: add support for git worktree

Git supports multiple working trees attached to the same repository,
with the git-worktree(1) subcommand.

When building from a Git working tree, the repositor

build.sh: add support for git worktree

Git supports multiple working trees attached to the same repository,
with the git-worktree(1) subcommand.

When building from a Git working tree, the repository metadata in .git
from the top source directory is a file (containing the actual location
of the metadata) instead of the usual directory structure. With this
change, build.sh allows .git to be a directory or a regular file
instead, therefore letting the sources build as expected from a Git
working tree.

To test: (without this patch)

src$ git worktree add ../src-clean-tree
[...]
src$ (cd ../src-clean-tree && ./build.sh tools)
[...]
ERROR: Cannot determine VCS for '.../src-clean-tree/'

XXX: pullup-10 pullup-9

show more ...


# 3cb563b3 18-Jul-2023 lukem <lukem@NetBSD.org>

build.sh: use mk.conf (if present) as MAKECONF

Set MAKECONF to mk.conf in the same directory as build.sh
(i.e., the top of the source tree) if mk.conf is present.
This means unprivileged users can b

build.sh: use mk.conf (if present) as MAKECONF

Set MAKECONF to mk.conf in the same directory as build.sh
(i.e., the top of the source tree) if mk.conf is present.
This means unprivileged users can benefit from mk.conf(5)
semantics without write privileges to /etc/mk.conf, and
also simplifies per-source-directory configuration.

Fail early if $MAKECONF is empty, since build.sh will fail
anyway after rebuilding nbmake.

Ensure that the computed MAKECONF isn't empty, and then
always set MAKECONF in the makewrapper (nbmake-$MACHINE).

Improve some formatting consistency in BUILDING.mdoc,
(even if BUILDING is generated without markup).

show more ...


# 60ac4a8d 13-Jun-2023 christos <christos@NetBSD.org>

fix build.sh wrong variable use that caused nbmake to be always rebult
(Jan-Benedict Glaw)


# 439f74ef 02-Jun-2023 lukem <lukem@NetBSD.org>

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 param

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.)

show more ...


# bd4a7347 02-Jun-2023 lukem <lukem@NetBSD.org>

build.sh: fix MKUNPRIVED comment

I renamed UNPRIVED to MKUNPRIVED 20 years ago, and missed a comment.


# 9d6c4a26 16-May-2023 lukem <lukem@NetBSD.org>

build.sh, BUILDING: consistency improvements

Consistently use "show", instead of sometimes using "display" or "print".
Fix mdoc markup (even though BUILDING is raw text).
Document help, -P, -?


# 48f6c7b4 23-Apr-2023 uwe <uwe@NetBSD.org>

build.sh: drop -lrumpdev hack introduced in previous

The existing trick in sys/rump/librump/rumpdev/rump_dev.c was not
updated after the renames in the kernel. kudos to riastradh.

PR kern/56599


# 0534fe7c 23-Apr-2023 uwe <uwe@NetBSD.org>

build.sh: tweak rumptest and RUMP_LIBSETS

Use --no-whole-archive to keep us as honest as currently possible.
PR kern/56599


# 0a7d8541 13-Mar-2023 martin <martin@NetBSD.org>

Avoid the dependency on a populated tooldir (or building the tools)
when simply doing mkrepro-timestamp and the current repository setups
does not actually require it.


# 57544d3e 21-Aug-2022 lukem <lukem@NetBSD.org>

build.sh: usage improvements

Use UPPERCASE as the convention to describe an option argument,
as it's more noticable than lowercase in the help description.

Expand tabs in the help.

Editorial impro

build.sh: usage improvements

Use UPPERCASE as the convention to describe an option argument,
as it's more noticable than lowercase in the help description.

Expand tabs in the help.

Editorial improvements.

show more ...


# dac6dcb8 21-Aug-2022 lukem <lukem@NetBSD.org>

Deprecate extsrc/, EXTSRCSRCDIR, MKEXTSRC

Remove support for building extsrc/:
1. Makefile: remove do-extsrc target.
2. build.sh: remove options -y and -Y extsrcdir.
3. distrib/sets: remove support

Deprecate extsrc/, EXTSRCSRCDIR, MKEXTSRC

Remove support for building extsrc/:
1. Makefile: remove do-extsrc target.
2. build.sh: remove options -y and -Y extsrcdir.
3. distrib/sets: remove support for extsrc in various tools
including the options -L ext and -y, and the extsrc sets.
4. doc/BUILDING.mdoc: remove docs for extsrc/, EXTSRCSRCDIR, MKEXTSRC (etc)
5. bsd.own.mk and various Makefiles: remove support for extsrc/,
EXTSRCSRCDIR, MKEXTSRC.

As proposed on tech-kern and tech-userlevel on 2022-01-07
and followed up on 2022-08-21.

show more ...


12345678910>>...16