[PATCH] Cross compile 0.2.5 on arm 2.6.X
Jouni Malinen
jkmaline
Mon Nov 29 21:38:04 PST 2004
On Mon, Nov 29, 2004 at 06:07:34PM -0800, Jean Tourrilhes wrote:
> 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...
Thanks!
Hmm.. I think it'll be simpler to just include asm/io.h to all
hostap_{cs,plx,pci} modules whether it is really needed or not. There
should not be any need to limit this to 2.6.x either.
I would assume hostap_cs.c ended up including this file either because I
needed it at some point for one of my target platforms that do not have
PCI bus.. Alternatively, it may have something to do with external
pcmcia-cs compilation.
> 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...
I'm assuming you mean using kernel Makefile or not with
in/out-of-kernel.. I believe I have cross-compiled it
out-of-tree many times. However, nowadays I use kernel Makefiles for all
builds, so I wouldn't be too surprised if the Host AP makefile would not
handle something properly. If you meant linked-in-kernel without using
modules, then you can of course ignore this part ;-).
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list