Dear all

I am trying to cross compile MadWiFi 0.9.2.1 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/2.6.16.21-0.25-smp/build SUBDIRS=/root/Desktop/madwifi-0.9.2.1 modules
make[1]: Entering directory `/usr/src/linux-2.6.16.21-0.25-obj/i386/smp'
make -C ../../../linux-2.6.16.21-0.25 O=../linux-2.6.16.21-0.25-obj/i386/smp modules
  CC [M]  /root/Desktop/madwifi- 0.9.2.1/ath/ah_osdep.o
cc1: error: unrecognized command line option "-mthumb"
cc1: error: unrecognized command line option "-mlittle-endian"
make[5]: *** [/root/Desktop/madwifi- 0.9.2.1/ath/ah_osdep.o] Error 1
make[4]: *** [/root/Desktop/madwifi-0.9.2.1/ath] Error 2
make[3]: *** [_module_/root/Desktop/madwifi-0.9.2.1] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux- 2.6.16.21-0.25-obj/i386/smp'
make: *** [modules] Error 2
I am not sure if it is because of compiler version or any other factors. What are your opinions?
Thanks

Truly
YY