man(1)

πŸ“¦
version 0.9.11 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 original vmlinux. 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 (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