November 2009 423
Each of these directories also contains a file named bostbase.a, which
is a library containing precompiled object files compiled for that
same kernel version, variant, and architecture.
The driver/linux/kernel directory contains files named kerndep.c,
kerndep.h, and makefile.kerndep.
Before building a Brooktrout driver for a patch version, install the
kernel source, the compiler, and other standard development tools
on the system.
¾
To build a driver for a kernel patch version, enter the following
at the command prompt:
make -f makefile.kerndep
This command performs several steps.
Determines what the base RedHat release is that the booted
kernel is based on, what the kernel version is that
corresponds to the base release, and what the variant and
architecture are.
Compiles the source file kerndep.c on the current booted
kernel setup.
Links the resulting object file with the bostbase.a file from
the directory corresponding to the base kernel version for the
current variant and architecture.
Puts the resulting driver binary into an appropriate kvers
subdirectory for the actual kernel version in use.
After compiling the driver, use the standard manual dinstall script
provided on the CD to manually configure the driver.
If the kernel source is not installed in a standard location, use the
optional KERNEL_SOURCE=<dir> command line option to specify
the kernel source location to the make utility.
For Red Hat Linux releases ES/AS 3.0 and earlier:
The kernel source is the package whose name is of the form
kernel-source-<version>, in the file kernel-source-<version>.i386.rpm.
This package is automatically installed if you tell the Linux
installation program to install everything.