Dear all

I am trying to cross compile MadWiFi to a ARM9 32 bit embedded system with Linux Kernel Version 2.6.9

My host computer is Acer 5670 running Suse10.1 with kernel 2.6.16 and gcc 4.1.0

There are two problems troubling me.

1. I do not know how to indicate a KERNELPATH other than the host machine kernel 2.6.18....

2. If I ignore the kernel version thing for the time being, and just do
"make TARGET=arm-le-thumb-elf" this is the error message I have got:
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/ SUBDIRS=/root/Desktop/madwifi- modules
make[1]: Entering directory `/usr/src/linux-'
make -C ../../../linux- O=../linux- modules
  CC [M]  /root/Desktop/madwifi-
cc1: error: unrecognized command line option "-mthumb"
cc1: error: unrecognized command line option "-mlittle-endian"
make[5]: *** [/root/Desktop/madwifi-] Error 1
make[4]: *** [/root/Desktop/madwifi-] Error 2
make[3]: *** [_module_/root/Desktop/madwifi-] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-'
make: *** [modules] Error 2
I am not sure if it is because of compiler version or any other factors. What are your opinions?