• 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


New Member

Messages: 4

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
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.



Well-Known Member

Thanks: 101
Messages: 259

Although not recommended, you could add the following lines to your /etc/make.conf file:
# Kernel

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