README: More complete "Build requirements"

This commit is contained in:
Solar Designer 2023-10-25 22:54:53 +02:00
parent d5077fde52
commit ea1454c28d
2 changed files with 12 additions and 8 deletions

View File

@ -4,6 +4,7 @@ The following major changes have been made since LKRG 0.9.7:
of circumstances, and to use the "weak-modules" script if available so that
on RHEL and its rebuilds the same LKRG package build works across different
kABI-compatible kernel revisions/builds
*) More complete documentation of the build requirements
The following major changes have been made between LKRG 0.9.6 and 0.9.7:

19
README
View File

@ -53,19 +53,22 @@ To build LKRG, you will need the following software:
- GNU make
- A C compiler (ideally, the same that was used to build the kernel itself)
- GCC, ideally the same version of it that was used to build the kernel itself
(some people manage with clang, but this is unsupported, so expect issues)
- libelf, including its "development" sub-package, in case your target kernel
was built with CONFIG_UNWINDER_ORC=y
- A kernel build directory corresponding to the Linux kernel image the module
is to run on. For example, under Debian and Ubuntu, each linux-image package
containing a kernel binary has a corresponding linux-headers package with the
required build infrastructure, which you can install with:
is to run on.
sudo apt-get install linux-headers-$(uname -r)
For example, under Debian and Ubuntu you can install all of these with:
Red Hat'ish (e.g. RHEL, CentOS, Fedora) distributions call this package
kernel-devel, which you can install with:
sudo apt-get install make gcc libelf-dev linux-headers-$(uname -r)
sudo yum install kernel-devel
and under Red Hat'ish distributions (e.g. RHEL, CentOS, Fedora) with:
sudo yum install make gcc elfutils-libelf-devel kernel-devel
(For documentation purposes, we prefix commands requiring root access with
"sudo", but you may of course run them as root by different means.)