[PATCH] Cross compile 0.2.5 on arm 2.6.X

Jean Tourrilhes jt
Mon Nov 29 18:07:34 PST 2004

	Hi Jouni,

	I found the following problem cross compiling HostAP 0.2.5 for
the ARM platform. The in/out I/O functions are not resolved at
link/depmod time. On the ARM, they are #define, not actual functions.
	The attached patch fix that problem by including <asm/io.h>,
and the driver works fine. Obviously, you may want to do that
differently. The funny thing is that hostap_cs.c include that file,
while none of the other do...
	Note that this is for compilation in-kernel. I did not manage
to cross-compile out of kernel, it mixes ARM and i386 at ELF time, and
I'm stumped. As in-kernel works...
	Have fun...



diff -u -p --new-file linux-2.6.9-rc1/drivers/net/wireless-j2/hostap_compat.h linux-2.6.9-rc1/drivers/net/wireless/hostap_compat.h
--- linux-2.6.9-rc1/drivers/net/wireless-j2/hostap_compat.h	2004-11-29 14:47:11.000000000 -0800
+++ linux-2.6.9-rc1/drivers/net/wireless/hostap_compat.h	2004-11-29 14:53:05.000000000 -0800
@@ -1,6 +1,11 @@
+/* Cross compiling on ARM with 2.6.X require that - Jean II */
+#include <asm/io.h>

More information about the Hostap mailing list