Compiling Kernel Module with Current Kernel Options

cd_freebsd cd_freebsd at gatorzone.com
Thu Aug 5 07:33:19 PDT 2004


>>
I'm not sure what the problem is here, but could it be that the build is picking up the wrong set of includes? After you built the SMP kernel, did you copy kernel to / or did you do a make install? I've built at least a SCSI driver for 4.7 for a SMP machine and don't remember having to do anything special.
>>

Yes, I did a make install. The system has booted and uname -a shows the kernel was the one I built. 

The problem I see is that there is no "-include opt_global.h" in the compile command generated by the bsd.kmod.mk. Even if there was the include, the directory opt_global.h is located is not in the INCLUDE path. 

How did your code include and locate opt_global.h?


More information about the freebsd-hackers mailing list