The sample WinDriver\samples\pci_diag\kp_pci Kernel PlugIn directory and the generated DriverWizard Kernel PlugIn <project_dir>\kermode directory (where <project_dir> is the directory in which you selected to save the generated driver project) contain the following Kernel PlugIn project files (where xxx is the driver name – pci for the sample / the name you selected when generating the code with the wizard):
The sample WinDriver\samples\pci_diag directory and
the generated <project_dir>\ directory contain
the following project files for the user-mode application that drives
the respective Kernel PlugIn driver (where xxx
is the driver name – pci for the sample
/ the name you selected when generating the code with the wizard):
The MSDEV directories listed above also contain xxx_diag.dsw/.sln workspace/solution files that include both the Kernel PlugIn and user-mode projects.
To build your Kernel PlugIn driver and respective user-mode application, follow these steps:
From your driver project directory, open the generated workspace/
solution file – <project_dir>\
<MSDEV_dir>\xxx_diag.dsw/.sln,
where <project_dir> is your driver project directory
(pci_diag\ for the sample code / the directory in
which you selected to save the generated DriverWizard code),
<MSDEV_dir> is your target MSDEV directory
(msdev_2008 / msdev_2005 /
msdev_2003 / msdev_6) and
xxx is the driver name (pci for
the sample / the name you selected when generating the code with
the wizard).
Note that when selecting to generate code for the MSDEV IDE with the DriverWizard, the wizard automatically starts MSDEV and opens the generated workspace/solution file after generating the code files, unless you explicitly revoke this behavior by setting the "IDE to Invoke" option in the code generation dialogue to "None".
![]() | |
| To build the driver for multiple operating systems, select the lowest OS version that the driver must support. For example, to support Windows 2000, XP, and higher, select either (release mode) or (debug mode). |
Change directory to your Kernel PlugIn directory.
For example, when compiling the sample KP_PCI driver, run:
cd WinDriver/samples/pci_diag/kp_pci
When compiling the Kernel PlugIn driver for your generated DriverWizard
Kernel PlugIn code, run the following command, where <path>
represents the path to your generated DriverWizard project directory
(e.g. /home/user/WinDriver/wizard/my_projects/my_kp/):
cd <path>/kermode/linux/
configure
script:
./configure --disable-usb-support
![]() | |
The configure script creates a
makefile based on your specific running
kernel. You may run the configure script based on another kernel
source you have installed, by adding the flag
--with-kernel-source=<path> to the configure
script. The <path> is the full path to the kernel source directory,
e.g. /usr/src/linux.If the Linux kernel is version 2.6.26 or higher, configure
generates makefiles that use kbuild to compile the kernel
modules. You can force the use of kbuild on earlier versions of
Linux, by passing the --enable-kbuild flag to
configure.
|
make command.
For the KP_PCI sample driver:
cd ../LINUX/
For the generated DriverWizard Kernel PlugIn driver:
cd ../../linux/
make command.