Including c files in the FreeBSD kernel

Chris Martin outsidefactor at iinet.net.au
Sun Dec 26 03:38:53 PST 2004


I have some incomplete doco on installing a driver, and I was wondering if
someone could help me bridge the gap.

The drive makefile copies a vpd.c and a lib file into the /sys/ structure.
The doco then says to create a custom kernel config (e.g. MYKERNEL), put in
a "device" line for the driver ("device vpd" in this case) and create a
"files.MYKERNEL" file with the line:
'pci/vpb.c      optional vpb'

When I go to do a config before building, it says: 'Warning: device "vpb" is
unknown'

Is there a step missing to get the config to include the files.MYKERNEL
file?

If you wish to see the source for the drive in it's entirety, it can be
obtained here:
http://www.voicetronix.com.au/downloads.htm#freebsd

Hope someone can help me?

Chris




More information about the freebsd-questions mailing list