Skip to content

Instantly share code, notes, and snippets.

@etaf
Created October 31, 2018 10:04
Show Gist options
  • Save etaf/08be506e7a7d29c93061c05df78d1111 to your computer and use it in GitHub Desktop.
Save etaf/08be506e7a7d29c93061c05df78d1111 to your computer and use it in GitHub Desktop.
compile linux kernel
find the corresponding source, eg 4.15
apt search linux-source
sudo apt-get install linux-source-4.15.0
cd /usr/src/linux-source-4.15.0/linux-source-4.15.0/
cp /boot/config-`uname -r` .config && make olddefconfig
#now we can modify the config
make -j `getconf _NPROCESSORS_ONLN` deb-pkg
dpkg -i linux-*.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment