<DIV>Rick,</DIV>
<DIV>Thanks for explaining. Is there some sample makefile which ahieves this trick somewhere on teh web? I just downloaded ATMEL code from sourceforge to find if they have some clues. </DIV>
<DIV>--Prasad<BR><BR><B><I>Rick Stevens <rstevens@vitalstream.com></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Fred Fedora wrote:<BR>> Rick,<BR>> Thanks for the reply. Should the module code be physically located <BR>> inside the kernel source tree(/usr/src/linux-kernel-version??)?<BR>> I had a module built outside kernel tree on 2.4. Things compiled OK. I <BR>> want to check itout (using the same make commands) on 2.6 and I get <BR>> bunch of errors.<BR>> Is irq_vectors.h automatically picked by kernel using some variable?<BR><BR>If the module's source is designed correctly, it'll look for the kernel<BR>headers it needs by looking at /lib/modules/`uname -r`/build. Under<BR>2.4, this is generally a symlink to the actual kernel source directory.<BR>In 2.6, it's typically a directory that contains all of the necessary<BR>source (headers and whatnot) to build your module.<BR><BR>The trick is that the module MUST be designed with 2.6 in mind. A quick<BR>search for the!
 file you
 have problems with lists four "irq_vectors.h"<BR>files based on the basic system architecture, "mach-default",<BR>"mach-visws, "mach-voyager" and "mach-pc9800". The module's Makefile<BR>must understand this to grab the right file.<BR><BR>So providing the module is 2.6-aware, yes, you should be able to build<BR>your module outside the kernel source tree. I know it works as I've<BR>built several drivers that way (for example, the atmel driver for<BR>atmel-based wireles LAN cards).<BR><BR>> */Rick Stevens <RSTEVENS@VITALSTREAM.COM>/* wrote:<BR>> <BR>> Fred Fedora wrote:<BR>> > Is module compilation diffrent for 2.6 kernel from 2.4? I am get<BR>> tons of<BR>> > erros.<BR>> > Any hints?<BR>> > (irq_vectros.h not found etc. are my errors).<BR>> <BR>> 2.6 kernel building is a lot different. Your best bet is to do it<BR>> from ground zero:<BR>> <BR>> # cd /usr/src/linux-whatever<BR>> # make mrproper<BR>> # make xconfig -or- m!
ake
 gconfig -or- make menuconfig<BR>> (load an existing config file or set things up as you wish)<BR>> (save this new config)<BR>> # make<BR>> <BR>> ----------------------------------------------------------------------<BR>> - Rick Stevens, Senior Systems Engineer rstevens@vitalstream.com -<BR>> - VitalStream, Inc. http://www.vitalstream.com -<BR>> - -<BR>> - Squawk! Pieces of Seven! Pieces of Seven! Parity Error! -<BR>> ----------------------------------------------------------------------<BR>> <BR>> <BR>> -- <BR>> fedora-list mailing list<BR>> fedora-list@redhat.com<BR>> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list<BR>> <BR>> ------------------------------------------------------------------------<BR>> Do you Yahoo!?<BR>> Take Yahoo! Mail with you! <BR>> <HTTP: maildemo mobile.yahoo.com *http: taglines mail us.rd.yahoo.com><BR>> Get it on your mobile phone.<BR>> <BR><BR><BR>--
 <BR>----------------------------------------------------------------------<BR>- Rick Stevens, Senior Systems Engineer rstevens@vitalstream.com -<BR>- VitalStream, Inc. http://www.vitalstream.com -<BR>- -<BR>----------------------------------------------------------------------<BR><BR><BR>-- <BR>fedora-list mailing list<BR>fedora-list@redhat.com<BR>To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list<BR></BLOCKQUOTE><p>
                <hr size=1>Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/mail/taglines/*http://promotions.yahoo.com/new_mail/static/ease.html">Yahoo! Mail Address AutoComplete</a> - You start. We finish.