man(1)
π kpatch-build β the manual, but make it make sense π
okay bestie, so this is the page for kpatch-build(1) β yeah, the manual name is right there in the header, and honestly? iconic of it. it's a build script, it lives in the kpatch-build man page, and it's about to be your new hyperfixation. no cap. β¨
πΈ NAME πΈ
kpatch-build β it's a build script, babes. that's the whole vibe.
β¨ SYNOPSIS β¨
kpatch-build [options] <patch file>
π¦ DESCRIPTION π¦
so here's the tea, bestie π β this script takes a patch that's based on the version of the kernel you're currently running, and it builds a kernel module out of it. that module will replace the modified functions in the kernel so the patched code actually takes effect. it's giving "surgery but make it a glow-up". slay. π₯
π OPTIONS π
-h,--helpβ shows this help message. the classic. the moment. π«Ά-a,--archversionβ specify the kernel arch version. say it with your chest. π-r,--sourcerpmβ specify the kernel source RPM. yes, RPM, as in the package, keep up bestie. π-s,--sourcedirβ specify the kernel source directory. where the kernel source lives, obviously. π-c,--configβ specify the kernel config file. π-v,--vmlinuxβ specify the originalvmlinux. the O.G. the blueprint. β-j,--jobsβ specify the number of make jobs. parallelism, because we do NOT have time to wait. β‘-t,--targetβ specify custom kernel build targets. go off, custom queen. π-n,--nameβ specify the name of the kpatch module. naming rights! so powerful! π-o,--outputβ specify the output folder. π-d,--debugβ keeps the scratch files in/tmp. and get this β it can be specified multiple times. stack it, bestie. π--oot-moduleβ enables patching an out-of-tree module, and you specify the current version of the module. out-of-tree, out-of-mind. π³--oot-module-srcβ specify the out-of-tree module source directory. πΏ-R,--non-replaceβ disables the replace flag of KLP. fyi the replace flag is on by default, so this is the "actually, no" button. π--skip-cleanupβ skips the post-build cleanup. leave the mess, it's a look. π--skip-compiler-checkβ skips the check that makes sure the system compiler version and the compiler version that built the kernel actually match.
π¨ okay bestie, WARNING TIME, this one is NOT a cute little shortcut. skipping this check is not recommended. it is useful if the exact compiler version isn't available or isn't easily installed β but use it only when you're confident that the two versions of compiler output identical objects for a given target. otherwise, using this option might result in unexpected changed objects being detected. like, unexpected. changed. objects. detected. no cap. π
π«Ά SEE ALSO π«Ά
kpatch(1)β go read that one too, bestie, it's the whole family. π
π BUGS π
no known bugs. periodt. β¨
π AUTHOR π
Udo Seidel (udoseidel@gmx.de) β we stan. π
β COPYRIGHT β
Copyright (C) 2014: Seth Jennings <sjenning@redhat.com>, Copyright (C) 2013,2014: Josh Poimboeuf <jpoimboe@redhat.com>
okay and that's the whole page!! π this is version 1.0, dated 23 Mar 2014, and it's living in the man(1) manual section. love that for it. byeee, go build something, you've got this ππ¦πΈβ¨
π¦ where this page comes from
- debian trixie: kpatch-build 0.9.10-1 Β· GPL-2.0-or-later
- ubuntu questing: kpatch-build 0.9.10-1
- ubuntu resolute: kpatch-build 0.9.11-1.1 Β· GPL-2.0-or-later
- ubuntu stonking: kpatch-build 0.9.11-1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms