Thread: build a kernel
View Single Post
  #3   (View Single Post)  
Old 1st December 2015
bashrules bashrules is offline
Fdisk Soldier
Join Date: Mar 2010
Location: Here
Posts: 50

Originally Posted by kamil View Post
Please try to upgrade your sources.
It looks like that tools and kernel source are out of sync. Didn't philo check out both with his first statement?

Hello Philo.

- You know that H4KK1T is your kernel config file? If not, then use GENERIC.

- Do you know that you build and install more than the kernel and modules? Building userland dominates the build-time. For me on old hw:
  • tools: 30 min
  • kernel: 20 min
  • modules: 30 min
  • userland: 5 hours

A related question: The easiest way to build the kernel is (replace i386 with your architecture):

/usr/src/sys/arch/i386/conf# config GENERIC
Build directory is ../compile/GENERIC
Don't forget to run "make depend"
/usr/src/sys/arch/i386/conf# cd ../compile/GENERIC/
/usr/src/sys/arch/i386/compile/GENERIC# make depend; make; cp netbsd /; rm -rf *

Now: What's the make target for building (and installing) modules?
Reply With Quote