Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / packaging / RedHat / openafs-README
CommitLineData
805e021f
CE
1The files in the src directory are covered by the IBM Public License
2and the SUN ONC RPC license, with are included in the files
3LICENSE.IBM and LICENSE.Sun in the same directory as this README.
4
5There are two ways to build the AFS kernel module on the local system:
6Building an RPM and Building Manually
7
8
9 REBUILDING FROM SOURCE RPM
10 --------------------------
11
12The first (and preferred) way to build a kernel module is to build an
13openafs-kernel RPM from the OpenAFS Source RPM. To do this you can
14just use "rpm --rebuild" from the Source RPM (SRPM) and specify that
15you want to build a module and the target CPU. For example:
16
17 rpmbuild --rebuild --define "build_modules 1" --target=i686
18
19You MUST specify the target CPU or it will not build the correct
20module for your system.
21
22For more information on all the various options for rebuilding your
23kernel module via RPM, run:
24
25 rpm -qi openafs
26
27This will explain all your options for controlling your build.
28
29
30 REBUILDING MANUALLY
31 -------------------
32
33The second method to build a kernel module is to build it manually
34from source. You really should just build the RPM, but if you really
35don't want to you can do it this way instead.
36
37To build the AFS kernel module on a local system, run:
38
39 ./configure
40 make
41
42When it's done, the binary module will be src/MODLOAD-XXX/libafs-XXX.o
43(or .ko), where "XXX" is your linux kernel version. Note that it may
44also compile as src/MODLOAD-XXX/openafs.ko.
45
46You must manually install this module on your system. To do this you
47generally copy the file to /lib/modules/XXX/openafs.o:
48
49 cp src/MODLOAD-XXX/libafs-XXX.o /lib/modules/XXX/openafs.o
50
51Then you need to tell your system about the new kernel module by
52running "depmod -ae XXX" to run the module dependencies for kernel
53version "XXX".