Received: by 10.223.185.116 with SMTP id b49csp7507926wrg; Thu, 1 Mar 2018 06:41:22 -0800 (PST) X-Google-Smtp-Source: AG47ELvliQJw/ueEO5tLNA6fbMiC84Ft9u4iPJUB9WbZZNhcvPtW6N+c8PgOsFWxCQULVBk/99xE X-Received: by 10.98.196.199 with SMTP id h68mr2184585pfk.42.1519915282577; Thu, 01 Mar 2018 06:41:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519915282; cv=none; d=google.com; s=arc-20160816; b=UPBYGvEqodTjRKEir3T84HAmypBBCvWLigra7tMu2MFUJ2MB0yMt8NPQcTCGGcC6E1 1oQHhLCXHVPRXwUETW8p6Wi0oJkTRu5exFhA+PhGiNjRIV2mTAy0hKJhR+4g51ZEsK4I xAlzB/mPrOhhnhFu1zloGmdOeRE/N+7PmfameU9IsBzxMPVnZEiqbSDxaKjuHwEJ0l8G P+7Muflz6ztvkq4uQuIC4VbxQ2R8745xZDeZwHOGpplOpO2nQDYAkAaDIPV6vcOKGRhp X2tTCFFITvUU26lIeDagPyIQEjVK6JlUAH9ZFfzY6CFpMb34xzkui+TY7rNeOhag2YW6 mL3g== 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=HZ9OQhhFeWOGOaQl2kD5sXtquLDKOUx0OObSxTWhlv8=; b=c2AFL0rTEJCGMeLT+bWseyIupRA81I8rCIP931CPiSEYpt9ZBYteoOsVyFbI0YLvor H7kduXh8S8oELLCRuJbLrTqs4H9z7ZuqSj9izTeML6iHIX+yzqD8zLtLSo1XyLucZhiw a9zUQUc86/j2v8eWQDZkn5cYT5P9hC4phkFjJoYuqnh5Ka+QvSkc8nboEgR+h5BxauvG 0p7KORU6aCRJjiBUbTeGyablJj/Y8xDgRoykdKUxEZ603YLZJZDcxX2bZH3zYEsvafL2 8Oh16JMXJuXWLHZf6gjSluiuVpAV435qvfI+ZOyTbQFfpMc6Kcc8UkBPcbTmEnxv/TC+ zS7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=YgGIS2jM; 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 b1si2529702pgn.191.2018.03.01.06.41.07; Thu, 01 Mar 2018 06:41:22 -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=YgGIS2jM; 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 S1031551AbeCAOkT (ORCPT + 99 others); Thu, 1 Mar 2018 09:40:19 -0500 Received: from conssluserg-06.nifty.com ([210.131.2.91]:51247 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031055AbeCAOkP (ORCPT ); Thu, 1 Mar 2018 09:40:15 -0500 Received: from mail-ua0-f178.google.com (mail-ua0-f178.google.com [209.85.217.178]) (authenticated) by conssluserg-06.nifty.com with ESMTP id w21Ee88c021057; Thu, 1 Mar 2018 23:40:09 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com w21Ee88c021057 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1519915209; bh=HZ9OQhhFeWOGOaQl2kD5sXtquLDKOUx0OObSxTWhlv8=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=YgGIS2jM5CgrTp+mmOcWq8xYQkVfFcDCIQ86Rhpg9+coUpwfYzowKF+joIoXzGAZ+ 9j5Na6Mifbdoed1w/OyJfiWI3kURwnJoJ/77TFIi2roW9e0bx1E/1dc9qvumGSm0BG r6uIMn3/qGgMTTSPalbyH8BYPxbbexH8cNI6cwHsGPQsCCsl1m429EYWyZ7acM71Vn nj19+ctP//b4s0is8QjVjNU7+9IlwBjZHePRMnlCV0sFYNFXPGRWVEXMbW2Bji1PAy g4NTO82za7FxqotqjEUzijXqsSB+IhzWGqI5Lxq16CDu85O8HfZo18Oyh98IdACbEV yoMvfaj2jZaUQ== X-Nifty-SrcIP: [209.85.217.178] Received: by mail-ua0-f178.google.com with SMTP id z3so3980895uae.12; Thu, 01 Mar 2018 06:40:08 -0800 (PST) X-Gm-Message-State: APf1xPCWGOtPsSYnWgT2aUDOjjDJ0ykf7rQvIu4o9RE97iKc+n6kwdhK PLmDRnXKpZUSUjs6eJ2N7SWbTemlViy+dBwn9rI= X-Received: by 10.176.49.84 with SMTP id e20mr1352050uam.141.1519915207886; Thu, 01 Mar 2018 06:40:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.32.138 with HTTP; Thu, 1 Mar 2018 06:39:27 -0800 (PST) In-Reply-To: <20180301111801.gdhoam4kqrbqnasv@huvuddator> 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: Thu, 1 Mar 2018 23:39:27 +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-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. If you agree those two, shall I fix it up when I apply it? > $(Q)if [ -f .config ]; then \ > cmp -s .tmp.config .config || \ > (mv -f .config .config.old.1; \ > -- > 2.14.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Best Regards Masahiro Yamada