Subject: Re: Silly question about compiling kernel
To: Andrew White <awhite@arc.corp.mot.com>
From: Charlie Allom <charlie@rubberduck.com>
List: port-macppc
Date: 04/09/2001 17:06:31
On Mon, Apr 09, 2001 at 04:52:47PM +1000, Andrew White wrote:
> I'm trying to compile a new kernel for netbsd. I go through the steps
> listed in conf, then "make depend", then "make". I can find new versions of
> ofwboot*, bootxx, fixcoff and installboot, but can't find a new netbsd
> kernel. Any suggestions on where to look, or how to make it?
Sure Andrew,
after this happens:
sh ../../../../conf/newvers.sh
cc -O2 -pipe -Werror -Wreturn-type -Wpointer-arith
-Wno-uninitialized -Wno-main -msoft-float -I. -I../../../../arch
-I.
./../../.. -nostdinc -DDIAGNOSTIC -DTRAP_PANICWAIT
-DNMBCLUSTERS="0x400" -DRASTERCONS_SMALLFONT -DMAXUSERS=32
-D_KERNEL
-Dmacppc -c vers.c
rm -f netbsd
ld -N -Ttext 100000 -e __start -x -o netbsd ${SYSTEM_OBJ} vers.o
text data bss dec hex filename
1945020 106208 183580 2234808 2219b8 netbsd
you'll find a file like this:
root@vulcanised:/usr/src/sys/arch/macppc/compile/VULCANISED# ll
netbsd
-rwxr-xr-x 1 root wheel 2235890 Apr 9 17:04 netbsd
and you may want to whack it in your root directory, AFTER
renaming your old kernel ( /netbsd ) to 'netbsd.old' or something
similiar.
C.
--
charlie@rubberduck.com Melbourne, Australia
http://rubberduck.com/ PGP preferred
F848 3B10 D181 E5EC 84CD 9CA2 7686 6210 FB54 66D1