参考README文件中的相关部分
Building for external kernels
----------------------------------
If you have a kernel you do not have installed but yet want to build the
compat-wireless-2.6 drivers for it you can use this syntax:
make KLIB=/home/mcgrof/kernels/linux-2.6.23.9 KLIB_BUILD=/home/mcgrof/kernels/linux-2.6.23.9
If you have a kernel installed, which is not your currently running kernel (e.g. via
distro updates; plus its corresponding kernel-dev package), you can use this syntax:
make KLIB=/lib/modules/2.6.30.6-53.fc11.x86_64
and to install to your system's root path for the non-running kernel:
make KLIB=/lib/modules/2.6.30.6-53.fc11.x86_64 KMODPATH_ARG='INSTALL_MOD_PATH=' install
对于友善之臂提供的2.6.32的内核源代码来说,make的命令行大概长这个样子:
make ARCH=arm CROSS_COMPILE=arm-linux- KLIB=/path/to/root_qtopia/lib/modules/2.6.32.2-FriendlyARM KLIB_BUILD=/path/to/linux-2.6.32.2
其中,/path/to/root_qtopia/lib/modules/2.6.32.2-FriendlyARM是开发板目标文件系统中内核模块的安装目录,相当于PC上的/lib/modules/2.6.XX; /path/to/linux-2.6.32.2是2.6.32.2内核源代码目录,相当于PC上的/lib/modules/2.6.XX/build所指向的目录。