Last active
July 7, 2019 12:16
-
-
Save lattice0/e3159b93afd94d05e22d0699240d94a4 to your computer and use it in GitHub Desktop.
how to download ubuntu kernel and patch it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install dpkg-dev | |
#https://askubuntu.com/questions/496549/error-you-must-put-some-source-uris-in-your-sources-list | |
sudo apt-get build-dep gawk | |
sudo nano /etc/apt/sources.list | |
deb-src http://security.ubuntu.com/ubuntu bionic-security main | |
sudo apt-get source linux-souce... | |
apt-get source linux #why this works?? | |
sudo apt-get build-dep linux-image-$(uname -r) | |
tar -xzvf archive.tar.gz | |
cd kernel_source_directory | |
patch -p1 < diff_file_path | |
chmod +x debian/rules | |
fakeroot debian/rules clean | |
fakeroot debian/rules binary-headers binary-generic binary-perarch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment