Commit d306e777 authored by Ophélie Gagnard's avatar Ophélie Gagnard

kernel-compilation: Add basic script for downloading and compiling the linux kernel.

parent 899baa9d
kversion=5.10.157
nproc=32
apt -y build-dep linux
mkdir -p compilation && cd compilation
wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-"$kversion".tar.xz
tar -xaf linux-"$kversion".tar.xz && cd linux-"$kversion"
make olddefconfig
make menu config
./scripts/config -d CONFIG_MODULE_SIG_ALL -d CONFIG_MODULE_SIG_KEY -d CONFIG_SYSTEM_TRUSTED_KEYS
./scripts/config -d CONFIG_DEBUG_INFO
make deb-pkg -j"$(nproc)" LOCALVERSION=-"$(dpkg --print-architecture)" KDEB_PKGVERSION="$(make kernelversion)-1"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment