All of lore.kernel.org
 help / color / mirror / Atom feed
* special handle of scripts/kconfig/zconf.tab.o
@ 2017-08-15 11:02 Cao jin
  2017-08-19 12:42 ` Masahiro Yamada
  0 siblings, 1 reply; 5+ messages in thread
From: Cao jin @ 2017-08-15 11:02 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: Michal Marek, linux-kernel, Linux Kbuild mailing list

Masahiro-san,

I have a question about make *config. In scripts/kconfig/Makefile, there
is following statement:

$(obj)/zconf.tab.o: $(obj)/zconf.lex.c $(obj)/zconf.hash.c

and the $(obj)/zconf.{tab,hash,lex}.c match the rule in Makefile.lib:

$(obj)/%: $(src)/%_shipped
        $(call cmd,shipped)

and cmd_shipped just transform the _shipped file to .c via `cat`.

And zconf.tab.c includes several *other* .c files which make the whole
process a little obscure, because there are not corresponding .o files
for the *other* .c files.

My questions is: Does this special handling has other meanings that I
may miss? Or just legacy.

Because a straightforward way in my mind would be:

rename zconf.{tab,hash,lex}.c_shipped to zconf.{tab,hash,lex}.c, then
has following in the Makefile

common-objs := zconf.tab.o zconf.hash.o zconf.lex.o util.o etc...
conf-objs := conf.o $(common-objs)

-- 
Sincerely,
Cao jin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-08-21  3:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-15 11:02 special handle of scripts/kconfig/zconf.tab.o Cao jin
2017-08-19 12:42 ` Masahiro Yamada
2017-08-19 14:54   ` Sam Ravnborg
2017-08-19 15:01     ` Sam Ravnborg
2017-08-21  3:36   ` Cao jin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.