This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
README
48 lines (27 loc) · 1.49 KB
/
README
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
Building the software
./do-update-makerpm.sh -S ${PWD} -w ${PWD}/tmp
To build with vnic, use the command
Note: at this time, this is only operational on RHEL 7.5
./do-update-makerpm.sh -V -S ${PWD} -w ${PWD}/tmp
To build the CUDA version
./do-update-makerpm.sh -G -S ${PWD} -w ${PWD}/tmp
Before running the CUDA builds, make sure the CUDA packages are installed
on your machine. Also export the following directories
SLES 12.2
export NVIDIA_GPU_DIRECT=${NVIDIA_GPU_DIRECT:-/usr/src/kernel-modules/nvidia-367.48-default}
SLES 12.3
export NVIDIA_GPU_DIRECT=${NVIDIA_GPU_DIRECT:-/opt/nvidia/NVIDIA-Linux-x86_64-384.66-diagnostic/kernel}
RHEL 7.3 and 7.4 and 7.5
For CUDA version 8.0
export NVIDIA_GPU_DIRECT=${NVIDIA_GPU_DIRECT:-/usr/src/nvidia-367.48}
For CUDA version 9.1
export NVIDIA_GPU_DIRECT=${NVIDIA_GPU_DIRECT:-/usr/src/nvidia-387.26}
Make sure you clear out the tmp directory before rebuilding
Once the SRC RPM is created, build the binary RPM from ./tmp/rpmbuild directory execute the following command
rpmbuild --rebuild --define "_topdir $(pwd)" --nodeps SRPMS/*.src.rpm
Self-signing kernel modules
---------------------------
To self-sign kernel modules, set the environment variable "KERNEL_SIGNING_SCRIPT" to a custom script to
perform the signing. The script should call the kernel-supplied sign-file script/program and use custom
public and private keys. It shall be called from the spec file with one argument, the ko file to sign,
inside a for-loop that will sign all ko modules generated.