-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME-REF
More file actions
38 lines (28 loc) · 1.08 KB
/
README-REF
File metadata and controls
38 lines (28 loc) · 1.08 KB
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
34
35
36
37
38
# Update upstream to most recent LTS version
```sh
git switch linux-6.6.y-ref
git remote add kernel.org https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
git fetch kernel.org
git rebase kernel.org/linux-6.6.y
```
# Build the kernel
```sh
# Switch into the custom kernel source tree
cd ref-linux
# Install the dependencies needed for building the Linux kernel
sudo apt install build-essential bison flex bc lz4 libssl-dev debhelper libelf-dev pahole
# Copy the current kernel config and use it as a starting point for the new kernel.
cp /boot/config-<...> .config
# Disable kernel signing
scripts/config --disable CONFIG_SYSTEM_TRUSTED_KEYS
scripts/config --disable CONFIG_SYSTEM_REVOCATION_LIST
scripts/config --disable MODULE_SIG_KEY
# Set default values for config attributes not found in the copied config.
make olddefconfig
# Add custom suffix to the kernel's name
scripts/config --set-str CONFIG_LOCALVERSION 'ref'
# Build the kernel as .deb package. The files will be located in the parent directory.
make -j$(nproc) bindeb-pkg
# Install the packages
dpkg -i linux-*.deb
```