• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Compile kernel module with modified object file

andrewschools

New Member


Messages: 4

#1
I'm not sure if this is the right forum for this sort of question. If not, forgive me.

I made a change to this file: /usr/src/sys/modules/usb/usb/ng_lookup.c and have ran a
Code:
make
which produces many object files. The one I am concerned with is /usr/src/sys/modules/usb/usb/usb_lookup.o. Now I want to recompile this module /usr/src/netgraph/bluetooth/drivers/ubt/ng_ubt.c with the new object file. Is there any easy way to do this using the current make files? Is there any standard practice or development setup I should use? I have compiled /usr/src/netgraph/bluetooth/drivers/ubt/ng_ubt.c and loaded the module into the kernel but it doesn't look like it was compiled with my new object file.

Thanks!
 

Maelstorm

Well-Known Member

Thanks: 106
Messages: 282

#3
Although not recommended, you could add the following lines to your /etc/make.conf file:
Code:
# Kernel
NO_KERNELCLEAN=1
NO_KERNCLEAN=1

# World
NO_CLEAN=1
This will only rebuild the parts of the world/kernel that have been updated or changed without going through the entire build process.
 
Top