Subject: Re: how to install -current?
To: Luke Mewburn <email@example.com>
From: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
Date: 01/22/2003 10:14:59
On Wed, Jan 22, 2003 at 09:42:25 +1100, Luke Mewburn wrote:
> BTW: Where are you looking for your instructions on building?
http://www.netbsd.org/Documentation/current/ has information how
to build in DESTDIR, but no information how to install in / .
> I would like to ensure that the various instructions on how to
> build in the source and on www.netbsd.org provide useful and
> consistent information, and it seems that we're probably
> deficient in that at this time.
That would be very useful. All the options are confusing, but very,
I have started to build unprived and it works fine. Both i386 on i386
and sparc on i386. My sources and builddir are on an NFS server and
$ sh build.sh -u -D `pwd`/../build-i386 -T `pwd`/../tools-i386 -U
$ sh build.sh -m sparc -u -D `pwd`/../build-sparc -T `pwd`/../tools-sparc -U
$ sh build.sh -D `pwd`/../build-i386 -T `pwd`/../tools-i386 -U -k MYKERN
(are -D and -U needed?)
$ chmod -R og+rX `pwd`/../build-i386 `pwd`/../tools-i386
(I had to do this once because root couldn't read all the files over NFS)
On the target machine:
# <install kernel and reboot>
# make DESTDIR=$NFS_DIR/build-i386 TOOLDIR=$NFS_DIR/tools-i386 \
# TOOLDIR=$NFS_DIR/tools-i386 etcupdate -s $NFS_DIR/build-i386/etc
(I think, I am not 100% sure. This is also not documented.)
BTW, is "-O /usr/obj" needed? Isn't this the default?