I am trying to compile madwifi Release 0.9.4 for MIPS EL 32-bit platform using mipsel-linux-gcc (GCC) 4.1.2 (ebs 20070215). While trying to make the source code the following error is reported:
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /home/anees/p453/kernel_starter_kit/ SUBDIRS=/home/anees/p453/miniPCI/madwifi-0.9.4 modules
make[1]: Entering directory `/home/anees/p453/kernel_starter_kit'
CC [M] /home/anees/p453/miniPCI/madwifi-0.9.4/ath/if_ath.o
mipsel-linux-gcc: unrecognized option '-EL'
/home/anees/p453/miniPCI/madwifi-0.9.4/ath/if_ath.c:1: error: -mips2 conflicts with the other architecture options, which specify a mips32r2 processor
make[3]: *** [/home/anees/p453/miniPCI/madwifi-0.9.4/ath/if_ath.o] Error 1
make[2]: *** [/home/anees/p453/miniPCI/madwifi-0.9.4/ath] Error 2
make[1]: *** [_module_/home/anees/p453/miniPCI/madwifi-0.9.4] Error 2
make[1]: Leaving directory `/home/anees/p453/kernel_starter_kit'
make: *** [modules] Error 2
I have set up the Cross compiler and kernel path appropriately. The kernel I'm using is 2.6.22.14. Can anyone help me figure out what is wrong ?
-- anees