Needed packages for PopOS (Ubuntu?):
sudo apt-get install build-essential bc kmod cpio flex libncurses5-dev libelf-dev libssl-dev bison dwarves zstd
Fetching kernel sources:
wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.4.tar.xz
tar Jxvf linux-5.15.4.tar.xz
cd linux-5.15.4
Using existing config to configure kernel:
cp /boot/config-`uname -r` .config
make oldconfig
Change lines with debian
certs in .config
:
CONFIG_SYSTEM_TRUSTED_KEYS=""
CONFIG_SYSTEM_REVOCATION_KEYS=""
And make deb
package:
make -j`nproc` bindeb-pkg