User`s guide
Chapter 19 Source RPM: Building OVN Host Drivers 365
Build Option 4: Combination of
Customer Kernel and Upgraded OFED
Stack
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.
Often, users will have both a custom kernel and an upgraded OFED stack. It is
important to make sure the following requirements are met:
1. The symbolic link /lib/modules/`uname -r`/build correctly points to the
kernel source tree.
2. Alternately, you can override the default kernel tree location by setting the ksrc
environment variable.
3. Set the XSIGOFLAGS environment variable to the appropriate path for the correct
OFED header path.
4. Make sure you work out the work queues and C syntax (typically set by kernel
version) and that the headers/API match the IB-API of the Oracle drivers. Some
combinations are included with patches.
Command sequence procedure:
Non-RPM Builds
# rpm -ivh xsigo-hostdrivers-kmod-linux_<#version>-1.src.rpm
# export ksrc='/root/linux-2.6.18.1'
# export kversion='2.6.18.1' (This value often matches uname –r)
# rpmbuild -bb /usr/src/redhat/SPECS/xsigo-hostdrivers.spec