lkml.org 
[lkml]   [2006]   [May]   [29]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: How to check if kernel sources are installed on a system?
FromArjan van de Ven <>
DateMon, 29 May 2006 09:01:10 +0200
On Mon, 2006-05-29 at 00:57 -0600, Brian F. G. Bidulock wrote:
> Arjan,
> 
> On Mon, 29 May 2006, Arjan van de Ven wrote:
> > external modules shouldn't care, they really really should inherit the
> > cflags from the kernel's makefiles at which point.. the thing is moot.
> 
> Yes, and ultimately the kernel's makefile (if present) are the best
> place to get CFLAGS from.  However, the task of ensuring that the
> correct Makefile is present and that the correct configuration
> information is feeding it (back to .config) is distribution specific
> and not always straightforward.

eh dude what are you thinking? Documentation/kbuild very much gives you
a FULLY standardized way of doing this. On all distributions.
The only tricky part is finding the build tree, for the current kernel
that is
/lib/modules/`uname -r`/build
(as per Linus' decree from like 4 to 5 years ago)
for non-current kernels that's a bit more complex, so just ask the user.
Once you have that the rest comes for free.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-29 09:04    [from the cache]
©2003-2008