From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753820AbdHOK5b (ORCPT ); Tue, 15 Aug 2017 06:57:31 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:35597 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753780AbdHOK53 (ORCPT ); Tue, 15 Aug 2017 06:57:29 -0400 X-IronPort-AV: E=Sophos;i="5.41,377,1498492800"; d="scan'208";a="23602193" To: Masahiro Yamada CC: Michal Marek , "linux-kernel@vger.kernel.org" , Linux Kbuild mailing list From: Cao jin Subject: special handle of scripts/kconfig/zconf.tab.o Message-ID: <5992D4DF.2080405@cn.fujitsu.com> Date: Tue, 15 Aug 2017 19:02:55 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.167.226.69] X-yoursite-MailScanner-ID: 2B57D472438F.A6B70 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: caoj.fnst@cn.fujitsu.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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