Received: by 10.223.185.116 with SMTP id b49csp7558893wrg; Thu, 1 Mar 2018 07:25:25 -0800 (PST) X-Google-Smtp-Source: AG47ELuqgOAN9ElSgVIPRnGuxG8Onc/InmicLEo2YIHUuOmiRn/d1zH5+crzULgSQptCFwF4EwNU X-Received: by 10.99.139.199 with SMTP id j190mr1865172pge.334.1519917925368; Thu, 01 Mar 2018 07:25:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519917925; cv=none; d=google.com; s=arc-20160816; b=Iy+WfBwnqay1u68Rd4/nIFnYkVL6AyluB5mj2tTNHu25yzjt8g+XxA6ywSBvFH1v2N qcJRWiW/TLPHg6C3c3a41Ni43WZnd1HBmspZNu0H89fbn7Cq/pA57Cens0BHv0B6Jaer 6D292OoLi6zmZGAUklW/CkLEj465FJr0EwFhg3O0eMyALgRIH06wbxa7F1YShY2ZWtWW ei7PWCKf3oJuqZVJgKra1B5efDRQSmB7OLxnSejXjKSLznQNgsKsrHSfnn5z/eIrPf0W EwEmfoSsFmhyAGqGj5H04cyarSoWHejwSAWqQQgVPZYfsS0bx+i6poUagvyKoEQXhyJb I34w== 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 :arc-authentication-results; bh=E8FO7ffhgLwnIyGZeQ2h8YKh7rnrU9HXFzGsS7cmhno=; b=hExXH9H0QBrqg3WiyPyfUU84uA46YU1JU69Q+Q2rN0yvmrhXBu7pBCZ+sKr+jm1bnk p9TWcs+FFEFR0MUKE+nzqbAu9SA+4Vj/b1AtWuopH6RtlemPpQDVgcFItCXmF91m1kUw pcEZQwQ4BHwlnXVm6bze35sVXl0S9d8gIPAr0vhGxxwoOdHI1Zhko2XhkiSimvFmiip6 W9dvV5+pRaZvvBElAuAecQetPkCOHQpON8oG1mmU3WcoAc6QAEDg/UU5zsRdyoMybih/ 1LJGfTlJOKaAulyX71PoOJ8YiEWUEkLuWqB0wfkEBW4jTZHEfnIgAvQFSBminSUBoFbG KL+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OcnL298f; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x23si135609pfh.355.2018.03.01.07.25.10; Thu, 01 Mar 2018 07:25:25 -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=@gmail.com header.s=20161025 header.b=OcnL298f; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031919AbeCAPXk (ORCPT + 99 others); Thu, 1 Mar 2018 10:23:40 -0500 Received: from mail-vk0-f65.google.com ([209.85.213.65]:42741 "EHLO mail-vk0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031893AbeCAPXf (ORCPT ); Thu, 1 Mar 2018 10:23:35 -0500 Received: by mail-vk0-f65.google.com with SMTP id y127so3882094vky.9; Thu, 01 Mar 2018 07:23:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=E8FO7ffhgLwnIyGZeQ2h8YKh7rnrU9HXFzGsS7cmhno=; b=OcnL298fSyYRmBmemgFOkb25AUCWugYUQw/A64zicv4eAndQuSWhee+Gpk7Kiim2Ux tbFP6r4iPq09g0m9/qiiKlGTzL/gZTSO0XdjQH1OZB3KMwTUecAj30szKa1enn1p6Sgw /vKFesnilnWID+zlgopKLtv5a01Y06i/IgQvm59FUVxthAmYEH7fu9yA8pAZVccNB1on tG3/HLsLzZfb4AnQX77SklkYeBvNa9uHn0yFOMhybJ7KO6P6TldtSbdAWSlFPlZjZSOh Rthm1EQBG1DHTHfS9YUyfteJZqWPhh+0orS2u0jc2ErsF9c4BV/FhkClO6igxefqXdfu 3p4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=E8FO7ffhgLwnIyGZeQ2h8YKh7rnrU9HXFzGsS7cmhno=; b=SrP/O5cntrGsQ7XoTCsdooJ8FFv5NV8fyPPofl/pUAsDUY6WcAQ/d1Hych1H0kgRF2 aEMfyn1kAcE7KWbUTwdytVykzbdsMePH0H04WBuHlLuSP1wOye1iWAUEoBUf8EHCjAYL LJbWOr/CkAzxhDCVCSwMXN/uSZvRveitcRt2TxoSh3/PuQmtAC7ALalWUPpPegZ2cKrc AK97NCujYqeJBzmcZ42o8vEv4fpsGtifMHf90FWf61RJ8cVO8zyj1kVsvb0vFzTz8qRt uindZOqLskA+P0ITBq/KTTrIMDwLl7kjbIYGWBGGqckdzKHO6kUcqoohq75CdjOid0gl wJYg== X-Gm-Message-State: APf1xPABOB0xCkXDNmxzzOCOa911U09YHvbPN6wuQNn5F+DqXoXa6z7/ quPS+cLk3jfP0VJHaoYSQybaN8RpDDg9blMPIkTeFA== X-Received: by 10.31.201.70 with SMTP id z67mr1432601vkf.154.1519917814423; Thu, 01 Mar 2018 07:23:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.220.145 with HTTP; Thu, 1 Mar 2018 07:23:33 -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: Ulf Magnusson Date: Thu, 1 Mar 2018 16:23:33 +0100 Message-ID: Subject: Re: [PATCH] kconfig: remove redundant streamline_config.pl prerequisite To: Masahiro Yamada 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 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. > > > > If you agree those two, shall I fix it up > when I apply it? That's fine by me. I'll assume less sanity from the existing code from now on. :) > > > > > >> $(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 Thanks, Ulf