Skip to content

Instantly share code, notes, and snippets.

@pandada8
Created April 19, 2019 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pandada8/64e5250bb68b4dfb59b2c3fa1c364f97 to your computer and use it in GitHub Desktop.
Save pandada8/64e5250bb68b4dfb59b2c3fa1c364f97 to your computer and use it in GitHub Desktop.
Build ubuntu kernel package with your own patch
# checkout repo
git clone git://kernel.ubuntu.com/ubuntu/ubuntu-bionic.git ubuntu-bionic
# install related stuff
apt build-dep linux-image-$(uname -r)
apt install libncurses5-dev libudev-dev libssl-dev
# patch -p1 < you patch
make oldconfig
make -j $(nproc) deb-pkg LOCALVERSION=-your-suffix
# wait for serveral minutes/hours
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment