-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubuntu-kernel-build.sh
33 lines (26 loc) · 1.55 KB
/
ubuntu-kernel-build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
###################################################################
# Easily build a kernel for Ubuntu-based distributions. #
# #
# NOTE: #
# Substitute version (currently set for v5.6) by replacing the #
# appropriate version you want to build by going to kernel.org #
# and finding the one you want. Very simple. #
###################################################################
mkdir ~/linux-kernel-build
cd ~/linux-kernel-build
wget -c https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.6.tar.xz
cd linux-5.6
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6/0001-base-packaging.patch
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6/0004-debian-changelog.patch
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6/0005-configs-based-on-Ubuntu-5.6.0-6.6.patch
patch -p1 <0001-base-packaging.patch
patch -p1 <0004-debian-changelog.patch
patch -p1 <0005-configs-based-on-Ubuntu-5.6.0-6.6.patch
chmod a+x debian/rules
fakeroot debian/rules clean
fakeroot debian/rules do_extras_package=false do_tools=false binary-headers binary-generic
###################################################################
# END #
# This script will only build the kernel; you have to install it #
# on your own which is even simpler than building it. #
###################################################################