Build linux,ko kernel module standalone

CyberLeo Kitsana cyberleo at cyberleo.net
Thu Jan 3 19:40:55 UTC 2013


On 01/03/2013 06:57 AM, Martin Laabs wrote:
> Hello,
> 
> if I wanna build a kernel module standalone (without the kernel e.g. for
> testing) I do it the following way (wlan in this example):
> 
> cd /usr/src/sys/modules/wlan
> make all
> maybe make install if I wanna install it.
> 
> Now I want do build the linux.ko module with the symbol DEBUG defined and
> tried the following:
> 
> cd /usr/src/sys/modules/linux

make depend

> make -DDEBUG all

Be wary of changing compile options for only certain parts of the
kernel, as this may lead to problems with mismatching code.

-- 
Fuzzy love,
-CyberLeo
Furry Peace! - http://www.fur.com/peace/


More information about the freebsd-questions mailing list