Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Documentation/kbuild: Document gendwarfksyms build dependencies

Although dependencies for gendwarfksyms were recently added to the
packaging rules [1-2], the corresponding documentation was missing.

Document the required build dependencies for gendwarfksyms, and
include a few examples for installing these dependencies on some
distributions.

[1] commit 657f96cb7c06 ("kbuild: deb-pkg: Add libdw-dev:native to Build-Depends-Arch")
[2] commit 5bd6bdd0f76e ("kbuild: rpm-pkg: Add (elfutils-devel or libdw-devel) to BuildRequires")

Signed-off-by: Jihan LIN <linjh22s@gmail.com>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Link: https://patch.msgid.link/20260114-documents_gendwarfksyms-v2-1-297c98bd62c6@gmail.com
[nathan: Applied Petr's suggested changes from review and minor commit
message formatting adjustments]
Signed-off-by: Nathan Chancellor <nathan@kernel.org>

authored by

Jihan LIN and committed by
Nathan Chancellor
983233ac d4271702

+23
+23
Documentation/kbuild/gendwarfksyms.rst
··· 14 14 from the DWARF debugging information, which contains the necessary 15 15 details about the final module ABI. 16 16 17 + Dependencies 18 + ------------ 19 + 20 + gendwarfksyms depends on the libelf, libdw, and zlib libraries. 21 + 22 + Here are a few examples of how to install these dependencies: 23 + 24 + * Arch Linux and derivatives:: 25 + 26 + sudo pacman --needed -S libelf zlib 27 + 28 + * Debian, Ubuntu, and derivatives:: 29 + 30 + sudo apt install libelf-dev libdw-dev zlib1g-dev 31 + 32 + * Fedora and derivatives:: 33 + 34 + sudo dnf install elfutils-libelf-devel elfutils-devel zlib-devel 35 + 36 + * openSUSE and derivatives:: 37 + 38 + sudo zypper install libelf-devel libdw-devel zlib-devel 39 + 17 40 Usage 18 41 ----- 19 42