User`s guide
Chapter 19 Source RPM: Building OVN Host Drivers 363
■ Dependencies: kernel-devel RPM
In this scenario, all of your kernel source and devel-headers/objects should be
located inside the path /lib/modules/`uname -r`/build. This symbolic link is the
default location for the xsigo-hostdriver src-rpm to look for the kernel source
directory.
Command sequence procedure:
Build Option 2: Custom Kernels
Source RPMs are available by request from Oracle Customer Support. If you will be
building a source RPM, contact Oracle Customer Support, who will provide
instructions for obtaining the image and can provide assistance with using the
source. You will need to provide Oracle Customer Support with some basic
information For more information, see “Required Information for Contacting
Customer Support” on page 368.
Be aware of the following:
■ Tested Environments: 2.6.16, 2.6.18.1 (mainline)
■ Dependencies: Complete compiled kernel tree
When compiling your own kernel and drivers, you will need to retain both the
kernel source tree and some of the binary files. Often, when you install your kernel,
it will make the symbolic link /lib/modules/`uname -r`/build. If this is not the case,
you will need to export the location of the kernel prior to running rpmbuild.
Command sequence procedure:
This procedure will override the default kernel location.
# rpm -ivh xsigo-hostdrivers-kmod-linux_<#version>-1.src.rpm
# rpmbuild -bb /usr/src/redhat/SPECS/xsigo-hostdrivers.spec
# rpm -ivh xsigo-hostdrivers-kmod-linux_<#version>-1.src.rpm
# export ksrc=/root/linux-2.6.18.1
# rpmbuild -bb /usr/src/redhat/SPECS/xsigo-hostdrivers.spec