Tuesday, June 12, 2007

wlan-ng and wcf11/12

Well, apparently cross compiling wlan-ng for arm is not as simple as it looks. For one the configure script does not prompt for the option altogether and one can manually add it in. The trick is that apparently when making that option is ignored. After looking up errors on google I ended up compiling the damn thing with:

make ARCH=arm CFLAGS+=$(call cc-option,-mapcs-32,$(call cc-option,-mabi=apcs-gnu),) $(call cc-option,-mno-thumb-interwork,) CC=/home/timur/C++/gumstix-buildroot/build_arm_nofpu/staging_dir/bin/arm-linux-gcc LD=/home/timur/C++/gumstix-buildroot/build_arm_nofpu/staging_dir/bin/arm-linux-ld

What should be used and does not require other adjustments is:
make ARCH=arm CROSS_COMPILE=arm-linux-

This does not result in any errors, assuming kernel source and the cross compiler are available. If only it were mentioned somewhere :)
Compile with the same cross compiler as the kernel, otherwise strange errors may appear when loading the modules

No comments: