Subject: Re: problems building generic -current kernel
To: Lubos Vrbka <lubos.vrbka@jh-inst.cas.cz>
From: None <cube@cubidou.net>
List: netbsd-help
Date: 09/17/2003 15:01:20
On Wed, Sep 17, 2003 at 02:48:28PM +0200, Lubos Vrbka wrote:
> > Did you build and install the new config(8) before?
> no. i'm compiling -current for the first time so i'm not experienced
> with it. how can i do this?

The quick & dirty way is to cd to /usr/src/usr.sbin/config and doing
make install USETOOLS=never there. But the recommended way is using
the build.sh script.

> > You can also use the build.sh script at the top of the source tree.
> i thought this will build everything, not only the kernel. i plan to
> build the userland too, but firstly i'd like to have new kernel
> installed (btw, i think it is suggested on the netbsd webpage to first
> build the kernel, test it and then build the rest). or can i somehow
> force build.sh to build only tools it needs and the kernel?
> 
> but as i sad, i'm not experienced in this, so i might be wrong...

Actually, doing './build.sh -h' might be a good entry point :-)

Here are the most useful items, but that should not prevent you from
reading the BUILDING file that comes along build.sh.

'./build.sh tools' will build the full toolchain in order to compile
any part of the system.

'./build.sh kernel=GENERIC' will build the kernel from the GENERIC
config file found in sys/arch/${ARCH}/conf.

'./build.sh distribution' will build a full distribution of NetBSD.

'./build.sh install=/' will install that newly compiled distribution
on your system.

The order in which you compile the kernel and the distribution
doesn't matter, but you really should boot a new kernel before proceeding
to the install target, as it is indeed said in the documentation.

Please note that 'options COMPAT_16' is now necessary in the kernel
config file to update to -current from anything older than about one
week old. This option is present in GENERIC.

Hope that helps.

Quentin Garnier.