<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>
<DIV><SPAN class=574460716-02122009><FONT face=Arial 
size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=574460716-02122009><FONT face=Arial size=2>how do I establish 
what build options I need to compile a driver module for my ARM 
processor?</FONT></SPAN></DIV>
<DIV><SPAN class=574460716-02122009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=574460716-02122009><FONT face=Arial size=2>I currently have a 
working kernel (2.6.30) running on an Atmel AT91SAM9G20-EK and I'm able to 
compile a simple application in Eclipse simply by pointing the compiler and 
linker commands to the appropriate cross-compiler path with some very basic 
compiler options.&nbsp; I can also download to the target and 
run.</FONT></SPAN></DIV>
<DIV><SPAN class=574460716-02122009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=574460716-02122009><FONT face=Arial size=2>However, when I come 
to try to build a simple loadable driver module (does nothing but print a kernel 
message), I get all sorts of build errors.&nbsp; I believe I'm missing a lot of 
options - things like __KERNEL__ and __LINUX_ARM_ARCH__ etc.&nbsp; There is a 
makefile in ~/linux-2.6.30/arch/arm but it's geared towards building the kernel 
(I think) and it is extremely hard to pick out exactly what I 
need.</FONT></SPAN></DIV>
<DIV><SPAN class=574460716-02122009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=574460716-02122009><FONT face=Arial size=2>Dave 
W.</FONT></SPAN></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>