Looking to dissect kbuild
Eric Fowler
eric.fowler at gmail.com
Tue Jan 28 14:29:12 EST 2014
Thanks, Valdis.
I have found another way around my problem but the information is useful.
Eric
On Mon, Jan 27, 2014 at 1:27 PM, <Valdis.Kletnieks at vt.edu> wrote:
> On Mon, 27 Jan 2014 12:49:40 -0800, Eric Fowler said:
>
> > I want to know more about how that file interacts with the build system.
> In
> > particular, in situations like a build seeing a syntax error in foo.c, I
> > want to trace from foo.c all the way up to every entry in dot-config that
> > imports or depends on foo.c.
>
> You have that backwards. You want every entry in .config that foo.c depends
> on.
>
> Hint 1: For a given drivers/bar/foo.c, you want to take a quick peek
> at drivers/bar/.foo.o.cmd - that's what kbuild uses so 'make' can figure
> out what needs rebuilding
>
> Hint 2: Fiven the list of .c and .h files files that a given .o depends
> on, it becomes trivial to generate a list of CONFIG_* variables that are
> potentially referenced.
>
> Hint 3: It's almost always a problem with a missing declaration of
> 'frobozz'
> or whatever - at which point 'find include -type f | xargs grep frobozz'
> and
> then looking at what #ifdef's wrap the definition of frobozz is usually
> more
> productive....
>
--
cc:NSA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140128/79f24cef/attachment.html
More information about the Kernelnewbies
mailing list