# Set up and apply patches
mkdir patches
# put the patch to patches/
quilt new patches/file.patch
quilt pop -a && quilt push -a
make menuconfig
make deb-pkg -j$(nproc) LOCALVERSION=-custom
Ubuntu configs
curl '<https://kernel.ubuntu.com/~kernel-ppa/config/focal/linux/5.4.0-66.74/amd64-config.flavour.generic>' -o .config
make olddefconfig
Disable dbgsym compilation
Compile linux kernel deb-pkg target without generating dbg package?
scripts/config --disable DEBUG_INFO
Disable Canonical certificates
scripts/config --set-str SYSTEM_TRUSTED_KEYS ""
Compiling 5.4 with newer binutils