Re: how to build only portions of the source tree?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 14 May 2007, Rajat Jain wrote:

> Hi,
>
> > http://www.kernel.org/pub/linux/kernel/people/gregkh/lkn/lkn_pdf/ch04.pdf
> >
> > and read the page numbered "27", the section entitled "Building Only a
> > Portion of the Kernel,"  can someone provide the commands to do those
> > things that actually work?  at this point, i'm convinced that those
> > commands just don't function as advertised.  thanks.
> >
>
> Are you sure you are not missing any thing? It is working like a charm
> at my end. I'm trying this:
>
> make ARCH=mips CROSS_COMPILE=mips_4KC- drivers/serial/
>
> And voila!

first of all, note that you're using a trailing slash in the directory
name, while the example in the book doesn't.  that was my first issue
-- i think that slash is *required*.  so, technically, what you're
doing is "working like a charm" only because you're not actually
reproducing what's in the book.

and, second, the command in the book to build a single module just
flat-out doesn't work.  if someone can suggest how to compile a single
module out of the source tree, i'd like to see how that works.

rday

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux