Custom Kernel 'make depend' Failure

Christian Hiris 4711 at chello.at
Wed Jan 19 00:07:52 PST 2005


On Wednesday 19 January 2005 05:14, Scott C. MacCallum wrote:
> Greetings,
>
> I am running FreeBSD 5.3 Stable.
>
> I had been following the steps found in the handbook to make a custom
> kernel:
>
> /usr/sbin/config MYKERNEL
> cd ../compile/MYKERNEL
> make depend

You run the old, traditional way to build a kernel. Did you rebuild world 
after you have cvsuped your sources? I would recommend that you do some 
cleanup and then build world and kernel the new way. 

Clean up /usr/obj (if exists):
# cd /usr/obj 
# chflags -R noschg *
# rm -rf *

Clean up sources:
# cd /usr/src
# make cleandir ; make cleandir  

Read /usr/src/UPDATING.

Build world and kernel:
# make buildworld
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL

Reboot into single user mode and install world.

# adjkerntz -i
# fsck -p
# mount -u /
# mount -a -t ufs
# swapon -a

# mergemaster -p
# cd /usr/src
# make installworld
# mergemaster
# reboot

For the details please read  
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cutting-edge.html

Good luck!

-- 
Christian Hiris <4711 at chello.at> | OpenPGP KeyID 0x3BCA53BE 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu


More information about the freebsd-questions mailing list