Commit 12160d3d authored by Ophélie Gagnard's avatar Ophélie Gagnard

Remove kernel-compilation in root directory.

parent 06194117
kversion=5.10.157
nproc=32
apt -y build-dep linux
mkdir -p compilation && cd compilation
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 menuconfig
./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