Received: by 10.223.185.116 with SMTP id b49csp3608448wrg; Tue, 6 Mar 2018 01:50:47 -0800 (PST) X-Google-Smtp-Source: AG47ELsf4MwW5cYFyVJvMfxjCP+6F4cHfr2wV1g0M5dvT9wRYiVl7r9B2IdaaI1Ky/DZzQSj8UK6 X-Received: by 10.99.160.80 with SMTP id u16mr14476995pgn.389.1520329847828; Tue, 06 Mar 2018 01:50:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520329847; cv=none; d=google.com; s=arc-20160816; b=dXrCDXou3vGdkbBFRxiGd4a8xx7p/m4CKEK5drSVPqVx1uStpPbRE2lZn6cAAql770 QZ5uzlPhxPVDXnyhyfPogQbU45snr30E3dsffBB4O5rJRT4fXALRckzdVN192x6GJpVz SA2mM4FuuFfKyyZV/zIBfyuaOdEHpBLrvXEZQE/pehKal+vDubye0QGJL2UiNTBlmTRT lw3umP+ODgCKM1pmq0TjXgr8AjzBQ33gwkkOq4qUmTFGTZ7k5HkmgbLb3c5kYx7tG7hF W0l9Uwhl266V62Sb33kQDpBcPM8GbN2tUzk/OfEGjUQ5zlXwhmlCqbTF6bWP+FZInA91 2GAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=7DQtV5LHUWWXDHcXehU3+QQtifVU+mWFyvFQ1BgemJY=; b=P8gVZqE2YHkM1x+w9gKOlzOMseIwcWqJvARhQz4v0tapVPOno3uEEw8p/20gUsSqgn XNiaI206ZruvcjUSQrKhGiYcFuIK8H4g8Ufd+S0/PPpGU7O5CU3hoQHt9JebIHVaej6X hcR7YKogsLfIkEsuz3ACVCJSFz2+2Ixz7aA9jQiR4noetRdmrmRa1CWKyh5ObYNmy7/c 5pBYk6WBKoAhQMNW6mr1bmE6+JEQ2cyTLqg5Atub9euR3OmcD+SQ/Filwkf+IIpizEUb PlJOa8OtZfUgRA1Z9379wJe6OsMS4H9tqtZodNcHD7Ck1LOcD05cqDMy3UEV/XRQADdT WFzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JyqTsRXB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z134si11641017pfc.27.2018.03.06.01.50.33; Tue, 06 Mar 2018 01:50:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JyqTsRXB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753392AbeCFJtL (ORCPT + 99 others); Tue, 6 Mar 2018 04:49:11 -0500 Received: from conssluserg-02.nifty.com ([210.131.2.81]:29854 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750859AbeCFJtJ (ORCPT ); Tue, 6 Mar 2018 04:49:09 -0500 Received: from mail-vk0-f53.google.com (mail-vk0-f53.google.com [209.85.213.53]) (authenticated) by conssluserg-02.nifty.com with ESMTP id w269n5J9021712; Tue, 6 Mar 2018 18:49:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com w269n5J9021712 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1520329746; bh=7DQtV5LHUWWXDHcXehU3+QQtifVU+mWFyvFQ1BgemJY=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=JyqTsRXBRcKNMOtZ1llnDLMN3PNIBulsBdlF5tCXPOjad02USA3dJNwnfC7TygEK+ pBiXC/LycENALuTUzTbmZHE9+zxjrYjJDDOBh0ld2d4jrm2knJXBJEhmZ0Ynai+wdG SlGRPKLt/vPA/E3aMFEQ4Vk/SJ38tggdIk78a5RotXWE5VsJBdTf/9S33k+l3MJbzx PzjDTQrZ3ZPh/ipWSY2hIeZJF0hz5clWZ3tSckcLljnquc0OK0bqcvfgPiq9nyK8Ee 3XZ3SGbUuhSuFvEzcN2W7sjIN8onmTbFscF0G6YefFfuegITJGScG5e+Fc0kXecyIw WosjR6pESc6QQ== X-Nifty-SrcIP: [209.85.213.53] Received: by mail-vk0-f53.google.com with SMTP id s1so11882064vke.5; Tue, 06 Mar 2018 01:49:06 -0800 (PST) X-Gm-Message-State: APf1xPCq1qUoMF8Ft1Mz6pENmJEezNhIeFui1XAfAMyD5jwTwjeHZG9t ci6bnBKCSh7riOSCnLh+b+zo9N+0baWB7S2QMdM= X-Received: by 10.31.201.70 with SMTP id z67mr12410930vkf.154.1520329745280; Tue, 06 Mar 2018 01:49:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.32.138 with HTTP; Tue, 6 Mar 2018 01:48:24 -0800 (PST) In-Reply-To: References: <1519776926-30459-1-git-send-email-yamada.masahiro@socionext.com> <1519776926-30459-6-git-send-email-yamada.masahiro@socionext.com> <20180228051525.a2vouqs6djnd2cnf@huvuddator> <20180301111801.gdhoam4kqrbqnasv@huvuddator> From: Masahiro Yamada Date: Tue, 6 Mar 2018 18:48:24 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kconfig: remove redundant streamline_config.pl prerequisite To: Ulf Magnusson Cc: Linux Kbuild mailing list , Marc Herbert , Sam Ravnborg , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-03-02 0:23 GMT+09:00 Ulf Magnusson : > On Thu, Mar 1, 2018 at 3:39 PM, Masahiro Yamada > wrote: >> 2018-03-01 20:18 GMT+09:00 Ulf Magnusson : >>> The local{yes,mod}config targets currently have streamline_config.pl as >>> a prerequisite. This is redundant, because streamline_config.pl is a >>> checked-in file with no prerequisites. >>> >>> Remove the prerequisite and reference streamline_config.pl directly in >>> the recipe of the rule instead. >>> >>> Signed-off-by: Ulf Magnusson >>> --- >>> scripts/kconfig/Makefile | 4 ++-- >>> 1 file changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile >>> index 1f74336d4e23..58be52cb464d 100644 >> >> >> Thanks! Almost good. >> >> Just small nits. >> >> >>> --- a/scripts/kconfig/Makefile >>> +++ b/scripts/kconfig/Makefile >>> @@ -77,9 +77,9 @@ silentoldconfig: $(obj)/conf >>> touch include/generated/autoksyms.h >>> $< $(silent) --$@ $(Kconfig) >>> >>> -localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf >>> +localyesconfig localmodconfig: $(obj)/conf >>> $(Q)mkdir -p include/config include/generated >>> - $(Q)perl $< --$@ $(srctree) $(Kconfig) > .tmp.config >>> + $(Q)perl $(obj)/streamline_config.pl --$@ $(srctree) $(Kconfig) > .tmp.config >> >> >> >> '$(src)/streamline_config.pl' is better than '$(obj)/streamline_config.pl' >> since it is a checked-in file. >> >> '$(src)' and '$(obj)' are always the same. >> (https://github.com/torvalds/linux/blob/master/scripts/Makefile.build#L6) >> >> >> So, there is no effective difference. >> It is just a coding convention to use $(obj)/ for generated files, >> and $(src)/ for source files. >> >> The original code already used $(obj)/, so this is not your fault >> but I want to fix it while we are here. >> >> >> >> One more nit. >> >> $(obj)/conf $(silent) --silentoldconfig $(Kconfig); >> >> can be >> >> $< $(silent) --silentoldconfig $(Kconfig); >> >> >> I guess you did not touch this line to avoid >> conflict with my patch. > > Yep, plus I wanted to keep the patch focused. Applied to linux-kbuild/kconfig. Thanks! I changed [1] $(obj)/streamline_config.pl -> $(srctree)/$(src)/streamline_config.pl Mandatory change to avoid out-of-tree build error [2] $(obj)/conf -> $< Clean-up -- Best Regards Masahiro Yamada