How to build the linux kernel

Getting the source First you need to fetch the source. Visit and get the version of your preference. Alternative, if you plan to hack it you might prefer to get the latest (merged by Linus Torvalds) code by cloning his git repository: git clone git:// Configuring After you decompress the fetched archive or the git clone is done, you will need to create a .config file for your build.