Installing the SCSI Miniport Driver
Building the Driver Into the Kernel
SCSI Functionality
Once you have installed the source files, you can build the driver into the kernel.
1. Enter the following commands:
2. Edit the Makefile and the lpfc.conf.c files, if needed.
3. Enter the following command to change the directory to the Linux source:
4. Edit Rules.make and remove "$(sort and the matching closing parenthesis
5. Edit the Makefile under the drivers directory:
6. Add a check for $(CONFIG_SCSI_LPFC) to add scsi/lpfc to the directory
7. Add the following line:
42
# mkdir /usr/src/linus/scsi/lpfc
# find . -print | cpio -pdumv /usr/src/linux/drivers/scsi/lpfc
# cd /usr/src/linux/drivers/scsi/lpfc
# cp Makefile.kernel Makefile
# cd /usr/src/linux/
from this line:
subdir-list = $(sort $(patsubst %,_subdir_%,$(SUB_DIRS)))
The edited line should now display as follows:
subdir-list = $(patsubst %,_subdir_%,$(SUB_DIRS))
Note:
For some 2.4 based kernels, this will allow the scsi/lpfc Makefile to be
invoked BEFORE the scsi Makefile.
# cd /usr/src/linux/drivers
# vi Makefile
lists before $(CONFIG_SCSI) adds scsi to the directory lists. The scsi/lpfc
Makefile should be invoked BEFORE the scsi Makefile. Edit the following
lines:
subdir-$(CONFIG_IDE) += ide
subdir-$(CONFIG_SCSI) += scsi
subdir-$(CONFIG_SCSI_LPFC) += scsi/lpfc
Host Bus Adapter for Windows and Linux Installation Guide