Building Kernel Modules

% sudo yum install kernel-devel

% make -C /lib/modules/$(uname -r)/build/ M=$(pwd) modules

% strip --strip-debug themoudule.ko

% make -C /lib/modules/$(uname -r)/build/ M=$(pwd) clean

Building inside kernel tree


make SUBDIRS=drivers/acpi/ modules
make SUBDIRS=drivers/acpi/ button.ko

No comments: