User`s guide
362 XgOS User’s Guide • September 2014
Environment Variables
When building the drivers, you might need to override some default locations and
values. These values are set through environment variables. See the following table.
There are several build options:
■ “Build Option 1: Stock Kernels” on page 362
■ “Build Option 2: Custom Kernels” on page 363
■ “Build Option 3: Kernel With Upgraded OFED Stack” on page 364
■ “Build Option 4: Combination of Customer Kernel and Upgraded OFED Stack”
on page 365
Build Option 1: Stock 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: RHEL4, RHEL5
Variable Description
kversion This environment variable can be set to specify the kernel version you would like to
build the Oracle host drivers for. The default value for this is the kernel you are
currently running with (e.g. uname -r).
ksrc This environment variable can be set to point to the directory of where the kernel
development headers and symbol files are located. The default directory is based on
where the kernel headers are for your running kernel (e.g.
/lib/modules/${kversion}/build).
XSIGOFLAGS This environment variable can be set to specify additional flags to the compiler such
as additional include paths and build parameters. Typically used to specify the
additional include paths for OFED installations which are not part of the kernel
source tree (e.g. export XSIGOFLAGS=" -I/usr/src/ofa_kernel/include").
Note that XSIGOFLAGS is automatically set through one of the external scripts when
OFED is installed.