Commit 7f8c707d authored by Ophélie Gagnard's avatar Ophélie Gagnard Committed by Ophélie Gagnard

kernel-compilation: Include every module in the kernel.

parent d306e777
......@@ -4,9 +4,11 @@ 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"
if [ ! -f linux-"$kversion".tar.xz ]; then
wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-"$kversion".tar.xz
tar -xaf linux-"$kversion".tar.xz
fi
cd linux-"$kversion"
make olddefconfig
make menu config
......@@ -14,4 +16,8 @@ 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
# include every modules in the kernel
cp .config .config.backup
sed -i 's/=m$/=y/g' .config
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