The NetBSD Project

CVS log for src/build.sh

[BACK] Up to [cvs.NetBSD.org] / src

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.285 / (download) - annotate - [select for diffs], Sun Jul 6 18:04:44 2014 UTC (3 weeks, 2 days ago) by apb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.284: +36 -10 lines
Diff to previous 1.284 (colored)

Make the makewrapper script robust against variables with
embedded special characters.
* Add a shell_quote function, identical to that in postinstall(1)
  and etcupdate(1).
* In the variable=value lines emitted to the wrapper script,
  quote the values, because they may contain special characters.
* Sort the variable names, not the variable=value lines, in case the
  value contains newlines.

Revision 1.284 / (download) - annotate - [select for diffs], Sun Jul 6 17:49:20 2014 UTC (3 weeks, 2 days ago) by apb
Branch: MAIN
Changes since 1.283: +4 -4 lines
Diff to previous 1.283 (colored)

Set USETOOLS and MAKEWRAPPERMACHINE in parseoptions(), where
several other make variables are set, insteadof in special
case code in createmakewrapper().

Revision 1.283 / (download) - annotate - [select for diffs], Sun Jul 6 17:35:09 2014 UTC (3 weeks, 2 days ago) by apb
Branch: MAIN
Changes since 1.282: +4 -4 lines
Diff to previous 1.282 (colored)

Fix two incorrect attempts to skip blank lines or comment lines.
They failed to account for the space that is appended to ${line}
before comparison.

Revision 1.282 / (download) - annotate - [select for diffs], Sat Jun 14 12:25:00 2014 UTC (6 weeks, 3 days ago) by apb
Branch: MAIN
Changes since 1.281: +5 -2 lines
Diff to previous 1.281 (colored)

Print BUILDID near the beginning of build.sh.

Revision 1.251.2.5 / (download) - annotate - [select for diffs], Thu May 22 13:23:26 2014 UTC (2 months, 1 week ago) by yamt
Branch: yamt-pagecache
Changes since 1.251.2.4: +85 -31 lines
Diff to previous 1.251.2.4 (colored) to branchpoint 1.251 (colored) next main 1.252 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.281 / (download) - annotate - [select for diffs], Mon May 5 19:12:19 2014 UTC (2 months, 3 weeks ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base9
Changes since 1.280: +11 -5 lines
Diff to previous 1.280 (colored)

Add a new action kernel.gdb=MYCONF to build a kernel with debuginfo
(and generate netbsd.gdb)

Revision 1.280 / (download) - annotate - [select for diffs], Tue Apr 29 11:52:51 2014 UTC (3 months ago) by uebayasi
Branch: MAIN
Changes since 1.279: +0 -1 lines
Diff to previous 1.279 (colored)

Revert previous for now; resolvepath() has to work for file paths too.

Revision 1.279 / (download) - annotate - [select for diffs], Tue Apr 29 06:51:57 2014 UTC (3 months ago) by uebayasi
Branch: MAIN
Changes since 1.278: +3 -2 lines
Diff to previous 1.278 (colored)

resolvepath: Resolve .. in absolute paths.

Revision 1.278 / (download) - annotate - [select for diffs], Mon Mar 31 19:29:21 2014 UTC (3 months, 4 weeks ago) by martin
Branch: MAIN
CVS Tags: tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Changes since 1.277: +3 -3 lines
Diff to previous 1.277 (colored)

Typo

Revision 1.277 / (download) - annotate - [select for diffs], Mon Mar 31 11:25:47 2014 UTC (3 months, 4 weeks ago) by martin
Branch: MAIN
Changes since 1.276: +3 -2 lines
Diff to previous 1.276 (colored)

Bring back the playstation2 port - now that a toolchain for it is
available again.

Revision 1.276 / (download) - annotate - [select for diffs], Mon Feb 24 07:23:38 2014 UTC (5 months ago) by skrll
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.275: +3 -3 lines
Diff to previous 1.275 (colored)

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.

Revision 1.275 / (download) - annotate - [select for diffs], Mon Feb 10 08:20:05 2014 UTC (5 months, 2 weeks ago) by apb
Branch: MAIN
Changes since 1.274: +18 -18 lines
Diff to previous 1.274 (colored)

Move the "-U or -E must be set for build as an unprivileged user."
test from sanitycheck() to validatemakeparams().  If MKUNPRIVED is set
in mk.conf (and not on the build.sh command line) then it's not yet
available for use in the sanitycheck function.

Also move some other code for consistency.

Revision 1.274 / (download) - annotate - [select for diffs], Mon Jan 13 20:00:20 2014 UTC (6 months, 2 weeks ago) by apb
Branch: MAIN
Changes since 1.273: +3 -3 lines
Diff to previous 1.273 (colored)

In the sanitycheck function, treat undefined MKUNPRIVED like "no".

Other uses of MKUNPRIVED should not need this treatment, because
bsd.own.mk sets it to "no" by default, and build.sh uses getmakevar to
pick up that default (but that happens too late for the sanitycheck
function to take advantage of it).

Revision 1.198.2.3.4.4 / (download) - annotate - [select for diffs], Wed Dec 18 18:40:35 2013 UTC (7 months, 1 week ago) by matt
Branch: matt-nb5-mips64
Changes since 1.198.2.3.4.3: +13 -5 lines
Diff to previous 1.198.2.3.4.3 (colored) to branchpoint 1.198.2.3 (colored) next main 1.199 (colored)

Allow arch of armv7/armv7eb for evbarm.  Add evbarmv7-e[bl] alias

Revision 1.273 / (download) - annotate - [select for diffs], Fri Aug 30 10:29:06 2013 UTC (10 months, 4 weeks ago) by pooka
Branch: MAIN
Changes since 1.272: +3 -3 lines
Diff to previous 1.272 (colored)

Rename RUMPTEST_BUILDSH to RUMPKERN_ONLY.  Turns out not building any
POSIX implementations of hypercalls is useful beyond the build.sh test,
such as when building rump kernels for non-POSIX hosts.

Revision 1.272 / (download) - annotate - [select for diffs], Tue Aug 6 05:47:58 2013 UTC (11 months, 3 weeks ago) by matt
Branch: MAIN
Changes since 1.271: +15 -7 lines
Diff to previous 1.271 (colored)

Use earmv4 for ecats enetwinder eshark
Add evbearm variants for earmv{4,5}{,eb} earmv7{,hf} earmv6{,hf}{,eb}

Revision 1.271 / (download) - annotate - [select for diffs], Mon Aug 5 00:28:52 2013 UTC (11 months, 3 weeks ago) by matt
Branch: MAIN
Changes since 1.270: +6 -2 lines
Diff to previous 1.270 (colored)

Add evbearmv7-eb and evbearmv7hf-eb aliases for evbarm.
These are because cortex (armv7a) cores uses a different big-endian binary
format that previous big-endian arm systems.

Revision 1.269.2.1 / (download) - annotate - [select for diffs], Tue Jul 23 21:07:19 2013 UTC (12 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.269: +3 -2 lines
Diff to previous 1.269 (colored) next main 1.270 (colored)

sync with HEAD

Revision 1.270 / (download) - annotate - [select for diffs], Thu Jul 18 22:08:59 2013 UTC (12 months, 1 week ago) by matt
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1
Changes since 1.269: +3 -2 lines
Diff to previous 1.269 (colored)

Add stub port for evbcf which has enough to do a distribution build.

Revision 1.269 / (download) - annotate - [select for diffs], Fri Jun 28 06:17:37 2013 UTC (13 months ago) by msaitoh
Branch: MAIN
CVS Tags: riastradh-drm2-base
Branch point for: riastradh-drm2
Changes since 1.268: +3 -3 lines
Diff to previous 1.268 (colored)

The default of hpcarm's MACHINE_ARCH is arm.

Revision 1.268 / (download) - annotate - [select for diffs], Thu Jun 27 01:02:13 2013 UTC (13 months ago) by matt
Branch: MAIN
Changes since 1.267: +8 -7 lines
Diff to previous 1.267 (colored)

Add earm aliases for various arm ports (ecats, hpcearm, eshark, etc.)

Revision 1.255.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 06:26:12 2013 UTC (13 months ago) by tls
Branch: tls-maxphys
Changes since 1.255.2.2: +6 -4 lines
Diff to previous 1.255.2.2 (colored) next main 1.256 (colored)

resync from head

Revision 1.267 / (download) - annotate - [select for diffs], Wed May 1 13:12:00 2013 UTC (14 months, 4 weeks ago) by kiyohara
Branch: MAIN
CVS Tags: tls-maxphys-base, khorben-n900
Changes since 1.266: +3 -2 lines
Diff to previous 1.266 (colored)

Support to build for epoc32 userland.

Revision 1.266 / (download) - annotate - [select for diffs], Sun Apr 28 12:54:39 2013 UTC (15 months ago) by pooka
Branch: MAIN
Changes since 1.265: +4 -3 lines
Diff to previous 1.265 (colored)

fix "build.sh rumptest" wrt private hypercalls

Revision 1.265 / (download) - annotate - [select for diffs], Thu Mar 7 04:51:58 2013 UTC (16 months, 3 weeks ago) by oki
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.264: +3 -3 lines
Diff to previous 1.264 (colored)

fixed typo on comment.

Revision 1.255.2.2 / (download) - annotate - [select for diffs], Mon Feb 25 00:23:49 2013 UTC (17 months ago) by tls
Branch: tls-maxphys
Changes since 1.255.2.1: +66 -37 lines
Diff to previous 1.255.2.1 (colored)

resync with head

Revision 1.264 / (download) - annotate - [select for diffs], Wed Feb 13 02:17:54 2013 UTC (17 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.263: +30 -2 lines
Diff to previous 1.263 (colored)

add a disk-image=target option

Revision 1.263 / (download) - annotate - [select for diffs], Sun Feb 3 05:37:43 2013 UTC (17 months, 3 weeks ago) by matt
Branch: MAIN
Changes since 1.262: +4 -2 lines
Diff to previous 1.262 (colored)

Add
MACHINE=evbarm		MACHINE_ARCH=earmhf	ALIAS=evbearmhf-el
MACHINE=evbarm		MACHINE_ARCH=earmhfeb	ALIAS=evbearmhf-eb

Revision 1.262 / (download) - annotate - [select for diffs], Sat Feb 2 02:08:37 2013 UTC (17 months, 3 weeks ago) by hubertf
Branch: MAIN
Changes since 1.261: +4 -3 lines
Diff to previous 1.261 (colored)

If the initial build of nbmake fails, make the configure logfile
available (and tell where it is).

Revision 1.251.2.4 / (download) - annotate - [select for diffs], Wed Jan 23 00:04:04 2013 UTC (18 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.251.2.3: +3 -2 lines
Diff to previous 1.251.2.3 (colored) to branchpoint 1.251 (colored)

sync with head

Revision 1.251.2.3 / (download) - annotate - [select for diffs], Wed Jan 16 05:25:52 2013 UTC (18 months, 1 week ago) by yamt
Branch: yamt-pagecache
Changes since 1.251.2.2: +243 -210 lines
Diff to previous 1.251.2.2 (colored) to branchpoint 1.251 (colored)

sync with (a bit old) head

Revision 1.261 / (download) - annotate - [select for diffs], Mon Jan 14 13:02:59 2013 UTC (18 months, 2 weeks ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base8
Changes since 1.260: +3 -2 lines
Diff to previous 1.260 (colored)

Scrub TERMINFO from host env lest it leaks into libterminfo build.

Revision 1.260 / (download) - annotate - [select for diffs], Sun Dec 2 19:19:36 2012 UTC (19 months, 3 weeks ago) by apb
Branch: MAIN
CVS Tags: yamt-pagecache-base7
Changes since 1.259: +33 -36 lines
Diff to previous 1.259 (colored)

Move some tests from validatemakeparams() to sanitycheck(), so the
related error messages can be printed before build.sh builds
a new version of make.

Also make some sanity tests unconditional, instead of conditional on
${do_build} || ${do_distribution} || ${do_release} || ${do_install}.

Revision 1.255.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 02:57:27 2012 UTC (20 months, 1 week ago) by tls
Branch: tls-maxphys
Changes since 1.255: +229 -181 lines
Diff to previous 1.255 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.259 / (download) - annotate - [select for diffs], Thu Nov 15 23:51:53 2012 UTC (20 months, 1 week ago) by joerg
Branch: MAIN
Changes since 1.258: +3 -4 lines
Diff to previous 1.258 (colored)

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.

Revision 1.258 / (download) - annotate - [select for diffs], Wed Oct 31 13:05:09 2012 UTC (20 months, 4 weeks ago) by apb
Branch: MAIN
Changes since 1.257: +211 -174 lines
Diff to previous 1.257 (colored)

Replace getarch and validatearch with table-driven implementations.

Revision 1.251.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 18:46:04 2012 UTC (20 months, 4 weeks ago) by yamt
Branch: yamt-pagecache
Changes since 1.251.2.1: +33 -9 lines
Diff to previous 1.251.2.1 (colored) to branchpoint 1.251 (colored)

sync with head

Revision 1.257 / (download) - annotate - [select for diffs], Thu Oct 18 16:15:29 2012 UTC (21 months, 1 week ago) by apb
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Changes since 1.256: +16 -3 lines
Diff to previous 1.256 (colored)

Print the value of MAKECONF.

Revision 1.256 / (download) - annotate - [select for diffs], Sat Sep 29 04:02:42 2012 UTC (21 months, 4 weeks ago) by tsutsui
Branch: MAIN
Changes since 1.255: +5 -6 lines
Diff to previous 1.255 (colored)

Fix build.sh "modules" target build which has been broken since
do-sys-modules target was removed from src/Makefile in rev 1.299.
Fixes PR/46994.
Also remove a redundant bomb message which is already handled by
make_in_dir().

Revision 1.255 / (download) - annotate - [select for diffs], Sun Aug 5 04:39:09 2012 UTC (23 months, 3 weeks ago) by matt
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.254: +16 -4 lines
Diff to previous 1.254 (colored)

Add support for MACHINE_ARCH matching earm or earmeb
Make evbearm-e[bl] a shortcut for evbarm and earmeb or earm.
Allow cats, iyonic, netwiner, shark, zaurus to specify earm though they
still default to arm.

Revision 1.251.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:01:35 2012 UTC (2 years, 3 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.251: +38 -3 lines
Diff to previous 1.251 (colored)

sync with head

Revision 1.253.2.1 / (download) - annotate - [select for diffs], Fri Mar 2 16:48:10 2012 UTC (2 years, 4 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.253: +21 -9 lines
Diff to previous 1.253 (colored) next main 1.254 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #68):
	doc/BUILDING.mdoc: revision 1.88
	BUILDING: revision 1.99
	build.sh: revision 1.254
Add a missing period.
Add sanity checks for live-image and install-image targets
(which require mtree spec files built with MKUNPRIVED=yes)
to avoid unexpected makefs(8) error during image builds:
 - if release op is specified with live-image or install-image
   at the same time, make sure -U is also specified for the image builds
 - before perform live-image and install-image ops check METALOG file
   in DESTDIR to see if the build have been performed with MKUNPRIVED
XXX: Probably toolchain should create consistent spec files in
XXX: DESTDIR/etc/mtree dir regardless of MKUNPRIVED settings.

Revision 1.254 / (download) - annotate - [select for diffs], Sun Feb 26 20:32:40 2012 UTC (2 years, 5 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4
Changes since 1.253: +21 -9 lines
Diff to previous 1.253 (colored)

Add sanity checks for live-image and install-image targets
(which require mtree spec files built with MKUNPRIVED=yes)
to avoid unexpected makefs(8) error during image builds:
 - if release op is specified with live-image or install-image
   at the same time, make sure -U is also specified for the image builds
 - before perform live-image and install-image ops check METALOG file
   in DESTDIR to see if the build have been performed with MKUNPRIVED

XXX: Probably toolchain should create consistent spec files in
XXX: DESTDIR/etc/mtree dir regardless of MKUNPRIVED settings.

Revision 1.253 / (download) - annotate - [select for diffs], Sun Jan 22 03:53:32 2012 UTC (2 years, 6 months ago) by tsutsui
Branch: MAIN
CVS Tags: netbsd-6-base
Branch point for: netbsd-6
Changes since 1.252: +25 -2 lines
Diff to previous 1.252 (colored)

Add "live-image" and "install-image" target support to build.sh.

"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
 msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.

Revision 1.252 / (download) - annotate - [select for diffs], Mon Dec 5 23:04:39 2011 UTC (2 years, 7 months ago) by jym
Branch: MAIN
Changes since 1.251: +3 -3 lines
Diff to previous 1.251 (colored)

do_sys_sync() is part of vfs, hence rumpvfs. Used by pmf(9) during
device suspend, so explicitly link against rumpvfs to resolve that
symbol when linking rumpdev.

Unbreaks "rumptest" target.

Revision 1.251 / (download) - annotate - [select for diffs], Mon Oct 17 16:22:12 2011 UTC (2 years, 9 months ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.250: +3 -3 lines
Diff to previous 1.250 (colored)

wheher -> whether

Revision 1.250 / (download) - annotate - [select for diffs], Wed Sep 14 17:35:44 2011 UTC (2 years, 10 months ago) by apb
Branch: MAIN
Changes since 1.249: +9 -7 lines
Diff to previous 1.249 (colored)

When using random versions of make to try to find the TOOLDIR,
redirect 2>/dev/null.  This should hide error messages like
"*** missing separator.  Stop." when GNU make doesn't
understand ".include".

Revision 1.249 / (download) - annotate - [select for diffs], Fri Sep 9 18:48:34 2011 UTC (2 years, 10 months ago) by apb
Branch: MAIN
Changes since 1.248: +237 -11 lines
Diff to previous 1.248 (colored)

Add tests for the shell under which build.sh is run.  If the
shell fails the tests, then build.sh tries to re-exec itself
under a more suitable shell.

Revision 1.248 / (download) - annotate - [select for diffs], Fri Sep 9 13:29:23 2011 UTC (2 years, 10 months ago) by apb
Branch: MAIN
Changes since 1.247: +31 -14 lines
Diff to previous 1.247 (colored)

Allow MAKEFLAGS to be set via build.sh -V.  Somebody asked for this
in 2008.

Also add comments above a few functions in build.sh, and bump copyright
dates.

Revision 1.247 / (download) - annotate - [select for diffs], Tue Aug 30 12:04:12 2011 UTC (2 years, 11 months ago) by apb
Branch: MAIN
Changes since 1.246: +4 -4 lines
Diff to previous 1.246 (colored)

Escape '$' in double quotes.

Revision 1.246 / (download) - annotate - [select for diffs], Mon Aug 15 14:48:00 2011 UTC (2 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.245: +46 -46 lines
Diff to previous 1.245 (colored)

Add `-h' and `-y' to `Usage' (which were missing there);
synchronize the options list from `Usage' with its own summary,
 and re-outline that list;
two corrections in the order of the options in (parseoptions) list;
a small punctuation change;
remove trailing whitespace in one line.

From Snader_LB.

Revision 1.245 / (download) - annotate - [select for diffs], Mon Aug 8 22:15:42 2011 UTC (2 years, 11 months ago) by jmcneill
Branch: MAIN
Changes since 1.244: +24 -3 lines
Diff to previous 1.244 (colored)

add an installmodules=<dir> command to build.sh

Revision 1.242.2.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:18:27 2011 UTC (3 years, 5 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.242: +5 -5 lines
Diff to previous 1.242 (colored) next main 1.243 (colored)

Sync with HEAD

Revision 1.244 / (download) - annotate - [select for diffs], Wed Jan 26 01:18:43 2011 UTC (3 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.243: +3 -3 lines
Diff to previous 1.243 (colored)

Add support for the Extensible MIPS ("eMIPS") platform.  The
NetBSD/emips port runs on Xilinx and Beecube FPGA systems and the
Giano system simulator.

eMIPS is a platform developed at Microsoft Research for researching
reconfigurable computing.  eMIPS allows dynamic loading and scheduling
of application-specific circuits for the purpose of accelerating
computations based on the current workload.

NetBSD eMIPS support for NetBSD 4.x was written at Microsoft Research
by Alessandro Forin and Neil Pittman.  Microsoft Corporation has
donated full copyright to The NetBSD Foundation.

Platform support for eMIPS is the first part of Microsoft's
contribution.  The second part includes the hardware accelerator
framework and will be proposed on tech-kern soon.

Revision 1.243 / (download) - annotate - [select for diffs], Sun Jan 23 06:50:53 2011 UTC (3 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.242: +4 -4 lines
Diff to previous 1.242 (colored)

Add arc64 alias

Revision 1.242 / (download) - annotate - [select for diffs], Mon Dec 6 09:08:39 2010 UTC (3 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Branch point for: bouyer-quota2
Changes since 1.241: +4 -4 lines
Diff to previous 1.241 (colored)

* test librumpdev_dm
* update rumpcrypto name

Revision 1.241 / (download) - annotate - [select for diffs], Tue Nov 23 18:30:26 2010 UTC (3 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.240: +4 -3 lines
Diff to previous 1.240 (colored)

ld wants to create a 0-byte file before it starts linking, with
the default being ./a.out.  If we run build.sh rumptest from a r/o
fs, linking fails before it gets to the parts that interest us and
the whole test silently fails.

So:
1) use -o /tmp/rumptest.$$ (objdir might be better, but I couldn't
   determine with a high confidence how to obtain the definite one
   in build.sh)
2) catch "cannot open output file" error from ld

Revision 1.240 / (download) - annotate - [select for diffs], Tue Aug 24 20:52:31 2010 UTC (3 years, 11 months ago) by pgoyette
Branch: MAIN
Changes since 1.239: +6 -4 lines
Diff to previous 1.239 (colored)

Replace a couple uses of '$@' with '$*'
In statusmsg2() make the msg variable local.

More thanks to Robert Elz.

Revision 1.239 / (download) - annotate - [select for diffs], Tue Aug 24 15:28:22 2010 UTC (3 years, 11 months ago) by pgoyette
Branch: MAIN
Changes since 1.238: +4 -4 lines
Diff to previous 1.238 (colored)

Quote the $msg variable to ensure that leading/trailing spaces get counted.

Thanks to Robert Elz.

Revision 1.238 / (download) - annotate - [select for diffs], Tue Aug 24 13:35:32 2010 UTC (3 years, 11 months ago) by pgoyette
Branch: MAIN
Changes since 1.237: +36 -16 lines
Diff to previous 1.237 (colored)

Improve formatting of column-aligned output, as discussed on current-users.

Revision 1.237 / (download) - annotate - [select for diffs], Thu Jun 17 08:19:02 2010 UTC (4 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.236: +3 -2 lines
Diff to previous 1.236 (colored)

add tty to rumptest

Revision 1.236 / (download) - annotate - [select for diffs], Thu May 27 05:41:54 2010 UTC (4 years, 2 months ago) by pgoyette
Branch: MAIN
Changes since 1.235: +3 -3 lines
Diff to previous 1.235 (colored)

Minor grammar improvement in status message.

Revision 1.235 / (download) - annotate - [select for diffs], Tue May 11 20:36:04 2010 UTC (4 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.234: +3 -2 lines
Diff to previous 1.234 (colored)

Test for barebones rump network config (i.e. just rumpnet and kernel base).

Revision 1.234 / (download) - annotate - [select for diffs], Sun May 9 18:53:03 2010 UTC (4 years, 2 months ago) by morr
Branch: MAIN
Changes since 1.233: +3 -2 lines
Diff to previous 1.233 (colored)

Don't try to build xldscripts during build.sh modules

Revision 1.233 / (download) - annotate - [select for diffs], Tue Mar 30 13:17:47 2010 UTC (4 years, 4 months ago) by cegger
Branch: MAIN
Changes since 1.232: +11 -9 lines
Diff to previous 1.232 (colored)

move change from rev 1.232 to the initialization part.
This fixes the problem 'nbconfig: cannot create /GENERIC'
when KERNOBJDIR has a relative path and is defined as env variable.
Problem reported and fix proposed on tech-toolchain@.

'commit it then' christos@

Revision 1.232 / (download) - annotate - [select for diffs], Fri Mar 26 18:02:14 2010 UTC (4 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.231: +9 -2 lines
Diff to previous 1.231 (colored)

make kernobjdir absolute.

Revision 1.231 / (download) - annotate - [select for diffs], Sun Mar 7 17:34:25 2010 UTC (4 years, 4 months ago) by hans
Branch: MAIN
Changes since 1.230: +3 -3 lines
Diff to previous 1.230 (colored)

Make build.sh work again with /usr/xpg4/bin/sh on Solaris. Ok by pooka.

Revision 1.230 / (download) - annotate - [select for diffs], Sun Mar 7 16:57:41 2010 UTC (4 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.229: +5 -3 lines
Diff to previous 1.229 (colored)

* detect missing libraries (such as -lrumpfs_msdosfs)
* fix spelling of -lrumpfs_msdos
* update linklists

Revision 1.198.2.3.4.3 / (download) - annotate - [select for diffs], Sun Feb 28 04:05:41 2010 UTC (4 years, 5 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.198.2.3.4.2: +4 -4 lines
Diff to previous 1.198.2.3.4.2 (colored) to branchpoint 1.198.2.3 (colored)

Enable cobalt64 (cobalt/mips64el) and arc64 (arc/mips64el).

Revision 1.229 / (download) - annotate - [select for diffs], Fri Feb 26 18:57:06 2010 UTC (4 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.228: +2 -3 lines
Diff to previous 1.228 (colored)

Don't need to set NORUMPUSER since rumpuser isn't built from sys
anymore.

Revision 1.228 / (download) - annotate - [select for diffs], Wed Jan 13 02:24:06 2010 UTC (4 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.227: +6 -3 lines
Diff to previous 1.227 (colored)

need object directory for etc/mtree to run distrib-dirs

Revision 1.227 / (download) - annotate - [select for diffs], Wed Jan 13 02:18:25 2010 UTC (4 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.226: +7 -5 lines
Diff to previous 1.226 (colored)

In rumptest, create obj dirs before distrib dirs.  Fail if distrib dir
creation fails.

per clue-by-4 from mrg

Revision 1.226 / (download) - annotate - [select for diffs], Sat Dec 26 14:13:08 2009 UTC (4 years, 7 months ago) by mbalmer
Branch: MAIN
Changes since 1.225: +4 -4 lines
Diff to previous 1.225 (colored)

'build.sh ... modules' only builds modules, but does not install them,
reflect that in the scripts output.  While here, fix the past form of build.

Revision 1.225 / (download) - annotate - [select for diffs], Thu Dec 17 15:30:37 2009 UTC (4 years, 7 months ago) by matt
Branch: MAIN
Changes since 1.224: +4 -4 lines
Diff to previous 1.224 (colored)

Add cobalt64 alias and indicte cobalt can be mips64el too.

Revision 1.224 / (download) - annotate - [select for diffs], Mon Dec 14 01:11:02 2009 UTC (4 years, 7 months ago) by matt
Branch: MAIN
Changes since 1.223: +18 -2 lines
Diff to previous 1.223 (colored)

Merge from matt-nb5-mips64

Revision 1.223 / (download) - annotate - [select for diffs], Sat Dec 5 16:29:10 2009 UTC (4 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.222: +3 -3 lines
Diff to previous 1.222 (colored)

Remove support for NetBSD/playstation2.

Revision 1.222 / (download) - annotate - [select for diffs], Mon Nov 30 16:13:22 2009 UTC (4 years, 7 months ago) by uebayasi
Branch: MAIN
CVS Tags: playstation2-eol-2009
Changes since 1.221: +17 -4 lines
Diff to previous 1.221 (colored)

Support "extsrc", externally added programs and libraries.  Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org.  (These sets are not included as TNF releases.)

Revision 1.221 / (download) - annotate - [select for diffs], Tue Nov 24 13:39:07 2009 UTC (4 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.220: +14 -5 lines
Diff to previous 1.220 (colored)

For rumptest, ignore unresolved symbols which are in the
toolchain namespace:
  1) anything starting with __
  2) MD quirks as defined by sys/rump/Makefile.rump

Revision 1.220 / (download) - annotate - [select for diffs], Mon Nov 23 14:07:45 2009 UTC (4 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.219: +5 -3 lines
Diff to previous 1.219 (colored)

Add more rumpdev configurations to rumptest.

Revision 1.219 / (download) - annotate - [select for diffs], Wed Nov 18 18:05:19 2009 UTC (4 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.218: +85 -2 lines
Diff to previous 1.218 (colored)

Add rumptest command for testing rump linkage.

Revision 1.218 / (download) - annotate - [select for diffs], Tue Nov 17 20:49:34 2009 UTC (4 years, 8 months ago) by apb
Branch: MAIN
Changes since 1.217: +5 -3 lines
Diff to previous 1.217 (colored)

Set LC_ALL=C before we try to parse the output from any command.
This will ensure that awk is not invoked in a way that tickles
the bug described in PR 42320.

Revision 1.217 / (download) - annotate - [select for diffs], Wed Nov 4 12:58:01 2009 UTC (4 years, 8 months ago) by apb
Branch: MAIN
Changes since 1.216: +4 -2 lines
Diff to previous 1.216 (colored)

If do_expertmode is false, then add DESTDIR and RELEASEDIR to makeenv.
This reinstates behaviour that was accidentally lost in revision 1.215.

Revision 1.216 / (download) - annotate - [select for diffs], Thu Oct 15 03:21:45 2009 UTC (4 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.215: +3 -3 lines
Diff to previous 1.215 (colored)

There is no variable called __SRC_TOP_OBJ__.  Use the correct one instead.

Revision 1.215 / (download) - annotate - [select for diffs], Wed Oct 14 19:03:12 2009 UTC (4 years, 9 months ago) by apb
Branch: MAIN
Changes since 1.214: +31 -16 lines
Diff to previous 1.214 (colored)

Bomb if TOOLDIR, DESTDIR, or RELEASEDIR changes after we have created the
top level object directory.  This can happen if /etc/mk.conf overrides
values passed to build.sh in the environment or on the command line.

Revision 1.214 / (download) - annotate - [select for diffs], Sat Oct 3 19:19:59 2009 UTC (4 years, 9 months ago) by apb
Branch: MAIN
Changes since 1.213: +16 -3 lines
Diff to previous 1.213 (colored)

Add an additional check for whether to rebuild make.  This fixes a problem
I saw where building first without and then with OBJMACHINE confused
build.sh into not building a new nbmake in the new TOOLDIR.

Revision 1.213 / (download) - annotate - [select for diffs], Sun Sep 27 22:02:41 2009 UTC (4 years, 10 months ago) by apb
Branch: MAIN
Changes since 1.212: +88 -47 lines
Diff to previous 1.212 (colored)

Replace try_set_TOOLDIR with a new function, print_tooldir_make,
which does much of the same work but prints a result instead of
setting a global variable.  Adjust the rebuildmake function to suit.
Improve the comments describing how we try to figure out whether
the existing tooldir make needs to be rebuilt.

Revision 1.212 / (download) - annotate - [select for diffs], Sun Sep 27 18:08:24 2009 UTC (4 years, 10 months ago) by apb
Branch: MAIN
Changes since 1.211: +68 -61 lines
Diff to previous 1.211 (colored)

* Use a more robust method of creating the top level object directory.
  Use getmakevar to expand MAKEOBJDIRPREFIX or MAKEOBJDIR, or (if
  neither of those variables is set) use a non-recursive "make obj" in
  the top level source directory.

* Do not let TOP_objdir default to ${TOP}.  It's now set only by the
  -M or -O command line options, or after using getmakevar to expand
  MAKEOBJDIRPREFIX or MAKEOBJDIR.

* Make try_set_TOOLDIR handle MAKEOBJDIRPERFIX passed from the
  environment.  It runs too early to use getmakevar, so it will not work
  if the value contains embedded '${...}' variable references.

* Use '$TOOLDIR' (with a literal '$') instead of 'nonexistent' in
  a message when rebuilding make when TOOLDIR is not yet known.

Revision 1.211 / (download) - annotate - [select for diffs], Sun Sep 27 17:55:53 2009 UTC (4 years, 10 months ago) by apb
Branch: MAIN
Changes since 1.210: +8 -3 lines
Diff to previous 1.210 (colored)

Introduce a done_rebuildmake variable, instead of abusing do_rebuildmake
to mean both "must rebuild make" and "have already rebuilt make".

Revision 1.210 / (download) - annotate - [select for diffs], Sun Sep 27 17:48:19 2009 UTC (4 years, 10 months ago) by apb
Branch: MAIN
Changes since 1.209: +23 -14 lines
Diff to previous 1.209 (colored)

Rename raw_getmakevar to bomb_getmakevar.  It wasn't "raw" at all; it
was (and is) a wrapper around nobomb_getmakevar.

Revision 1.209 / (download) - annotate - [select for diffs], Sun Sep 27 17:28:38 2009 UTC (4 years, 10 months ago) by apb
Branch: MAIN
Changes since 1.208: +5 -5 lines
Diff to previous 1.208 (colored)

Allow build.sh "-C cdextra" option to be specified multiple times.

Revision 1.208 / (download) - annotate - [select for diffs], Sun Sep 27 17:25:01 2009 UTC (4 years, 10 months ago) by apb
Branch: MAIN
Changes since 1.207: +29 -29 lines
Diff to previous 1.207 (colored)

Make resolvepath and resolvepaths slightly less magic.  They now take
a variable name as an arg unstead of always working on $OPTARG,
and resolveepaths is now a wrapper around resolvepath instead of
duplicating code.

Revision 1.198.2.3.4.2 / (download) - annotate - [select for diffs], Wed Sep 9 04:46:10 2009 UTC (4 years, 10 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-premerge-20091211
Changes since 1.198.2.3.4.1: +4 -2 lines
Diff to previous 1.198.2.3.4.1 (colored) to branchpoint 1.198.2.3 (colored)

For pmap64, algor64, and sgimips64 use *64 as the makewrapper name

Revision 1.207 / (download) - annotate - [select for diffs], Mon Sep 7 04:14:17 2009 UTC (4 years, 10 months ago) by jnemeth
Branch: MAIN
Changes since 1.206: +36 -2 lines
Diff to previous 1.206 (colored)

Add a modules operation to build.sh, which builds and installs kernel modules
into DESTDIR.

This is based on the patch provided by tsutsui@ on tech-toolchain@.

Revision 1.198.2.3.4.1 / (download) - annotate - [select for diffs], Wed Aug 26 03:38:31 2009 UTC (4 years, 11 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-u1-k1-k5, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.198.2.3: +16 -2 lines
Diff to previous 1.198.2.3 (colored)

Add recognition of algor64, pmax64, and sgimips64

Revision 1.200.2.1 / (download) - annotate - [select for diffs], Wed May 13 19:15:48 2009 UTC (5 years, 2 months ago) by jym
Branch: jym-xensuspend
Changes since 1.200: +44 -32 lines
Diff to previous 1.200 (colored) next main 1.201 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.198.2.3 / (download) - annotate - [select for diffs], Wed Mar 18 05:39:06 2009 UTC (5 years, 4 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3
Branch point for: matt-nb5-mips64
Changes since 1.198.2.2: +3 -3 lines
Diff to previous 1.198.2.2 (colored) to branchpoint 1.198 (colored) next main 1.199 (colored)

Pull up following revision(s) (requested by apb in ticket #578):
	build.sh: revision 1.205
	share/mk/bsd.own.mk: revision 1.559
Add "-", "_", and "A-Z" to the set of allowed characters in the
result from `uname -p`.  We already have a platform with an underline
("x86_64"), and the other chars seem harmless.

Revision 1.198.2.2 / (download) - annotate - [select for diffs], Wed Mar 18 05:37:59 2009 UTC (5 years, 4 months ago) by snj
Branch: netbsd-5
Changes since 1.198.2.1: +15 -6 lines
Diff to previous 1.198.2.1 (colored) to branchpoint 1.198 (colored)

Pull up following revision(s) (requested by apb in ticket #578):
	build.sh: revision 1.204
	share/mk/bsd.own.mk: revision 1.558
In build.sh and bsd.own.mk, if uname -p fails, or prints "unknown", or
prints something that does not look like an identifier, then use uname
-m instead.  (Cygwin prints "unknown", and OpenBSD prints a long string
containing several spaces; this code should handle both.)

Revision 1.206 / (download) - annotate - [select for diffs], Fri Mar 13 16:23:31 2009 UTC (5 years, 4 months ago) by perry
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.205: +6 -2 lines
Diff to previous 1.205 (colored)

Add a MKARZERO flag, which invokes ar(1) with the new D flag when it
is set to "yes" -- defaults to "no" except for build.sh builds. This
results in a deterministic .a file rather than one that reflects
timestamps and permissions on the source files.

Also, clean up the ar flags we're using, and remove a redundant use of
ranlib that on a modern POSIX ar can be done with the "s" flag.

Discussed on tech-toolchain

Revision 1.205 / (download) - annotate - [select for diffs], Mon Mar 9 06:25:51 2009 UTC (5 years, 4 months ago) by apb
Branch: MAIN
Changes since 1.204: +3 -3 lines
Diff to previous 1.204 (colored)

Add "-", "_", and "A-Z" to the set of allowed characters in the
result from `uname -p`.  We already have a platform with an underline
("x86_64"), and the other chars seem harmless.

Revision 1.204 / (download) - annotate - [select for diffs], Fri Mar 6 16:29:40 2009 UTC (5 years, 4 months ago) by apb
Branch: MAIN
Changes since 1.203: +15 -6 lines
Diff to previous 1.203 (colored)

In build.sh and bsd.own.mk, if uname -p fails, or prints "unknown", or
prints something that does not look like an identifier, then use uname
-m instead.  (Cygwin prints "unknown", and OpenBSD prints a long string
containing several spaces; this code should handle both.)

Revision 1.203 / (download) - annotate - [select for diffs], Wed Feb 25 23:34:10 2009 UTC (5 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.202: +22 -25 lines
Diff to previous 1.202 (colored)

Implement  make_in_dir <dir> <op>  to simplify various operations

Revision 1.202 / (download) - annotate - [select for diffs], Tue Feb 24 22:25:24 2009 UTC (5 years, 5 months ago) by sketch
Branch: MAIN
Changes since 1.201: +6 -4 lines
Diff to previous 1.201 (colored)

Make 'build.sh tools' work with the Sun Studio compiler, although bugs in
some of the generated tools still prevent building a full release using them.

Revision 1.201 / (download) - annotate - [select for diffs], Sat Feb 21 22:04:35 2009 UTC (5 years, 5 months ago) by plunky
Branch: MAIN
Changes since 1.200: +3 -3 lines
Diff to previous 1.200 (colored)

update usage message for -x to "build X11" rather than "build X11R6"

Revision 1.153.2.6 / (download) - annotate - [select for diffs], Thu Jan 15 23:00:31 2009 UTC (5 years, 6 months ago) by bouyer
Branch: netbsd-4
Changes since 1.153.2.5: +2 -1 lines
Diff to previous 1.153.2.5 (colored) to branchpoint 1.153 (colored) next main 1.154 (colored)

Pull up following revision(s) (requested by apb in ticket #1259):
	build.sh: revision 1.200
"\t" does not represent a tab in sed regular expressions,
so use a ${tab} variable instead.

Revision 1.198.2.1 / (download) - annotate - [select for diffs], Fri Jan 9 02:04:43 2009 UTC (5 years, 6 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC2, netbsd-5-0-RC1
Changes since 1.198: +4 -3 lines
Diff to previous 1.198 (colored)

Pull up following revision(s) (requested by apb in ticket #232):
	build.sh: revision 1.200
"\t" does not represent a tab in sed regular expressions,
so use a ${tab} variable instead.  This bug was found by
Jeremy C. Reed.

Revision 1.200 / (download) - annotate - [select for diffs], Sat Jan 3 08:23:00 2009 UTC (5 years, 6 months ago) by apb
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.199: +4 -3 lines
Diff to previous 1.199 (colored)

"\t" does not represent a tab in sed regular expressions,
so use a ${tab} variable instead.  This bug was found by
Jeremy C. Reed.

Revision 1.199 / (download) - annotate - [select for diffs], Thu Nov 13 20:40:11 2008 UTC (5 years, 8 months ago) by apb
Branch: MAIN
Changes since 1.198: +8 -6 lines
Diff to previous 1.198 (colored)

Add support for new MAKEVERBOSE levels 3 and 4.  The complete list is now:

 0   Minimal output ("quiet")
 1   Describe what is occurring
 2   Describe what is occurring and echo the actual command
 3   Ignore the effect of the "@" prefix in make commands
 4   Trace shell commands using the shell's -x flag

The default remains MAKEVERBOSE=2.

Revision 1.198 / (download) - annotate - [select for diffs], Sun Oct 26 23:40:06 2008 UTC (5 years, 9 months ago) by apb
Branch: MAIN
CVS Tags: netbsd-5-base
Branch point for: netbsd-5
Changes since 1.197: +36 -9 lines
Diff to previous 1.197 (colored)

Try harder to guess the correct TOOLDIR.
Adapted from a proposal by Izumi Tsutsui in tech-toolchain.

Revision 1.188.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:27:24 2008 UTC (5 years, 10 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.188: +113 -57 lines
Diff to previous 1.188 (colored) next main 1.189 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.197 / (download) - annotate - [select for diffs], Fri Aug 22 23:41:24 2008 UTC (5 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, matt-mips64-base2
Changes since 1.196: +3 -23 lines
Diff to previous 1.196 (colored)

Remove support for printing "'-x' has been replaced by 'xxxxx'".
The old option hasn't worked since 2003/01/23 (before NetBSD 2.0.)

Revision 1.196 / (download) - annotate - [select for diffs], Mon Aug 18 06:40:09 2008 UTC (5 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.195: +7 -3 lines
Diff to previous 1.195 (colored)

Fix "-n releasekernel=..."
Patch from Jukka Salmi in PR 33096.

Revision 1.195 / (download) - annotate - [select for diffs], Mon Aug 18 05:26:05 2008 UTC (5 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.194: +21 -19 lines
Diff to previous 1.194 (colored)

Implement "cleandir".  Inspired by PR 39362.
Consistently expand tabs in the usage.

Revision 1.194 / (download) - annotate - [select for diffs], Sat Aug 16 00:10:04 2008 UTC (5 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.193: +23 -14 lines
Diff to previous 1.193 (colored)

Determine top-level objdir from the environment $MAKEOBJDIRPREFIX early on,
and store in the (non-exported) $TOP_objdir.
(We can't do the same for the environment $MAKEOBJDIR since it may contain
make(1) expressions that aren't easily parseable by sh(1))
Remember appropriate variations of '-M modp' and '-O mod' in $TOP_objdir
(replacing $makeobjdir misuse).
Use $TOP_objdir when trying to guess the TOOLDIR,
and when detecting if the top-level objdir needs to be created.
Fixes problems observed when testing fixes for PR 39360 and 39361.

Fix the TOOLDIR path used when guessing the TOOLDIR.
PR 39360 from Andrew Cagney <cagney@gnu.org>

Use stricter result checking from make(1) when guessing the TOOLDIR.
PR 39361 from Andrew Cagney <cagney@gnu.org>

Revision 1.193 / (download) - annotate - [select for diffs], Fri Aug 15 22:22:15 2008 UTC (5 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.192: +3 -3 lines
Diff to previous 1.192 (colored)

crank copyright

Revision 1.192 / (download) - annotate - [select for diffs], Fri Aug 8 07:30:42 2008 UTC (5 years, 11 months ago) by apb
Branch: MAIN
Changes since 1.191: +7 -5 lines
Diff to previous 1.191 (colored)

Don't bomb if we can't detect the top level obj directory name.
Apparently there are things you can do in the environment or mk.conf
to set your object directory in a way that the previous code couldn't
detect.  (This is an interim measure until we can properly detect and
create the top level object directory in all cases.)

Revision 1.191 / (download) - annotate - [select for diffs], Tue Aug 5 22:35:32 2008 UTC (5 years, 11 months ago) by apb
Branch: MAIN
Changes since 1.190: +33 -6 lines
Diff to previous 1.190 (colored)

If neither -M nor -O was specified, but the source directory is
/usr/src, then try to figure out what object directory would be chosen
by bsd.obj.mk, and pre-create it.

Revision 1.190 / (download) - annotate - [select for diffs], Tue Aug 5 19:43:33 2008 UTC (5 years, 11 months ago) by perry
Branch: MAIN
Changes since 1.189: +17 -6 lines
Diff to previous 1.189 (colored)

Builds now use "BUILDSEED" so that c++ binaries are reproduceable.
By default BUILDSEED is set to NetBSD-{majorversion} -- a -S flag may
be used to change it.

Discussed on tech-toolchain.

Revision 1.189 / (download) - annotate - [select for diffs], Fri Jun 27 21:38:36 2008 UTC (6 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.188: +25 -4 lines
Diff to previous 1.188 (colored)

Make build.sh -C work as advertised.

Revision 1.187.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:28:44 2008 UTC (6 years, 2 months ago) by yamt
Branch: yamt-pf42
Changes since 1.187: +2 -9 lines
Diff to previous 1.187 (colored) next main 1.188 (colored)

sync with head.

Revision 1.188 / (download) - annotate - [select for diffs], Wed Apr 30 13:10:46 2008 UTC (6 years, 3 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.187: +2 -9 lines
Diff to previous 1.187 (colored)

Convert TNF licenses to new 2 clause variant

Revision 1.187 / (download) - annotate - [select for diffs], Fri Mar 28 04:24:18 2008 UTC (6 years, 4 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.186: +3 -3 lines
Diff to previous 1.186 (colored)

The phase of the build that -u prevents is "make cleandir", not merely
"make clean"; adjust build.sh's usage message to reflect this.

Revision 1.184.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:14:28 2008 UTC (6 years, 4 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.184: +45 -8 lines
Diff to previous 1.184 (colored) next main 1.185 (colored)

sync with head.

Revision 1.171.4.3 / (download) - annotate - [select for diffs], Sun Mar 23 00:12:06 2008 UTC (6 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.171.4.2: +48 -15 lines
Diff to previous 1.171.4.2 (colored) to branchpoint 1.171 (colored) next main 1.172 (colored)

sync with HEAD

Revision 1.186 / (download) - annotate - [select for diffs], Sun Mar 16 07:52:59 2008 UTC (6 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: matt-armv6-nbase, keiichi-mipv6-base
Changes since 1.185: +11 -7 lines
Diff to previous 1.185 (colored)

Obtain RELEASEMACHINEDIR from the make environment.
Display the path to the binary set dir upon completion of "sets".

Revision 1.185 / (download) - annotate - [select for diffs], Mon Feb 25 11:14:31 2008 UTC (6 years, 5 months ago) by apb
Branch: MAIN
CVS Tags: hpcarm-cleanup-base
Changes since 1.184: +36 -3 lines
Diff to previous 1.184 (colored)

* Installing as non-root is a bad idea.  Print a warning in expert mode,
  or bomb in non-expert mode.
* If a previous build.sh run with the -U (unprivileged) flag created a
  METALOG, then subsequent build.sh runs must also specify the -U flag.
  In expert mode, this is just a warning.
* While I was here, changed spaces to tabs in one existing line.

Revision 1.184 / (download) - annotate - [select for diffs], Sun Feb 3 06:10:53 2008 UTC (6 years, 5 months ago) by matt
Branch: MAIN
Branch point for: keiichi-mipv6
Changes since 1.183: +3 -3 lines
Diff to previous 1.183 (colored)

sh5 is dead.  sh[35]e[bl] -> sh3e[bl]

Revision 1.183 / (download) - annotate - [select for diffs], Fri Jan 18 09:45:05 2008 UTC (6 years, 6 months ago) by jmmv
Branch: MAIN
Changes since 1.182: +4 -4 lines
Diff to previous 1.182 (colored)

Add ofppc64 as a machine target for the tools alongside evbppc64 and macppc64
that are already there (even if not useful for anything else, AFAIK).

Revision 1.182 / (download) - annotate - [select for diffs], Wed Jan 9 11:25:58 2008 UTC (6 years, 6 months ago) by simonb
Branch: MAIN
Changes since 1.181: +3 -7 lines
Diff to previous 1.181 (colored)

Remove support for NetBSD/pc532.

Revision 1.171.4.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:19:18 2008 UTC (6 years, 6 months ago) by matt
Branch: matt-armv6
Changes since 1.171.4.1: +18 -14 lines
Diff to previous 1.171.4.1 (colored) to branchpoint 1.171 (colored)

sync with HEAD

Revision 1.153.2.2.2.3 / (download) - annotate - [select for diffs], Sun Jan 6 05:00:07 2008 UTC (6 years, 6 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.153.2.2.2.2: +2 -3 lines
Diff to previous 1.153.2.2.2.2 (colored) next main 1.153.2.3 (colored)

Catch up to netbsd-4.0 release.

Revision 1.181 / (download) - annotate - [select for diffs], Mon Dec 17 19:23:44 2007 UTC (6 years, 7 months ago) by garbled
Branch: MAIN
CVS Tags: pc532-eol-2008, matt-armv6-base
Changes since 1.180: +3 -3 lines
Diff to previous 1.180 (colored)

Add rs6000 to this file so it can be easily cross-built.

Revision 1.153.2.5 / (download) - annotate - [select for diffs], Mon Nov 26 21:40:55 2007 UTC (6 years, 8 months ago) by xtraeme
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-1-RELEASE, netbsd-4-0
Changes since 1.153.2.4: +2 -3 lines
Diff to previous 1.153.2.4 (colored) to branchpoint 1.153 (colored)

Pull up following revision(s) (requested by jnemeth in ticket #999):
	build.sh: revision 1.180
Delete mention of 'iso-dir=cdextras'.  This was a leftover from
the original implementation of cdextra as an operation instead of
a being paramater.

Revision 1.180 / (download) - annotate - [select for diffs], Fri Nov 23 19:38:43 2007 UTC (6 years, 8 months ago) by jnemeth
Branch: MAIN
CVS Tags: cube-autoconf-base, cube-autoconf
Changes since 1.179: +2 -3 lines
Diff to previous 1.179 (colored)

Delete mention of 'iso-dir=cdextras'.  This was a leftover from
the original implementation of cdextra as an operation instead of
a being paramater.

Revision 1.179 / (download) - annotate - [select for diffs], Fri Nov 23 16:19:28 2007 UTC (6 years, 8 months ago) by sborrill
Branch: MAIN
Changes since 1.178: +5 -5 lines
Diff to previous 1.178 (colored)

Add support for CDBUILDEXTRA which acts like CDEXTRA to add extra items
to the CD-ROM image.
Make CDEXTRA and CDBUILDEXTRA be able to contain lists of files and directories
which are added in turn.
Add support for CDEXTRA_SKIP which contains a list of fnmatch(3) items to
skip during the copy. This is _very_ useful for skipping CVS dirs for example.
CDBUILDEXTRA and CDEXTRA_SKIP are to be used in Makefiles creating the images,
CDEXTRA remains to be used from build.sh.
Update documentation and build.sh help text to show that -C can be used to
specify a list of files and directories rather than just a single dir.

Revision 1.178 / (download) - annotate - [select for diffs], Tue Nov 20 01:33:32 2007 UTC (6 years, 8 months ago) by uebayasi
Branch: MAIN
Changes since 1.177: +3 -3 lines
Diff to previous 1.177 (colored)

Indent.

Revision 1.177 / (download) - annotate - [select for diffs], Tue Nov 20 01:30:07 2007 UTC (6 years, 8 months ago) by uebayasi
Branch: MAIN
Changes since 1.176: +15 -10 lines
Diff to previous 1.176 (colored)

Sort variable definitions.  No functional change expected.

Revision 1.171.4.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:07:12 2007 UTC (6 years, 8 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.171: +29 -9 lines
Diff to previous 1.171 (colored)

sync with HEAD

Revision 1.176 / (download) - annotate - [select for diffs], Wed Oct 17 23:23:02 2007 UTC (6 years, 9 months ago) by garbled
Branch: MAIN
Changes since 1.175: +3 -3 lines
Diff to previous 1.175 (colored)

remove pmppc as a target

Revision 1.153.2.2.2.2 / (download) - annotate - [select for diffs], Sun Sep 30 20:27:37 2007 UTC (6 years, 10 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.153.2.2.2.1: +28 -8 lines
Diff to previous 1.153.2.2.2.1 (colored)

Catch up w/ last night's netbsd-4

Revision 1.153.2.4 / (download) - annotate - [select for diffs], Sat Sep 29 11:10:56 2007 UTC (6 years, 10 months ago) by xtraeme
Branch: netbsd-4
CVS Tags: netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2
Changes since 1.153.2.3: +28 -8 lines
Diff to previous 1.153.2.3 (colored) to branchpoint 1.153 (colored)

Pull up following revision(s) (requested by jnemeth in ticket #864):
	distrib/common/Makefile.bootcd: revision 1.9
	distrib/common/Makefile.bootcd: revision 1.10
	distrib/common/Makefile.bootcd: revision 1.11
	doc/BUILDING.mdoc: revision 1.51
	doc/BUILDING.mdoc: revision 1.52
	doc/BUILDING.mdoc: revision 1.53
	build.sh: revision 1.172
	build.sh: revision 1.173
	build.sh: revision 1.174
	build.sh: revision 1.175
	BUILDING: revision 1.64
	BUILDING: revision 1.65
	BUILDING: revision 1.66
	share/man/man7/release.7: revision 1.23
	share/man/man7/release.7: revision 1.24
	Makefile: revision 1.248

Add an iso-dir=directory option.  When combined with iso-image or
iso-image-source, it will cause directory to be added to the CD-ROM image.

Convert build.sh iso-dir=directory option to -C cddir as per jmmv@ on
source-changes.

Revision 1.175 / (download) - annotate - [select for diffs], Tue Sep 18 12:57:37 2007 UTC (6 years, 10 months ago) by agc
Branch: MAIN
Changes since 1.174: +3 -3 lines
Diff to previous 1.174 (colored)

Fix a tyop and align properly

Revision 1.153.2.2.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 06:50:56 2007 UTC (6 years, 10 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.153.2.2: +2 -9 lines
Diff to previous 1.153.2.2 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.174 / (download) - annotate - [select for diffs], Sat Sep 1 09:32:19 2007 UTC (6 years, 10 months ago) by jnemeth
Branch: MAIN
Changes since 1.173: +12 -20 lines
Diff to previous 1.173 (colored)

Convert build.sh iso-dir=directory option to -C cddir as per jmmv@ on
source-changes.

Revision 1.173 / (download) - annotate - [select for diffs], Sat Sep 1 08:15:27 2007 UTC (6 years, 10 months ago) by jnemeth
Branch: MAIN
Changes since 1.172: +25 -3 lines
Diff to previous 1.172 (colored)

Add an iso-dir=directory option.  When combined with iso-image or
iso-image-source, it will cause directory to be added to the CD-ROM image.

Revision 1.172 / (download) - annotate - [select for diffs], Thu Aug 30 05:30:02 2007 UTC (6 years, 11 months ago) by jnemeth
Branch: MAIN
Changes since 1.171: +10 -4 lines
Diff to previous 1.171 (colored)

Add an iso-image-source option which does the same thing as iso-image but
includes source sets as well.  The infrastructure for this was already
there, although it needed a bug fix.  Will look at adding arbitrary
directories next.

Revision 1.153.2.3 / (download) - annotate - [select for diffs], Thu Jul 19 14:38:13 2007 UTC (7 years ago) by liamjfoy
Branch: netbsd-4
CVS Tags: netbsd-4-0-RC1
Changes since 1.153.2.2: +0 -7 lines
Diff to previous 1.153.2.2 (colored) to branchpoint 1.153 (colored)

Pull up following revision(s) (requested by soren in ticket #774):
	build.sh: revision 1.169
	gnu/usr.bin/gcc4/backend/Makefile: revision 1.9
	sys/arch/evbsh5/README: revision 1.1
	distrib/notes/common/contents: revision 1.124
	usr.sbin/ndbootd/ndbootd.c: revision 1.12
	gnu/lib/libopcodes/arch/sh3eb/defs.mk: revision 1.4
	gnu/lib/libbfd/arch/sh3eb/defs.mk: revision 1.8
	libexec/ld.elf_so/Makefile: revision 1.78
	gnu/dist/binutils/bfd/config.bfd: revision 1.14
	doc/HACKS: revision 1.93
	distrib/cdrom/current.conf: revision 1.8
	gnu/lib/libgcc4/Makefile.inc: revision 1.6
	share/mk/sys.mk: revision 1.90
	distrib/sets/lists/base/mi: revision 1.700
	libexec/ld.elf_so/rtld.c: revision 1.112
	distrib/sets/lists/base/mi: revision 1.702
	sys/arch/sh5/README: revision 1.1
	gnu/lib/libbfd/arch/sh3el/bfd.h: revision 1.7
	usr.sbin/traceroute/traceroute.c: revision 1.69
	distrib/notes/common/main: revision 1.330
	distrib/notes/common/list-setsizes.sh: revision 1.2
	sys/arch/Makefile: revision 1.35
	gnu/lib/libopcodes/arch/sh3el/defs.mk: revision 1.4
	gnu/lib/libbfd/arch/sh3el/defs.mk: revision 1.8
	share/mk/bsd.own.mk: revision 1.495
	gnu/lib/libbfd/arch/sh3eb/bfd.h: revision 1.7
	x11/lib/OSmesa/Makefile: revision 1.20
	sys/dev/dkwedge/dkwedge_bsdlabel.c: revision 1.13
	gnu/dist/binutils/opcodes/configure.in: revision 1.2
	gnu/dist/binutils/opcodes/configure: revision 1.2
	gnu/usr.bin/send-pr/categories: revision 1.53
	etc/mtree/NetBSD.dist: revision 1.339
	sys/arch/README: revision 1.42
	lib/libc/gdtoa/Makefile.inc: revision 1.6
	usr.bin/crunch/crunchide/Makefile: revision 1.16
	sys/lkm/net/bsdcomp/Makefile: revision 1.5
	regress/sys/uvm/Makefile: revision 1.6
	etc/MAKEDEV.awk: revision 1.18
	x11/Xserver/GL/GLcore/Makefile.GLcore: revision 1.10
	sys/contrib/dev/ath/netbsd/Makefile.ath.inc: revision 1.14
	gnu/lib/libbfd/Makefile: revision 1.42
	doc/RESPONSIBLE: revision 1.78
Remove evbsh5.

Revision 1.171 / (download) - annotate - [select for diffs], Tue Jun 26 12:59:38 2007 UTC (7 years, 1 month ago) by apb
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.170: +11 -11 lines
Diff to previous 1.170 (colored)

Move several variable initialisations to the beginning of
initdefaults().  This should fix a bug reported by Valeriy E. Ushakov
in which we called setmakevar() before instead of after
initialising makeenv.

Revision 1.153.2.2 / (download) - annotate - [select for diffs], Mon Apr 16 19:55:07 2007 UTC (7 years, 3 months ago) by bouyer
Branch: netbsd-4
Branch point for: wrstuden-fixsa
Changes since 1.153.2.1: +13 -7 lines
Diff to previous 1.153.2.1 (colored) to branchpoint 1.153 (colored)

Pull up following revision(s) (requested by apb in ticket #574):
	build.sh: revision 1.165 - 1.166
build.sh: report both the version of NetBSD being built and the build
platform.

Revision 1.170 / (download) - annotate - [select for diffs], Sat Apr 14 10:50:48 2007 UTC (7 years, 3 months ago) by apb
Branch: MAIN
Changes since 1.169: +9 -5 lines
Diff to previous 1.169 (colored)

Fix some problems with the change from revision  1.167:
* Allow "" or "." as the last component of PATH, but do not
  allow arbitrary single-character components.
* Make a comment match the code.

Revision 1.169 / (download) - annotate - [select for diffs], Sun Apr 8 09:35:21 2007 UTC (7 years, 3 months ago) by scw
Branch: MAIN
Changes since 1.168: +2 -9 lines
Diff to previous 1.168 (colored)

Remove support for NetBSD/{,evb}sh5.

Revision 1.168 / (download) - annotate - [select for diffs], Sat Apr 7 14:49:40 2007 UTC (7 years, 3 months ago) by apb
Branch: MAIN
Changes since 1.167: +81 -16 lines
Diff to previous 1.167 (colored)

Try not to rebuild nbmake so often:

* Add a try_set_TOOLDIR function which tries to be clever about setting
  TOOLDIR if possible;
* Call try_set_TOOLDIR from rebuildmake;
* Add nobomb_getmakevar, which works like raw_getmakevar except
  never bombs;
* Reimplement raw_getmakevar in terms of nobomb_getmakevar;
* Add a second arg to find_in_PATH to control the result when the
  program cannot be found.

Revision 1.167 / (download) - annotate - [select for diffs], Thu Apr 5 10:02:10 2007 UTC (7 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.166: +4 -4 lines
Diff to previous 1.166 (colored)

Don't abort the build if teh last component of $PATH is .

Revision 1.166 / (download) - annotate - [select for diffs], Mon Apr 2 11:00:10 2007 UTC (7 years, 3 months ago) by apb
Branch: MAIN
Changes since 1.165: +2 -3 lines
Diff to previous 1.165 (colored)

The "${progname} started: ${build_start}" message will appear in the
"Summary of results", so don't print it again just before that.

Revision 1.165 / (download) - annotate - [select for diffs], Mon Apr 2 10:57:36 2007 UTC (7 years, 3 months ago) by apb
Branch: MAIN
Changes since 1.164: +13 -6 lines
Diff to previous 1.164 (colored)

* Report the NetBSD version being built.
* Report the host platform.
* Print more of the initial messages in the same part of the code.

Revision 1.164 / (download) - annotate - [select for diffs], Sun Mar 25 12:36:01 2007 UTC (7 years, 4 months ago) by apb
Branch: MAIN
Changes since 1.163: +4 -3 lines
Diff to previous 1.163 (colored)

s/PATH/PATH environment variable" in an error message.

Revision 1.163 / (download) - annotate - [select for diffs], Sun Mar 25 07:56:38 2007 UTC (7 years, 4 months ago) by apb
Branch: MAIN
Changes since 1.162: +26 -2 lines
Diff to previous 1.162 (colored)

If the PATH contains any components that are not absolute
directory names, print a message and abort.  In expert mode,
downgrade this error to a warning.

Fixes PR 36048

Revision 1.153.2.1 / (download) - annotate - [select for diffs], Tue Mar 6 20:37:28 2007 UTC (7 years, 4 months ago) by bouyer
Branch: netbsd-4
Changes since 1.153: +3 -3 lines
Diff to previous 1.153 (colored)

Pull up following revision(s) (requested by apb in ticket #491):
	distrib/sets/regpkg: revision 1.15
	tools/gcc/mknative.common: revision 1.9
	distrib/sets/sets.subr: revision 1.56
	distrib/sets/regpkgset: revision 1.9
	build.sh: revision 1.161 via patch
Whenever we try to parse the output from make, run make with the -B
flag.  This ensures that -j<N> isn't accidentally inherited from the
environment, because the "--- foo ---" headers printed with -j<N> would
interfere with parsing the output.

Revision 1.162 / (download) - annotate - [select for diffs], Mon Feb 19 14:20:11 2007 UTC (7 years, 5 months ago) by briggs
Branch: MAIN
Changes since 1.161: +7 -3 lines
Diff to previous 1.161 (colored)

Don't treat -m evbarm like the other arm-based platforms.  Set
MACHINE_ARCH only if it's not already set.  This prevents
	build.sh -m evbarm-eb
from ending up with MACHINE_ARCH=arm instead of =armeb (since MACHINE is
stripped of the -eb suffix just above).

Revision 1.161 / (download) - annotate - [select for diffs], Mon Feb 5 18:26:01 2007 UTC (7 years, 5 months ago) by apb
Branch: MAIN
Changes since 1.160: +3 -3 lines
Diff to previous 1.160 (colored)

Whenever we try to parse the output from make, run make with the -B
flag.  This ensures that -j<N> isn't accidentally inherited from the
environment, because the "--- foo ---" headers printed with -j<N> would
interfere with parsing the output.

Revision 1.160 / (download) - annotate - [select for diffs], Mon Jan 29 00:08:13 2007 UTC (7 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.159: +8 -14 lines
Diff to previous 1.159 (colored)

Remove duplicate evbarm-e[bl] cases.  Add evbppc64 and macppc64.

Revision 1.159 / (download) - annotate - [select for diffs], Sun Jan 28 20:15:44 2007 UTC (7 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.158: +14 -2 lines
Diff to previous 1.158 (colored)

Add evbarm-e[bl] machine aliases for evbarm/armeb and evbarm/arm,
respectively.

Revision 1.158 / (download) - annotate - [select for diffs], Sat Jan 27 11:27:33 2007 UTC (7 years, 6 months ago) by apb
Branch: MAIN
Changes since 1.157: +36 -20 lines
Diff to previous 1.157 (colored)

Add aliases evbarm-eb and evbarm-el, for consistency with several
existing *-e[bl] aliases.  build.sh -m MACHINE_ALIAS is (almost)
equivalent to build.sh -m MACHINE -a MACHINE_ARCH.

Revision 1.157 / (download) - annotate - [select for diffs], Wed Jan 17 03:43:18 2007 UTC (7 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.156: +4 -2 lines
Diff to previous 1.156 (colored)

Added a friendly error message in case the user forgot to "build.sh tools".

Revision 1.156 / (download) - annotate - [select for diffs], Sun Jan 14 17:02:56 2007 UTC (7 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.155: +4 -4 lines
Diff to previous 1.155 (colored)

Only cd "$(dirname $0)" when usr.bin/make doesn't exist.  This caused grief
when I make my wrapper script source build.sh.  I can also think of other
times when it would be a PITA.
Abort the build if make fails in raw_getmakevar() - as tends to happen when
make itself is badly broken.

Revision 1.155 / (download) - annotate - [select for diffs], Sat Dec 16 02:59:33 2006 UTC (7 years, 7 months ago) by ober
Branch: MAIN
Changes since 1.154: +3 -3 lines
Diff to previous 1.154 (colored)

Updated to include the new Zaurus port for ARM.
OK'd by gimpy

Revision 1.154 / (download) - annotate - [select for diffs], Sat Dec 9 20:13:13 2006 UTC (7 years, 7 months ago) by dyoung
Branch: MAIN
Changes since 1.153: +4 -3 lines
Diff to previous 1.153 (colored)

Change the name of the host disklabel to nbdisklabel-${MAKEWRAPPERMACHINE},
where ${MAKEWRAPPERMACHINE} is the suffix XXX on the target's make
wrapper, nbmake-XXX.

Fixes toolchain/30673, "single arch host disklabel isn't enough".

Revision 1.153 / (download) - annotate - [select for diffs], Fri Sep 29 19:53:54 2006 UTC (7 years, 10 months ago) by apb
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.152: +101 -12 lines
Diff to previous 1.152 (colored)

Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:

* Try to guess a suitable value for HOST_SH, if it was not set in
  the environment.  First try host-specific heuristics (Solaris has
  /usr/xpg4/bin/sh); then try to find the name of the shell that was used
  to run build.sh itself (by parsing the output from ps -p $$ -o comm);
  then fall back to "sh".

* Having found a value for HOST_SH, copy it to BSHELL and CONFIG_SHELL.

* Use ${HOST_SH} instead of /bin/sh when creating the make wrapper.

* Use ${HOST_SH} instead of unqualified sh when running shell scripts.

Revision 1.152 / (download) - annotate - [select for diffs], Fri Sep 1 21:52:55 2006 UTC (7 years, 10 months ago) by uwe
Branch: MAIN
Changes since 1.151: +3 -3 lines
Diff to previous 1.151 (colored)

Recognize MACHINE=landisk (sh3el).

Revision 1.151 / (download) - annotate - [select for diffs], Sun Aug 27 05:05:05 2006 UTC (7 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.150: +3 -3 lines
Diff to previous 1.150 (colored)

When going from -m {evb,sb}mips64-e[bl] to MACHINE,
make sure to remove 64-e[bl] so we wind up with just evbmips or sbmips.

Revision 1.150 / (download) - annotate - [select for diffs], Fri Aug 25 23:35:04 2006 UTC (7 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.149: +14 -4 lines
Diff to previous 1.149 (colored)

Add enough configury glue so that src/tools can build a N64 mips toolchain.

Revision 1.149 / (download) - annotate - [select for diffs], Wed Aug 9 22:13:12 2006 UTC (7 years, 11 months ago) by jnemeth
Branch: MAIN
Changes since 1.148: +3 -3 lines
Diff to previous 1.148 (colored)

PR/30842 -- compatibility issue with mksh from Thorsten Glaser

Revision 1.148 / (download) - annotate - [select for diffs], Thu Jun 22 20:00:18 2006 UTC (8 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.147: +6 -3 lines
Diff to previous 1.147 (colored)

preliminary support for powerpc64 toolchain:
- allow "-m macppc/evbppc" to also take "-a powerpc64" to build a
  powerpc64 toolchain.

XXX this may change, as an evbppc64 port may be required.
XXX deal with that when we have some code...

Revision 1.147 / (download) - annotate - [select for diffs], Mon Jun 19 18:12:30 2006 UTC (8 years, 1 month ago) by dogcow
Branch: MAIN
Changes since 1.146: +4 -4 lines
Diff to previous 1.146 (colored)

Huzzah. /bin/pwd -P, instead of silently failing, now returns an error code
on many linuces I've tried. If so, bail and invoke /bin/pwd sans argument.

Revision 1.146 / (download) - annotate - [select for diffs], Fri Feb 3 12:29:41 2006 UTC (8 years, 5 months ago) by apb
Branch: MAIN
Changes since 1.145: +8 -2 lines
Diff to previous 1.145 (colored)

Fix the iso-image action.  These changes were accidentally omitted
from the previous commit.

Revision 1.145 / (download) - annotate - [select for diffs], Sat Jan 28 21:34:07 2006 UTC (8 years, 6 months ago) by apb
Branch: MAIN
Changes since 1.144: +3 -3 lines
Diff to previous 1.144 (colored)

* Add an "iso-image" target in the top level Makefile,
  which invokes make iso-image in the etc directory.
* Add an "iso-image" action in build.sh, which
  invokes make iso-image.
* Document the above in doc/BUILDING.mdoc.
* Re-generate BUILDING.

Approved by christos

Revision 1.144 / (download) - annotate - [select for diffs], Sun Jan 8 11:03:40 2006 UTC (8 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.143: +8 -7 lines
Diff to previous 1.143 (colored)

Use separate invocations of make for cleandir dependall and install of
tools so that a parallel make doesn't start running dependall before
cleandir has finished.
Unfortunately make doesn't support .WAIT on the command line :-(

Revision 1.143 / (download) - annotate - [select for diffs], Sat Jan 7 18:45:15 2006 UTC (8 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.142: +6 -6 lines
Diff to previous 1.142 (colored)

Use parallel makes more often.

Revision 1.142 / (download) - annotate - [select for diffs], Wed Jan 4 15:31:40 2006 UTC (8 years, 6 months ago) by apb
Branch: MAIN
Changes since 1.141: +7 -5 lines
Diff to previous 1.141 (colored)

Add a new "syspkgs" target, which simply chains to the "syspkgs" target
in the top level Makefile.

Reviewed by agc

Revision 1.141 / (download) - annotate - [select for diffs], Thu Dec 29 15:38:54 2005 UTC (8 years, 7 months ago) by tsutsui
Branch: MAIN
Changes since 1.140: +3 -3 lines
Diff to previous 1.140 (colored)

Add ews4800mips to mipseb ports.

Build for ews4800mips might fail (yet),
but please don't complain for now.

Revision 1.134.2.2 / (download) - annotate - [select for diffs], Thu Dec 15 20:11:48 2005 UTC (8 years, 7 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.134.2.1: +1 -0 lines
Diff to previous 1.134.2.1 (colored) to branchpoint 1.134 (colored) next main 1.135 (colored)

Pull up following revision(s) (requested by jmc in ticket #1048):
	build.sh: revision 1.140
Nuke LESSCHARSET as well since it affects the output character set of groff

Revision 1.127.2.1.2.1 / (download) - annotate - [select for diffs], Mon Dec 12 11:26:22 2005 UTC (8 years, 7 months ago) by tron
Branch: netbsd-2
Changes since 1.127.2.1: +6 -3 lines
Diff to previous 1.127.2.1 (colored) next main 1.127.2.2 (colored)

Apply patch (requested by jmc in ticket #10194):
Clean up environment to avoid side effects on builds.

Revision 1.127.2.1.4.1 / (download) - annotate - [select for diffs], Mon Dec 12 11:25:36 2005 UTC (8 years, 7 months ago) by tron
Branch: netbsd-2-1
Changes since 1.127.2.1: +6 -3 lines
Diff to previous 1.127.2.1 (colored) next main 1.127.2.2 (colored)

Apply patch (requested by jmc in ticket #10194):
Clean up environment to avoid side effects on builds.

Revision 1.127.2.2 / (download) - annotate - [select for diffs], Mon Dec 12 11:24:44 2005 UTC (8 years, 7 months ago) by tron
Branch: netbsd-2-0
Changes since 1.127.2.1: +6 -3 lines
Diff to previous 1.127.2.1 (colored) to branchpoint 1.127 (colored) next main 1.128 (colored)

Apply patch (requested by jmc in ticket #10194):
Clean up environment to avoid side effects on builds.

Revision 1.58.2.9 / (download) - annotate - [select for diffs], Mon Dec 12 11:20:33 2005 UTC (8 years, 7 months ago) by tron
Branch: netbsd-1-6
Changes since 1.58.2.8: +5 -3 lines
Diff to previous 1.58.2.8 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

Apply patch (requested by jmc in ticket #5972):
Clean up environment to avoid side effects on builds.

Revision 1.140 / (download) - annotate - [select for diffs], Mon Dec 12 04:51:55 2005 UTC (8 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.139: +3 -2 lines
Diff to previous 1.139 (colored)

Nuke LESSCHARSET as well since it affects the output character set of groff

Revision 1.139 / (download) - annotate - [select for diffs], Sun Sep 25 05:34:21 2005 UTC (8 years, 10 months ago) by isaki
Branch: MAIN
Changes since 1.138: +4 -4 lines
Diff to previous 1.138 (colored)

It needs the braceexpand option for PD KSH, regardless of
whether the host system is OpenBSD.
from Wim Lewis. reviewed by sjg@.

Revision 1.138 / (download) - annotate - [select for diffs], Wed Aug 17 07:13:32 2005 UTC (8 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.137: +4 -4 lines
Diff to previous 1.137 (colored)

Initial pass at an in-tree ia64 toolchain. From PR 29141 with some fixes
from me.

Revision 1.134.2.1 / (download) - annotate - [select for diffs], Thu Jul 7 22:08:49 2005 UTC (9 years ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1
Changes since 1.134: +9 -4 lines
Diff to previous 1.134 (colored)

Pull up revision 1.136 (requested by lukem in ticket #564):
Unset INFODIR in the makewrapper.
Should fix a build problem observed when installing .info files
when the build user's environment has INFODIR set.

Revision 1.137 / (download) - annotate - [select for diffs], Sun May 29 10:54:40 2005 UTC (9 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.136: +2 -15 lines
Diff to previous 1.136 (colored)

Remove support for build.sh -m xen, this has been merged in the i386
build. Pointed out by Chuck Silvers.

Revision 1.136 / (download) - annotate - [select for diffs], Thu May 19 01:37:30 2005 UTC (9 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.135: +9 -4 lines
Diff to previous 1.135 (colored)

Unset INFODIR in the makewrapper.
Should fix a build problem observed when installing .info files
when the build user's environment has INFODIR set.

Revision 1.135 / (download) - annotate - [select for diffs], Sat Mar 26 06:02:13 2005 UTC (9 years, 4 months ago) by isaki
Branch: MAIN
Changes since 1.134: +8 -2 lines
Diff to previous 1.134 (colored)

Avoid the brace expansion on OpenBSD.
approved by sjg@.

Revision 1.134 / (download) - annotate - [select for diffs], Wed Oct 13 23:28:34 2004 UTC (9 years, 9 months ago) by gavan
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.133: +3 -3 lines
Diff to previous 1.133 (colored)

Initial import of iyonix port.

The Iyonix is a desktop machine from Castle Technology, based on a 600MHz
XScale[tm] 80321 processor.

* Uses the bootloader from NetBSD/acorn32, which is now 32-bit compatible.
* Currently boots multiuser with a serial console.
* Device support is not yet complete.

With help from abs.

Revision 1.133 / (download) - annotate - [select for diffs], Mon Oct 11 06:18:38 2004 UTC (9 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.132: +0 -9 lines
Diff to previous 1.132 (colored)

Backout previous on request from mrg - it breaks cross compilation for
sparc64. Matt will recommit a fixed version later.

Revision 1.132 / (download) - annotate - [select for diffs], Sat Oct 9 20:38:01 2004 UTC (9 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.131: +11 -2 lines
Diff to previous 1.131 (colored)

add new ${uname_p} (as `uname -p`).
set ${arches} to "sparc64 sparc" for MACHINE=sparc64.
for 32 bit sparc64 host, default to building 32 bit world (same as native).

Revision 1.127.2.1 / (download) - annotate - [select for diffs], Sun Aug 22 13:35:06 2004 UTC (9 years, 11 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2-1, netbsd-2
Changes since 1.127: +8 -3 lines
Diff to previous 1.127 (colored)

Pull up revision 1.131 (requested by junyoung in ticket #771):
Remove trailing / in pathname.
From Alan Barrett. See tech-toolchain@ for related discussion.

Revision 1.131 / (download) - annotate - [select for diffs], Tue Aug 17 14:00:30 2004 UTC (9 years, 11 months ago) by junyoung
Branch: MAIN
Changes since 1.130: +8 -3 lines
Diff to previous 1.130 (colored)

Remove trailing / in pathname.

From Alan Barrett. See tech-toolchain@ for related discussion.

Revision 1.130 / (download) - annotate - [select for diffs], Fri Jul 2 04:25:24 2004 UTC (10 years ago) by jmc
Branch: MAIN
Changes since 1.129: +4 -3 lines
Diff to previous 1.129 (colored)

Add a change requested in PR#15548 and append the args passed to build.sh
into the comments in the make wrapper.

Revision 1.129 / (download) - annotate - [select for diffs], Fri Jun 25 15:03:39 2004 UTC (10 years, 1 month ago) by wiz
Branch: MAIN
Changes since 1.128: +3 -2 lines
Diff to previous 1.128 (colored)

Document -h. From Karsten Kruse in PR 25974.

Revision 1.58.2.8 / (download) - annotate - [select for diffs], Mon Jun 14 18:27:30 2004 UTC (10 years, 1 month ago) by tron
Branch: netbsd-1-6
Changes since 1.58.2.7: +7 -2 lines
Diff to previous 1.58.2.7 (colored) to branchpoint 1.58 (colored)

Apply patch (requested by jmc in ticket #1712):
Print out starttime, endtime and various other paramaters after
finishing a build. This fixes PR toolchain/25872.

Revision 1.128 / (download) - annotate - [select for diffs], Wed May 12 16:56:41 2004 UTC (10 years, 2 months ago) by cl
Branch: MAIN
Changes since 1.127: +15 -2 lines
Diff to previous 1.127 (colored)

``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386.  The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets

Revision 1.58.2.7 / (download) - annotate - [select for diffs], Fri Mar 12 04:00:47 2004 UTC (10 years, 4 months ago) by jmc
Branch: netbsd-1-6
Changes since 1.58.2.6: +4 -3 lines
Diff to previous 1.58.2.6 (colored) to branchpoint 1.58 (colored)

Pullup via patch (requested by jmmv in ticket #1550)

Set NETBSDSRCDIR explicitly to avoid build lossage

Revision 1.127 / (download) - annotate - [select for diffs], Fri Feb 6 23:19:30 2004 UTC (10 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.126: +18 -6 lines
Diff to previous 1.126 (colored)

Add
	-x		set MKX11=yes
	-X x11src	set X11SRCDIR to x11src

Revision 1.126 / (download) - annotate - [select for diffs], Wed Feb 4 11:23:40 2004 UTC (10 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.125: +4 -4 lines
Diff to previous 1.125 (colored)

highlight that the noisyless level is the MAKEVERBOSE level

Revision 1.125 / (download) - annotate - [select for diffs], Fri Nov 14 12:38:12 2003 UTC (10 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.124: +40 -32 lines
Diff to previous 1.124 (colored)

tweak usage message.
when performing "sets", highlight that DESTDIR should be
pre-populated.  suggested by glen mccready.

Revision 1.124 / (download) - annotate - [select for diffs], Wed Nov 12 15:51:45 2003 UTC (10 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.123: +6 -6 lines
Diff to previous 1.123 (colored)

Now that MKUPDATE and MKUNPRIVED are "normalized" with getmakevar(),
test with  "${MKxxx}" = "no"  instead of  -z "${MKxxx}"

Ignore errors when running pwd -P.  (GNU coreutils incorrectly complains)


Both problems pointed out in private email from Christian Limpach.

Revision 1.123 / (download) - annotate - [select for diffs], Fri Oct 31 01:46:39 2003 UTC (10 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.122: +3 -7 lines
Diff to previous 1.122 (colored)

Always use `/bin/pwd -P` to get the "TOP" of the source tree, so that
MAKEOBJDIR (and other parameters) work correctly with symlinks, amd(8), etc.
Should fix PR [bin/23313], and possibly others.

Revision 1.122 / (download) - annotate - [select for diffs], Sun Oct 26 03:12:21 2003 UTC (10 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.121: +4 -2 lines
Diff to previous 1.121 (colored)

Explain why make is being rebuilt.
Patch from Hubert Feyrer in [toolchain/23156].

Revision 1.121 / (download) - annotate - [select for diffs], Sun Oct 26 02:17:46 2003 UTC (10 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.120: +4 -7 lines
Diff to previous 1.120 (colored)

Improve how build.sh -N and MAKEVERBOSE interoperate;
rather than adding '-s' to make's command line in the makewrapper,
use the .SILENT target based on MAKEVERBOSE's value.

This means that you can do:
	./build.sh -N 1 makewrapper

	$TOOLDIR/bin/nbmake-$MACHINE
	#  runs at MAKEVERBOSE==1, with command lines suppressed

	$TOOLDIR/bin/nbmake-$MACHINE MAKEVERBOSE=2
	#  runs at MAKEVERBOSE==2 for this invocation, with command lines shown

Revision 1.120 / (download) - annotate - [select for diffs], Sun Oct 26 02:00:37 2003 UTC (10 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.119: +10 -2 lines
Diff to previous 1.119 (colored)

"Normalise" MKOBJDIRS MKUPDATE MKUNPRIVED with getmakevar() before
trying to use them internally to build.sh.
Fixes issue where build.sh would run "make cleandir" if MKUPDATE=yes was
set in mk.conf and -u wasn't given to build.sh.

Revision 1.119 / (download) - annotate - [select for diffs], Sat Oct 25 03:46:09 2003 UTC (10 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.118: +29 -9 lines
Diff to previous 1.118 (colored)

Implement build -N noisy, which sets MAKEVERBOSE to noisy and adds
`-s' to MAKEFLAGS for noisy < 2.

Revision 1.118 / (download) - annotate - [select for diffs], Sun Oct 19 03:37:36 2003 UTC (10 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.117: +3 -3 lines
Diff to previous 1.117 (colored)

Teach build.sh about the ibmnws port.

Revision 1.117 / (download) - annotate - [select for diffs], Wed Sep 24 00:24:53 2003 UTC (10 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.116: +2 -3 lines
Diff to previous 1.116 (colored)

Revert part of previous commit and do NOT explicitly set BSDSRCDIR in the
makewrapper, as doing so can break various builds.

(Setting NETBSDSRCDIR isn't strictly necessary either, but AFAICT, it
shouldn't hurt)

Revision 1.116 / (download) - annotate - [select for diffs], Sat Sep 20 10:14:41 2003 UTC (10 years, 10 months ago) by jmmv
Branch: MAIN
Changes since 1.115: +7 -2 lines
Diff to previous 1.115 (colored)

Set BSDSRCDIR and NETBSDSRCDIR in the make wrapper, so we always get the
right source directories (in case they are defined in mk.conf using '?=').

Revision 1.115 / (download) - annotate - [select for diffs], Wed Sep 10 18:05:52 2003 UTC (10 years, 10 months ago) by jmmv
Branch: MAIN
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored)

Pass '-de' to make(1) to get the expected behavior ("failed target" and
"failed command" messages).

Revision 1.114 / (download) - annotate - [select for diffs], Sat Aug 16 11:46:44 2003 UTC (10 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.113: +3 -3 lines
Diff to previous 1.113 (colored)

in getkernelconf(), remove check for non-empty $makeobjdir, as it's not
performed elsewhere in similar code, and causes problems if you run "kernel="
without an operation that performs "make obj" in sys/ beforehand.

Revision 1.58.2.6 / (download) - annotate - [select for diffs], Tue Aug 12 18:27:23 2003 UTC (10 years, 11 months ago) by tron
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002
Changes since 1.58.2.5: +3 -3 lines
Diff to previous 1.58.2.5 (colored) to branchpoint 1.58 (colored)

Pull up revision 1.113 via patch (requested by jmc in ticket #1404):
Fix 2 remaining places items are depending on execute permissions coming out
from a cvs checkout on scripts.

Revision 1.113 / (download) - annotate - [select for diffs], Mon Aug 11 19:26:04 2003 UTC (10 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.112: +3 -3 lines
Diff to previous 1.112 (colored)

Fix 2 remaining places items are depending on execute permissions coming out
from a cvs checkout on scripts.

Revision 1.112 / (download) - annotate - [select for diffs], Sun Aug 10 16:20:37 2003 UTC (10 years, 11 months ago) by sommerfeld
Branch: MAIN
Changes since 1.111: +4 -3 lines
Diff to previous 1.111 (colored)

Improve usage for -U so others won't make the mistake I just made.

Revision 1.111 / (download) - annotate - [select for diffs], Tue Jul 29 10:07:15 2003 UTC (11 years ago) by lukem
Branch: MAIN
Changes since 1.110: +27 -6 lines
Diff to previous 1.110 (colored)

Add build.sh -Z var, to unset a variable and ensure it's unset in makewrapper.
For -M MAKEOBJDIRPREFIX, unset MAKEOBJDIR.
For -O MAKEOBJDIR, unset MAKEOBJDIRPREFIX.

Revision 1.110 / (download) - annotate - [select for diffs], Mon Jul 28 12:33:42 2003 UTC (11 years ago) by lukem
Branch: MAIN
Changes since 1.109: +3 -4 lines
Diff to previous 1.109 (colored)

Add missing "cd ${TOP}" to buildtools().  Problem identified by John Nemeth
in private mail.

Remove some debugging messages that crept in a little while ago.

Revision 1.109 / (download) - annotate - [select for diffs], Sun Jul 20 09:26:49 2003 UTC (11 years ago) by lukem
Branch: MAIN
Changes since 1.108: +16 -24 lines
Diff to previous 1.108 (colored)

* set & export LC_ALL=C, so that end-user use of non `C' LC_COLLATE locales
  won't cause expressions such as `echo [0-9a-z]*` to match "CVS"
* add getmakeenv(var, value), and use appropriatly.

Revision 1.108 / (download) - annotate - [select for diffs], Fri Jul 18 08:30:07 2003 UTC (11 years ago) by lukem
Branch: MAIN
Changes since 1.107: +14 -14 lines
Diff to previous 1.107 (colored)

Replace UNPRIVED=yes with MKUNPRIVED=yes.
Replace UPDATE=yes with MKUPDATE=yes.

Revision 1.107 / (download) - annotate - [select for diffs], Wed Jul 16 13:21:47 2003 UTC (11 years ago) by lukem
Branch: MAIN
Changes since 1.106: +6 -4 lines
Diff to previous 1.106 (colored)

add "params" operation

Revision 1.106 / (download) - annotate - [select for diffs], Mon May 26 06:35:17 2003 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.105: +16 -14 lines
Diff to previous 1.105 (colored)

Broaden the scope of when "make obj NOSUBDIR=" will be run in tools/
to be at any time that build.sh is run without -o, because we need
the objdir of the top-level to exist if build.sh is going to provide
a default DESTDIR/RELEASEDIR, and with the previous code, if
MAKEOBJDIRPREFIX was used and the objdir of the source tree didn't
exist, build.sh would incorrectly determine the DESTDIR.
(mmm, obscure bugs).

Revision 1.105 / (download) - annotate - [select for diffs], Sun May 25 12:34:27 2003 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.104: +80 -47 lines
Diff to previous 1.104 (colored)

all:
    *	add "releasekernel=conf", to install a gzipped copy of the kernels
	built by "kernel=conf" to RELEASEDIR/MACHINE/binary/kernel

build.sh:
    *	be more consistent in various status messages
    *	move the {release,}kernel=conf conf parsing code into getkernelconf()
	and use in both buildkernel() and releasekernel()
    *	only warn once when building multiple kernels without updating the tools

Revision 1.104 / (download) - annotate - [select for diffs], Sun May 18 10:57:11 2003 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.103: +4 -2 lines
Diff to previous 1.103 (colored)

* Display the start time again just before the end time, to make it
  easier to work out how long things took.  Suggested by Alistair Crooks.
* Explicitly display the makewrapper path

Revision 1.103 / (download) - annotate - [select for diffs], Sat May 17 07:52:52 2003 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.102: +12 -3 lines
Diff to previous 1.102 (colored)

Change evbsh3 to be like evbmips, in that a default MACHINE_ARCH
won't be provided for a MACHINE of "evbsh3"; the user has to explicitly
use "evbsh3-eb" or "evbsh3-el"

Revision 1.102 / (download) - annotate - [select for diffs], Mon May 12 03:01:16 2003 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.101: +7 -5 lines
Diff to previous 1.101 (colored)

* Display default DESTDIR & RELEASEDIR.  (Well, they're actually in
  the .OBJDIR of the top of the source tree, but expressing that in 1
  line or less starts to get complicated).   Requested by Hubert.
* When using a -el or -eb MACHINE "shortcut", use that original value
  as the MACHINE for the default makewrapper filename.  Requested by Simon.

Revision 1.101 / (download) - annotate - [select for diffs], Mon May 12 02:33:17 2003 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.100: +16 -5 lines
Diff to previous 1.100 (colored)

* Add support for MACHINEs:  evbmips-eb evbmips-el sbmips-eb sbmips-el
  which sets the appropriate MACHINE_ARCH and rewrites MACHINE to lose
  the -e[bl] suffix.
* Don't default to a MACHINE_ARCH for evbmips or sbmips.

Per discussion wth Simon Burge.

Revision 1.100 / (download) - annotate - [select for diffs], Sat May 10 07:12:37 2003 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.99: +7 -5 lines
Diff to previous 1.99 (colored)

Add "sourcesets" argument/target, which builds source sets into
RELEASEDIR/source/sets

Revision 1.99 / (download) - annotate - [select for diffs], Fri May 9 09:10:06 2003 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.98: +4 -3 lines
Diff to previous 1.98 (colored)

When providing a default DESTDIR & RELEASEDIR in non-expert mode, add
these to makeenv so that the generated makewrapper contains these settings...

Revision 1.98 / (download) - annotate - [select for diffs], Thu May 8 14:19:39 2003 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.97: +323 -258 lines
Diff to previous 1.97 (colored)

New features:
    *	If not expert mode, provide defaults for:
		DESTDIR		/top/of/obj/destdir.${MACHINE}
		RELEASEDIR	/top/of/obj/releasedir
    *	Collate the various status messages output during the run
	and display them at the end in a "summary report".
    *	Cross-check the validity of MACHINE against MACHINE_ARCH.
	Fixes PR [toolchain/20193] from David Maxwell.
    *	Highlight that the tools will be rebuilt if UPDATE isn't set.
    *	Add stronger language recommending against -E unless you
    *	Improve whitespace use in usage()

Code stuff:
    *	Be consistent about using "${var}"
    *	Be more consistent how [ tests ] are run
    *	Improve some comments
    *	Rename getmakevar() to raw_getmakevar()
    *	Rename safe_getmakevar() to getmakevar()
    *	cd back to ${TOP} after a kernel build.
    *	Always keep the tmpdir around for the build (it's where the
	status messages are collated, for one).

Revision 1.97 / (download) - annotate - [select for diffs], Thu May 8 12:49:45 2003 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (colored)

CYGWIN needs -X too (John Gordon)

Revision 1.96 / (download) - annotate - [select for diffs], Sat Apr 26 18:42:34 2003 UTC (11 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.95: +6 -3 lines
Diff to previous 1.95 (colored)

Adapt for x86_64 -> amd64 rename.

Revision 1.95 / (download) - annotate - [select for diffs], Fri Mar 14 05:22:50 2003 UTC (11 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.94: +12 -3 lines
Diff to previous 1.94 (colored)

Put -X into MAKEFLAGS on FreeBSD and Mac OS X; they have a small ARG_MAX.

Revision 1.94 / (download) - annotate - [select for diffs], Fri Mar 7 01:22:16 2003 UTC (11 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.93: +2 -3 lines
Diff to previous 1.93 (colored)

remove unnecessary message

Revision 1.93 / (download) - annotate - [select for diffs], Tue Mar 4 02:20:28 2003 UTC (11 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.92: +10 -9 lines
Diff to previous 1.92 (colored)

don't print the command & start time until after the options are parsed...

Revision 1.92 / (download) - annotate - [select for diffs], Tue Feb 18 23:59:06 2003 UTC (11 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.91: +9 -2 lines
Diff to previous 1.91 (colored)

Display the build.sh command line and the start & end times.
Based on suggestion from Andrew Brown <atatat@netbsd.org>.

Revision 1.91 / (download) - annotate - [select for diffs], Sun Feb 16 04:35:03 2003 UTC (11 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.90: +12 -4 lines
Diff to previous 1.90 (colored)

Enhance "kernel=" to print pathnames of newly built kernels for cut & paste.
(Previously we just printed the build directory.)

Revision 1.90 / (download) - annotate - [select for diffs], Thu Feb 6 22:19:06 2003 UTC (11 years, 5 months ago) by enami
Branch: MAIN
Changes since 1.89: +4 -3 lines
Diff to previous 1.89 (colored)

Consistently, don't expand ${MACHINE} in help message.

Revision 1.89 / (download) - annotate - [select for diffs], Fri Jan 31 01:38:35 2003 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored)

another DESTDIR clarification

Revision 1.88 / (download) - annotate - [select for diffs], Sun Jan 26 13:12:05 2003 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.87: +3 -2 lines
Diff to previous 1.87 (colored)

add missing usage for "sets"

Revision 1.87 / (download) - annotate - [select for diffs], Sun Jan 26 06:19:12 2003 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.86: +10 -4 lines
Diff to previous 1.86 (colored)

- Add "sets" top-level Makefile target and build.sh operation.
	[Latter suggested by Julio Merino in private email]
- Add "help" build.sh operation.

Revision 1.86 / (download) - annotate - [select for diffs], Sun Jan 26 05:34:32 2003 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.85: +31 -16 lines
Diff to previous 1.85 (colored)

Change build.sh so that at least one operation is required.
Add "makewrapper" operation to build.sh.
	[The above changes were suggested by Alan Barrett on current-users@]

Fail if building as non-root unless: UNPRIVED is set, -U is given, or -E
(expert mode) is given.
	[Suggested by James Wetterau in private email]

Improve the examples in BUILDING.

Revision 1.85 / (download) - annotate - [select for diffs], Fri Jan 24 01:17:52 2003 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.84: +7 -7 lines
Diff to previous 1.84 (colored)

Can't check if cross building with "install=" until after $MACHINE has
been validated.  Noted by Anthony Mallet on current-users@

Revision 1.84 / (download) - annotate - [select for diffs], Thu Jan 23 16:24:08 2003 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.83: +687 -450 lines
Diff to previous 1.83 (colored)

Rework how build.sh functions, so that command line options set various
parameters, and a list of "operations" defines what to do.
The full usage is show below.  Notes:
	`-b' has been deprecated (it always occurs now)
	`-d' is replaced by "distribution"
	`-R rel' onlys sets RELEASEDIR; use "release" to build a release
	`-k kern' has been replaced by "kernel=kern"
	`-i idir' has been replaced by "install=idir"
	-r now occurs before nbmake is rebuilt

Add a copyright (long due!).  Rework the code to (a KNF inspired) ShellNF.
Use functions appropriately.  Allow `nb' prefix to be easily changed to
something else.  Solve world peace (just kidding)

This is part of the (never achievable) goal of attempting to make
NetBSD easier to build...


  --8<--  new usage follows  --8<--

Usage: build.sh [-EnorUu] [-a arch] [-B buildid] [-D dest] [-j njob] [-M obj]
		[-m mach] [-O obj] [-R release] [-T tools] [-V var=[value]]
		[-w wrapper]   [operation [...] ]

 System build operations (all imply "obj" and "tools"):
    build		Run "make build"
    distribution	Run "make distribution" (includes etc/ files)
    release		Run "make release" (includes kernels & distrib media)

 Other operations:
    obj			Run "make obj" (default unless -o)
    tools 		Build and install tools
    kernel=conf		Build kernel with config file `conf'
    install=idir	Run "make installworld" to `idir'
			(useful after 'distribution' or 'release')

 Options:
    -a arch	Set MACHINE_ARCH to arch (otherwise deduced from MACHINE)
    -B buildId	Set BUILDID to buildId
    -D dest	Set DESTDIR to dest
    -E		Set "expert" mode; disables some DESTDIR checks
    -j njob	Run up to njob jobs in parallel; see make(1)
    -M obj	Set obj root directory to obj (sets MAKEOBJDIRPREFIX)
    -m mach	Set MACHINE to mach (not required if NetBSD native)
    -n		Show commands that would be executed, but do not execute them
    -O obj	Set obj root directory to obj (sets a MAKEOBJDIR pattern)
    -o		Set MKOBJDIRS=no (do not create objdirs at start of build)
    -R release	Set RELEASEDIR to release
    -r		Remove contents of TOOLDIR and DESTDIR before building
    -T tools	Set TOOLDIR to tools.  If unset, and TOOLDIR is not set in
		the environment, nbmake will be (re)built unconditionally.
    -U		Set UNPRIVED
    -u		Set UPDATE
    -V v=[val]	Set variable `v' to `val'
    -w wrapper	Create nbmake script as wrapper
		(default: ${TOOLDIR}/bin/nbmake-${MACHINE})

Revision 1.83 / (download) - annotate - [select for diffs], Wed Jan 22 11:26:11 2003 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.82: +33 -29 lines
Diff to previous 1.82 (colored)

reorder usage so that "mutually exclusive build" operations are listed
separately from "set variable" operations, in an attempt to make
build.sh easier to use

Revision 1.82 / (download) - annotate - [select for diffs], Wed Jan 15 01:49:03 2003 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.81: +43 -39 lines
Diff to previous 1.81 (colored)

Improvements from Alan Barrett (in private email), with minor tweaking:
(Thanks Alan!)

* Before attempting to use KERNOBJDIR, we now need to "make obj" in
  ${KERNSRCDIR}/${KERNARCHDIR}/compile, not in ${TOP}/etc as used to be
  the case.

* Fix one place where getmakevar was invoked unconditionally.  It needs
  to be conditional on $runcmd != "echo", so that we can rely on the
  existence of the new $make executable.

* Add a sanity check to getmakevar, to bomb if a similar error is
  introduced in the future.

* Changed the bomb function to print to stderr instead of to stdout, and
  to kill the top level shell process.  Without this, an attempted bomb
  from inside getmakevar did not work properly.

* Moved some duplicated code into a new safe_getmakevar function, which
  calls getmakevar if that is safe, or else emits a literal '$' followed
  by the variable name.


Improvements from me:

* Always 'trap "exit 1" 1 2 3 15', so the kill in bomb() doesn't cause ugly
  output.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Jan 4 14:55:44 2003 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.80: +10 -9 lines
Diff to previous 1.80 (colored)

improve usage

Revision 1.80 / (download) - annotate - [select for diffs], Sat Jan 4 12:55:32 2003 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.79: +23 -6 lines
Diff to previous 1.79 (colored)

Add "-V var=[value]", for setting arbitrary variables which will also
be added to the nbmake-${MACHINE} wrapper.
Useful for setting RELEASEDIR, without -R's habit of building a release.

Revision 1.79 / (download) - annotate - [select for diffs], Thu Jan 2 23:11:07 2003 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.78: +38 -27 lines
Diff to previous 1.78 (colored)

some cleanups and tweaks to my preferred "sh KNF" (SNF ? :)

Revision 1.78 / (download) - annotate - [select for diffs], Thu Jan 2 05:11:12 2003 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: fvdl_fs64_base, fvdl_fs64
Changes since 1.77: +4 -2 lines
Diff to previous 1.77 (colored)

cd `dirname $0`  so that this runs from the directory that build.sh is in.
Per discussion with Andrew Brown.

Revision 1.77 / (download) - annotate - [select for diffs], Wed Dec 25 00:42:50 2002 UTC (11 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.76: +30 -10 lines
Diff to previous 1.76 (colored)

- Implement "-i installworlddir", which runs
	make INSTALLWORLDDIR=installworlddir installworld
  after every other operation has completed.
  If you want to run this target without rebuilding, use -b as well...
- Cache the output of `uname -s` and `uname -m` for future use.

Revision 1.76 / (download) - annotate - [select for diffs], Mon Dec 9 12:49:55 2002 UTC (11 years, 7 months ago) by scw
Branch: MAIN
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)

The walnut port has been subsumed by evbppc.

Revision 1.75 / (download) - annotate - [select for diffs], Mon Dec 9 03:13:41 2002 UTC (11 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

improve message.  suggestion from Scott Reynolds

Revision 1.74 / (download) - annotate - [select for diffs], Sun Dec 8 22:14:00 2002 UTC (11 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.73: +16 -6 lines
Diff to previous 1.73 (colored)

Add -E - "expert mode".  If this is not specified, builds to DESTDIR=/ are
not permitted.
By using this flag, you are taking responsibility for any issues that
may occur because of this...

Revision 1.73 / (download) - annotate - [select for diffs], Sun Dec 8 08:42:51 2002 UTC (11 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.72: +31 -31 lines
Diff to previous 1.72 (colored)

- be consistent about option ordering in build.sh usage display
- use Fl and Ar instead of Sy and Em to format options

Revision 1.72 / (download) - annotate - [select for diffs], Sun Nov 17 12:59:37 2002 UTC (11 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.71: +79 -39 lines
Diff to previous 1.71 (colored)

Apply fixes & enhancements from Alan Barrett.  (Thanks Alan!)

  * When building a kernel with the -k option, make obj in $TOP/etc to
    ensure that the correct KERNOBJDIR is created and used.  Previously,
    KERNOBJDIR could sometimes be an objdir outside the source tree
    and sometimes $TOP/sys/arch/$ARCH/compile inside the source tree,
    depending on whether or not a complete build had beed done before
    the kernel build.

  * Renamed KERNCONFNAME to kernconfname, for consistency with what
    seems to be a convention that variables local to build.sh (as
    opposed to make or environment variables) have lowercase names.

  * Renamed the do_buildonlytools and do_buildonlykernel variables to
    do_buildtools and do_buildkernel, because the word "only" is no
    longer appropriate now that more than one of them can be active
    simultaneously.

  * Changed a few '|| exit 1' tests to '|| bomb "message"', and added a
    few more similar tests.

  * Changed all 'echo "===> ..."' to use $runcmd, and added a few more
    similar echos.  Previously, some used $runcmd and some did not.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Nov 5 01:53:58 2002 UTC (11 years, 8 months ago) by enami
Branch: MAIN
Changes since 1.70: +4 -4 lines
Diff to previous 1.70 (colored)

In the function usage(),
- The -n and -t option was missing in sample command line.
- Indent the description of -r option correctly.
- Use `basename $0` instead of $0.

Revision 1.58.2.5 / (download) - annotate - [select for diffs], Sun Nov 3 16:36:06 2002 UTC (11 years, 8 months ago) by he
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.58.2.4: +23 -10 lines
Diff to previous 1.58.2.4 (colored) to branchpoint 1.58 (colored)

Pull up revision 1.67 (via patch, requested by thorpej in ticket #800):
  Use /usr/bin/env to invoke the real interpreter; this gets
  us a POSIX shell on more systems.
  Deal with a broken "pwd" on Solaris.

Revision 1.58.2.4 / (download) - annotate - [select for diffs], Sun Nov 3 16:28:36 2002 UTC (11 years, 8 months ago) by he
Branch: netbsd-1-6
Changes since 1.58.2.3: +3 -5 lines
Diff to previous 1.58.2.3 (colored) to branchpoint 1.58 (colored)

Pull up revision 1.66 (requested by thorpej in ticket #799):
  Back out previous, needs to be re-thought.

Revision 1.58.2.3 / (download) - annotate - [select for diffs], Sun Nov 3 14:36:36 2002 UTC (11 years, 8 months ago) by he
Branch: netbsd-1-6
Changes since 1.58.2.2: +5 -3 lines
Diff to previous 1.58.2.2 (colored) to branchpoint 1.58 (colored)

Pull up revision 1.65 (requested by thorpej in ticket #796):
  Use /bin/test explicitly in one place, rather than [ or
  test (which might be a shell built-in).  This allows this
  script to work otherwise unchanged with Solaris 8's /bin/sh.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Oct 20 15:48:01 2002 UTC (11 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.69: +85 -37 lines
Diff to previous 1.69 (colored)

- Add support for ./build.sh -k kern, which configures and builds the named
  kernel using the $TOOLDIR toolchain.  If kern doesn't contain `/', it will
  be searched for in ${KERNCONFDIR} (typically, sys/arch/${MACHINE}/conf).
- Improve ./build.sh usage.
- Add some examples to the documentation.

This is heavily based on [toolchain/18739] from Alan Barrett <apb@cequrux.com>,
with improvements by me.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Oct 2 16:57:29 2002 UTC (11 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.68: +6 -3 lines
Diff to previous 1.68 (colored)

Add sh5 cases.

Revision 1.68 / (download) - annotate - [select for diffs], Wed Sep 18 15:20:53 2002 UTC (11 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.67: +10 -8 lines
Diff to previous 1.67 (colored)

Remove USE_NEW_TOOLCHAIN, replacing it with similar logic using
TOOLCHAIN_MISSING and EXTERNAL_TOOLCHAIN.

Revision 1.67 / (download) - annotate - [select for diffs], Fri Sep 13 23:27:13 2002 UTC (11 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.66: +19 -10 lines
Diff to previous 1.66 (colored)

* Use /usr/bin/env to invoke the real interpreter.  This allows us to
  get the POSIX shell on more systems.
* Deal with a broken "pwd" on Solaris (suggested by Christos).

Revision 1.66 / (download) - annotate - [select for diffs], Fri Sep 13 22:17:04 2002 UTC (11 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.65: +3 -5 lines
Diff to previous 1.65 (colored)

Back out previous; I'll figure out another way.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Sep 13 18:36:01 2002 UTC (11 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.64: +5 -3 lines
Diff to previous 1.64 (colored)

Use /bin/test explicitly in one place, rather than [ or test (which
might be a shell built-in).  This allows this script to work otherwise
unchanged with Solaris 8's /bin/sh.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Sep 3 22:03:48 2002 UTC (11 years, 10 months ago) by bjh21
Branch: MAIN
Changes since 1.63: +6 -2 lines
Diff to previous 1.63 (colored)

Unset PWD so that pwd is guaranteed to return a physical path.
This fixes PR 17313.  Thanks to Ian Dall for providing the fix.

Revision 1.58.2.2 / (download) - annotate - [select for diffs], Tue Jul 9 08:07:03 2002 UTC (12 years ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1
Changes since 1.58.2.1: +1 -1 lines
Diff to previous 1.58.2.1 (colored) to branchpoint 1.58 (colored)

Pull up revision 1.63 (requested by pooka in ticket #449):
fix pasto in error message
reported by Andrew Freedman in toolchain/17530

Revision 1.63 / (download) - annotate - [select for diffs], Tue Jul 9 06:36:16 2002 UTC (12 years ago) by pooka
Branch: MAIN
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

fix pasto in error message

reported by Andrew Freedman in toolchain/17530

Revision 1.62 / (download) - annotate - [select for diffs], Mon Jun 10 14:08:05 2002 UTC (12 years, 1 month ago) by fredette
Branch: MAIN
Changes since 1.61: +6 -3 lines
Diff to previous 1.61 (colored)

Add hppa as a supported MACHINE_ARCH.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Jun 5 06:27:10 2002 UTC (12 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

Remove redundant pattern in case.

Revision 1.60 / (download) - annotate - [select for diffs], Wed Jun 5 02:32:15 2002 UTC (12 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

Allow ns32k.

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Wed May 29 16:32:23 2002 UTC (12 years, 2 months ago) by tv
Branch: netbsd-1-6
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored)

Pull up revision 1.59 (requested by msaitoh in ticket #64):
add armeb as valid MACHINE_ARCH
(tv: Not relevant to 1.6, but cosmetic to keep build.sh more in sync.)

Revision 1.59 / (download) - annotate - [select for diffs], Fri May 24 14:43:31 2002 UTC (12 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored)

add armeb as valid MACHINE_ARCH

Revision 1.58 / (download) - annotate - [select for diffs], Mon May 13 01:44:34 2002 UTC (12 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6
Changes since 1.57: +11 -5 lines
Diff to previous 1.57 (colored)

add "-M makeobjdirprefix" to build.sh

Revision 1.57 / (download) - annotate - [select for diffs], Thu May 2 22:13:31 2002 UTC (12 years, 3 months ago) by sommerfeld
Branch: MAIN
Changes since 1.56: +6 -6 lines
Diff to previous 1.56 (colored)

Correct BUGS in BUILDING.mdoc now that most ports are USE_NEW_TOOLCHAIN

Obsolete NBUILDJOBS; build.sh just passes -jN through to make(1),
which inherits it cooperatively through the build tree.  Fix
documentation so that it's shown to be deprecated.

If you use build -jN, please save full build logs so that errors due
to missing dependancies can be analyzed and corrected.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Apr 18 01:38:11 2002 UTC (12 years, 3 months ago) by tv
Branch: MAIN
Changes since 1.55: +3 -2 lines
Diff to previous 1.55 (colored)

Bomb if share/mk/bsd.own.mk is missing.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Apr 2 16:34:49 2002 UTC (12 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.54: +3 -6 lines
Diff to previous 1.54 (colored)

Switch remaining ARM ports (acorn32, cats, shark) to ELF.

Revision 1.54 / (download) - annotate - [select for diffs], Sun Mar 24 22:21:41 2002 UTC (12 years, 4 months ago) by bjh21
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

Rename arm26 -> acorn26.

Revision 1.53 / (download) - annotate - [select for diffs], Thu Mar 21 10:54:50 2002 UTC (12 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.52: +39 -29 lines
Diff to previous 1.52 (colored)

Crank up robustness.

Revision 1.52 / (download) - annotate - [select for diffs], Thu Mar 14 18:33:04 2002 UTC (12 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.51: +15 -5 lines
Diff to previous 1.51 (colored)

Add a -B option to set the BUILDID for the build.  This also causes
the make(1) wrapper script to be named "nbmake-MACHINE-BUILDID".

Revision 1.51 / (download) - annotate - [select for diffs], Thu Mar 7 14:59:04 2002 UTC (12 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Add evbmips.
XXX: This is hard-coded to little-endian here, but there's not reason for
     some this.  The MALTA can be used with either-endianness.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Mar 6 23:32:52 2002 UTC (12 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

Add sbmips.

Revision 1.49 / (download) - annotate - [select for diffs], Sat Mar 2 03:51:02 2002 UTC (12 years, 5 months ago) by tv
Branch: MAIN
Changes since 1.48: +4 -20 lines
Diff to previous 1.48 (colored)

Nuke my "mkdirp" hack.  "mkdir -p" is used so liberally throughout the
tree that the hack is just a maintenance annoyance here.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Mar 2 02:09:18 2002 UTC (12 years, 5 months ago) by mjl
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

powerpc is a valid MACHINE_ARCH too.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Mar 1 21:06:40 2002 UTC (12 years, 5 months ago) by tv
Branch: MAIN
Changes since 1.46: +13 -2 lines
Diff to previous 1.46 (colored)

Related to PR toolchain/15780, sanity check MACHINE_ARCH.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Mar 1 20:57:26 2002 UTC (12 years, 5 months ago) by tv
Branch: MAIN
Changes since 1.45: +9 -2 lines
Diff to previous 1.45 (colored)

Related to PR 15781, explain better in a comment why it is not possible
to grovel mk.conf using sed/awk/etc. before nbmake is available.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Feb 27 21:19:08 2002 UTC (12 years, 5 months ago) by scw
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

Add mvmeppc to powerpc case.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Feb 27 13:55:28 2002 UTC (12 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.43: +8 -4 lines
Diff to previous 1.43 (colored)

add -U; set UNPRIVED=

Revision 1.43 / (download) - annotate - [select for diffs], Sun Feb 10 19:09:13 2002 UTC (12 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored)

Shark is not yet MACHINE_ARCH=arm.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Feb 10 18:28:12 2002 UTC (12 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

s/dnard/shark/

Revision 1.41 / (download) - annotate - [select for diffs], Tue Jan 29 08:46:59 2002 UTC (12 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

chdir out of $tmpdir before removing it; some vendors' rm(1) programs will
not remove cwd....

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jan 19 16:49:28 2002 UTC (12 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.39: +4 -3 lines
Diff to previous 1.39 (colored)

Honor HOST_{CC,CFLAGS,CPPFLAGS,LDFLAGS} passed in from the environment
when building nbmake.  Use the correct defaults if not set (HOST_CC=cc,
HOST_CFLAGS=-O).

Revision 1.39 / (download) - annotate - [select for diffs], Tue Jan 15 19:19:35 2002 UTC (12 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

Make sure buildmake.sh is run with "sh", rather than depending on executable
status.  (XXX we should probably come up with a HOST_SH variable for these
instances....)

Revision 1.38 / (download) - annotate - [select for diffs], Tue Jan 15 19:17:23 2002 UTC (12 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.37: +4 -6 lines
Diff to previous 1.37 (colored)

Make use of new make(1) bootstrap in src/tools/make.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Dec 19 20:59:07 2001 UTC (12 years, 7 months ago) by tv
Branch: MAIN
Changes since 1.36: +5 -4 lines
Diff to previous 1.36 (colored)

Apply workaround for some Bourne shells not handling IFS in the POSIX way.
Based on the change suggested by <david@l8s.co.uk> on current-users.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Dec 17 13:16:10 2001 UTC (12 years, 7 months ago) by wiz
Branch: MAIN
Changes since 1.35: +6 -6 lines
Diff to previous 1.35 (colored)

Sort options in usage in default order (AaBb...).

Revision 1.35 / (download) - annotate - [select for diffs], Wed Dec 12 23:50:27 2001 UTC (12 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

Change check for USE_NEW_TOOLCHAIN to just looking for it being defined.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Dec 11 23:57:49 2001 UTC (12 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

as -m mach is optional, indicate this in the usage

Revision 1.33 / (download) - annotate - [select for diffs], Tue Dec 11 21:13:35 2001 UTC (12 years, 7 months ago) by tv
Branch: MAIN
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored)

Honor HOST_LDFLAGS in environment.
Add bash to the suggestions of alternative shells if /bin/sh isn't enough.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Dec 11 20:45:31 2001 UTC (12 years, 7 months ago) by tv
Branch: MAIN
Changes since 1.31: +2 -3 lines
Diff to previous 1.31 (colored)

Revert part of rev. 1.28.  DO NOT set MAKE_MACHINE, since "nbmake" is a
platform-independent binary.  It should have no default.  Setting MACHINE
is the purpose of the wrapper script.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Dec 9 06:07:16 2001 UTC (12 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.30: +7 -3 lines
Diff to previous 1.30 (colored)

Make -t and -u behave together so a -t doesn't always force a cleandir in the
tools directory.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Dec 4 04:28:23 2001 UTC (12 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.29: +22 -3 lines
Diff to previous 1.29 (colored)

Check if this platform is supported for USE_NEW_TOOLCHAIN and exit with a
complaint if it's not. Point out to run a traditional make and also how to
force a new toolchain build if one wants to test

Revision 1.29 / (download) - annotate - [select for diffs], Mon Dec 3 08:18:00 2001 UTC (12 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.28: +6 -4 lines
Diff to previous 1.28 (colored)

Make sure the makes running before the make build rule include
-m <top dir>/share/mk

Revision 1.28 / (download) - annotate - [select for diffs], Fri Nov 30 02:18:13 2001 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.27: +5 -3 lines
Diff to previous 1.27 (colored)

- Define MAKE_MACHINE reasonably for the bootstrap make.
- Don't unset IFS; some shells don't like that.  Instead save, and
  restore IFS.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Nov 26 05:57:33 2001 UTC (12 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.26: +11 -2 lines
Diff to previous 1.26 (colored)

If using objdirs make sure the objdir root is made before starting the build.
Otherwise problems with bsd.own.mk and _SRC_TOP_OBJ can result.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Nov 25 18:35:06 2001 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.25: +9 -6 lines
Diff to previous 1.25 (colored)

Add a "-d" option that uses the "distribution" target, rather than
the "build" target.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Nov 15 00:14:35 2001 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

If using -t, do a "cleandir" before building/installing the
tools.  This is something the old "build" hack used to do.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Nov 13 19:03:08 2001 UTC (12 years, 8 months ago) by tv
Branch: MAIN
Changes since 1.23: +5 -4 lines
Diff to previous 1.23 (colored)

Revert part of rev. 1.20 -- $DESTDIR and $TOOLDIR are deliberately shown
symbolically with "-n", as these may come from mk.conf after building the
bootstrap make.  Add a comment to that effect.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Nov 12 23:16:17 2001 UTC (12 years, 8 months ago) by tv
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Major overhaul of src/tools and host toolchain.  Summary of changes:

* Rewrite src/tools Make logic to work like the rest of the tree wrt
  "dependall" and "install".  The old "make build" hack is gone.

* Remove the MKTOOLS logic.  This was linked to the "make build" hack,
  and was only needed because TOOLDIR originally had no writable default.

* Redo the GNU configure/make logic to make it fit reasonably in a
  BSD make wrapper.  Use new ${.ALLTARGETS} variable to scan for
  targets in $(srcdir), and mark them with .MADE: to prevent rebuilding.

* Only build cross tools in src/tools; remove some messy logic in
  src/usr.* and src/gnu/usr.* that would do target filename rewriting
  (improves consistency and readability).

* Add the ability to build cross gdb at tool build time by setting
  MKCROSSGDB (default no) to "yes" in mk.conf.

* Add src/tools/groff and set up paths to work with this cross groff.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Nov 12 08:54:58 2001 UTC (12 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

change MACHINE_ARCH of evbsh3 from sh3el to sh3eb because all config files
for evbsh3 defaults to big endian.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Nov 11 01:34:30 2001 UTC (12 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.20: +17 -19 lines
Diff to previous 1.20 (colored)

Always rebuild the nbmake wrapper script. Otherwise the options passed to
build.sh just get lost if they differ from a previous invocation (i.e. letting
MKOBJDIRS get set the first time, -o will get ignored after this unless a
rebuild of the script happens). It's low overhead so this adds little burden
to getting it right.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Nov 9 04:14:17 2001 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.19: +6 -5 lines
Diff to previous 1.19 (colored)

* Fix a quoting error so that when using -n, we actually see
  $TOOLDIR and $DESTDIR in their expanded form.
* Set USETOOLS=yes in the make wrapper script; it's pretty pointless
  using the make wrapper unless you're using the host tools.
* In the -t case, make sure to only echo the "make obj" command if -n.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Nov 5 02:17:47 2001 UTC (12 years, 8 months ago) by dillo
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

export DESTDIR when set via -D.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Nov 2 05:07:22 2001 UTC (12 years, 8 months ago) by tv
Branch: MAIN
Changes since 1.17: +45 -31 lines
Diff to previous 1.17 (colored)

* Always use the makewrapper when starting a build phase.

* Set stuff mostly in the environment, not on make(1)'s command line.
  This is needed for MACHINE and MACHINE_ARCH (noted by bjh21), and keeps
  the mk.conf-overriding-env behavior (suggested by several people).

* Use MAKEFLAGS to make the wrapper script more readable.

* When prepping objdir in tools for the default TOOLDIR value, just make
  that objdir; leave the recursive "make obj" for later.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Nov 1 01:49:44 2001 UTC (12 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored)

When doing an only-tools build, don't use the makewrapper.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Nov 1 00:14:17 2001 UTC (12 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.15: +20 -8 lines
Diff to previous 1.15 (colored)

Add a -t option that builds and installs the toolchain only
(and thus implies -b).  To make this work, we also check do_buildsystem
when doing the DESTDIR sanity check.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Oct 31 19:59:43 2001 UTC (12 years, 9 months ago) by tv
Branch: MAIN
Changes since 1.14: +125 -75 lines
Diff to previous 1.14 (colored)

Major cleanup and overhaul:

* Allow MACHINE to be set automatically on NetBSD native builds.
  Require -m only if the host is not NetBSD.

* Fail if DESTDIR is set to root (/) and the build is not NetBSD native,
  or the build is attempting a "make release" (option -R).

* Warn the user if DESTDIR is set to root (/) that the kernel must be up
  to date, or else the build might hose the system.  Also, do not remove
  DESTDIR on -r if it is set to root.

* Fail if TOOLDIR is set to / or empty after checking with nbmake.

* Allow DESTDIR and TOOLDIR to be set in mk.conf and/or by the new default
  from <bsd.own.mk>.  Note that if -T is not used to set TOOLDIR, and
  TOOLDIR is not set in the environment, then nbmake will always be
  bootstrapped (rather than looking at nbmake's timestamp).  This is
  because /bin/sh doesn't know how to get TOOLDIR from mk.conf without
  first having nbmake (...which lives in TOOLDIR).

* Do a pass of "make obj" through src/tools before installing nbmake (so
  long as -o/MKOBJDIRS=no is not specified).  This ensures that objdirs
  exist if they are desired, and paves the way for using build.sh to
  build all the src/tools without building everything else.

* Add "-w" option, which allows the builder to specify where the nbmake
  wrapper shell script should be created.  If not specified,
  $TOOLDIR/bin/nbmake-$MACHINE is still created as a default.

* Print the values of DESTDIR and TOOLDIR after bootstrapping nbmake,
  for informational purposes.

It should now be possible to type just "./build.sh" on a NetBSD-current
host and get a new build in / for the appropriate architecture.
However, building in-place like this has *not* been extensively tested
yet, so be careful.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Oct 31 18:23:55 2001 UTC (12 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.13: +11 -2 lines
Diff to previous 1.13 (colored)

Add a sanity check. Don't rm -rf / if TOOLDIR or DESTDIR got set to / and -r
was an option

Revision 1.13 / (download) - annotate - [select for diffs], Wed Oct 31 13:12:35 2001 UTC (12 years, 9 months ago) by reinoud
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

Rollback

Revision 1.12 / (download) - annotate - [select for diffs], Wed Oct 31 01:56:10 2001 UTC (12 years, 9 months ago) by tv
Branch: MAIN
Changes since 1.11: +28 -14 lines
Diff to previous 1.11 (colored)

* Fix brokenness created by the -n option additions ("eval" still kept
  quoting, so the commands were thought to be one big word with embedded
  whitespace)

* New options:
  -O obj    Set root of an obj tree; sets MAKEOBJDIR to an appropriate
            substitution pattern.
  -o        Sets MKOBJDIRS=no (otherwise sets MKOBJDIRS=yes)
  -u        Sets UPDATE

Revision 1.11 / (download) - annotate - [select for diffs], Wed Oct 31 00:08:03 2001 UTC (12 years, 9 months ago) by reinoud
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

Acorn's MACHINE_ARFCH is now arm, not arm32 ... moving it effectively to
ELF (Yay!)

Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 30 22:33:00 2001 UTC (12 years, 9 months ago) by tv
Branch: MAIN
Changes since 1.9: +68 -41 lines
Diff to previous 1.9 (colored)

* Clean up a bit; always use [] for comparison tests.

* Don't require DESTDIR when -b is set.

* Add -n option, which prints the commands that would be run by build.sh,
  but doesn't run them (much like make's -n option).

* Auto-resolve relative paths for -D, -R, and -T (but not for the
  corresponding environment variables).

* Explicitly declare defaults of all shell variables used where feasible,
  rather than sprinkling ${varname-value} expansions.

* Prefix shell true/false variables with "do_" to indicate their use as
  actual values in shell expressions (like "$do_buildsystem && echo foo").

Revision 1.9 / (download) - annotate - [select for diffs], Tue Oct 30 21:04:05 2001 UTC (12 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.8: +11 -6 lines
Diff to previous 1.8 (colored)

Add -b option. Bootstrap only. i.e. build and install nbmake and then exit

Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 29 19:47:51 2001 UTC (12 years, 9 months ago) by tv
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Set TOOLDIR in the nbmake-MACHINE wrapper script.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Oct 26 23:25:03 2001 UTC (12 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

Netwinder's MACHINE_ARCH is arm, not arm32

Revision 1.6 / (download) - annotate - [select for diffs], Wed Oct 24 14:55:09 2001 UTC (12 years, 9 months ago) by bjh21
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Re-instate MACHINE -> MACHINE_ARCH entry for arm26, which I left out of the
last change.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 24 14:00:24 2001 UTC (12 years, 9 months ago) by bjh21
Branch: MAIN
Changes since 1.4: +7 -4 lines
Diff to previous 1.4 (colored)

Sync the MACHINE -> MACHINE_ARCH mapping for ARM platforms with
sys/arch/*/param.h.  While not necessarily correct, param.h is at least
definitively incorrect.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Oct 24 02:39:56 2001 UTC (12 years, 9 months ago) by tv
Branch: MAIN
Changes since 1.3: +101 -30 lines
Diff to previous 1.3 (colored)

- Supply full list of MACHINEs for implicit MACHINE_ARCH evaluation.
  If a machine is not known, abort.

- Emulate "mkdir -p" for Old "mkdir" programs on some host OS's.

- Add "-a" option to provide MACHINE_ARCH explicitly (for MACHINEs
  that are capable of having more than one MACHINE_ARCH, such as sh3
  and sparc64)

- Where "getopts" is not available in the shell, try using "getopt".
  It's not whitespace compatible, but works in most cases.

- Rename "bmake" to "nbmake" per suggestions.

- When building nbmake, create a temporary directory for the purpose
  of holding host compiler objects that might be created in the cwd.
  Delete this directory if aborted via sh's "trap".

- Create a wrapper script in $TOOLDIR/bin called "nbmake-$MACHINE",
  which can be run by hand for building parts of a cross tree easily.
  Use this script when finally starting the build.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Oct 19 16:43:47 2001 UTC (12 years, 9 months ago) by tv
Branch: MAIN
Changes since 1.2: +16 -14 lines
Diff to previous 1.2 (colored)

Move mkdir of TOOLDIR/bin to after removing TOOLDIR as specified by -r.
Add -R option to specify RELEASEDIR directory and flag using "make release"
instead of "make build" (inverted logic from removed -n option).

Revision 1.2 / (download) - annotate - [select for diffs], Fri Oct 19 02:25:48 2001 UTC (12 years, 9 months ago) by tv
Branch: MAIN
Changes since 1.1: +9 -5 lines
Diff to previous 1.1 (colored)

Add error handling to bmake build, and add "-j" option to set NBUILDJOBS.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 19 02:21:03 2001 UTC (12 years, 9 months ago) by tv
Branch: MAIN

Script to automate bootstrapping a build on any host platform.  Creates
a bmake (rebuilds, if necessary) and invokes that to start the build.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>