Friday, May 15, 2015

Ubuntu 15.04 Build Single Module

Get source code from apt-get sudo apt-get source linux-3.19.0
change directory to linux source code and type following commands cd linux-3.19.0
copy current kernel config as .config in current folder (or you can config it by typing make oldconfig) cp /boot/config-`name -r` .config
type following commands for parparations sudo make prepare sudo make scripts
copy Modules.symvers to current folder cp /usr/src/liunx-headers-&(uname -r)/Module.symvers .
compile specified module (ex. I'd like to rebuild block module) sudo make M=drivers/block