It's been a long while since I compiled a module from outside of the kernel
tree, but I have some notes that state...
"You can build your module against the ts kernel header files by setting
the
"-isystem"
parameter to point to the directory containing the ts kernel.
for example.
arm-linux-gcc -D__KERNEL__ -DMODULE -isystem /path/to/tskernel/include/ \
-Os -c irq.c
"
You have to have installed a copy of the source of the kernel for which you
are building the module. You also have to compile the kernel so that
/path/to/tskernel/include/version.h exists, so that the module can be
loaded.
Hope that's helps.
On Tue, 26 Jun 2012, Damian wrote:
> Hello:
> I am using a ts-7260 with the standard Linux installed. I am also trying
> to compile a kernel modules using the crosscompiler offered by TS in an
> x86 architecture PC.I manage to create the module however when trying to
> compile it like this:
> -/home/damian/Desktop/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc
>
> gps_driver.c -o executable -lm -mcpu=arm9 -Wall
>
> I got the following error;
> /home/damian/Desktop/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux/sys-include/asm/arch/irqs.h:11:28:
>
> asm/mach-types.h: No such file or directory
>
> I follow the path described and there is no such file in the specified
> folder, however some of the incli=ude file make reference of it.
>
> I would like why that is happening.As always thank you all for any inputs
> Damian
>
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|