On Wed, Dec 22, 2010 at 13:30, Elvis Dowson <elvis.dowson@xxxxxxx> wrote: Hi, I have a quick question. I downloaded the http://www.orbit-lab.org/kernel/compat-wireless-2.6-stable/v2.6.37/compat-wireless-2.6.37-rc6-3.tar.bz2 The information contained in this link mentions: http://linuxwireless.org/en/users/Download/stable/ "You need kernel headers to compile compat-wireless. Ensure /lib/modules/$(uname -r)/build/ exists and points to the location where the kernel headers are installed. If you do not have them, read your distribution's documentation on getting help." I have Ubuntu 10.04 as host, but I'm using a cross compiler for the OMAP3530 ARM target, and the kernel directory exists in a separate folder. How do I tell the build system to use my cross compiled kernel libraries and headers, and not pick up the host /lib/modules kernel headers? export CROSS_COMPILE=arm-none-linux-gnueabi- May be also export ARCH=arm i.e. how can I cross compile and build compat-wireless for the ARM target on the host machine? cd /path/to/compat-wireless-2.6.32-rc5 copy appropriate configuration file to /path/to/compat-wireless-2.6. 32-rc5/.config May also need to add configuration ./scripts/driver-select <driver-name> make sudo make install It may be works without `sudo '. If you want all modules also make modules_install INSTALL_MOD_PATH=${NFSROOT} where NFSROOT is your directory to prepare filesystem for target Best regards, Elvis Dowson -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Gery -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html