File: README.rst

package info (click to toggle)
dpdk-kmods 0~20230205%2Bgit-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 244 kB
  • sloc: ansic: 1,746; makefile: 14; sh: 9
file content (58 lines) | stat: -rw-r--r-- 1,002 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Building Out-of-Tree Kernel Drivers for Linux
=============================================

Prerequisites
-------------

The system must have relevant Linux kernel headers or source code installed.


Build
-----

To build ``igb_uio`` driver, simply run ``make`` command
inside the ``igb_uio`` directory:

.. code-block:: console

   cd igb_uio
   make

If compiling against a specific kernel source directory is required,
it is possible to specify the kernel source directory
using the ``KSRC`` variable:

.. code-block:: console

   make KSRC=/path/to/custom/kernel/source


Load
----

.. note::

   These commands are to be run as ``root`` user.

The ``igb_uio`` driver requires the UIO driver to be loaded beforehand.
If ``uio`` is not built-in:

.. code-block:: console

   modprobe uio

Then the out-of-tree driver may be loaded.

.. code-block:: console

   insmod igb_uio.ko


Clean
-----

To clean the build directory, the following command can be run:

.. code-block:: console

   make clean