Skip to content

Commit

Permalink
README: More complete "Build requirements"
Browse files Browse the repository at this point in the history
  • Loading branch information
solardiz committed Oct 25, 2023
1 parent d5077fd commit ea1454c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
19 changes: 11 additions & 8 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -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.

For example, under Debian and Ubuntu you can install all of these with:

sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install make gcc libelf-dev linux-headers-$(uname -r)

Red Hat'ish (e.g. RHEL, CentOS, Fedora) distributions call this package
kernel-devel, which you can install with:
and under Red Hat'ish distributions (e.g. RHEL, CentOS, Fedora) with:

sudo yum install kernel-devel
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.)
Expand Down

0 comments on commit ea1454c

Please sign in to comment.