Received: by 10.223.185.116 with SMTP id b49csp7513315wrg; Thu, 1 Mar 2018 06:46:35 -0800 (PST) X-Google-Smtp-Source: AG47ELs0nRcyDJfO5I9lgyA6EdKx1KYbWK5e0izmpQTgijyP0Lxl9z2QvPvlZZZI6OxodjR4tK/o X-Received: by 10.101.86.73 with SMTP id m9mr1786505pgs.70.1519915594980; Thu, 01 Mar 2018 06:46:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519915594; cv=none; d=google.com; s=arc-20160816; b=HoWxsTHRd+Npl0DJcVGTwxYMxWJ22ut45g8qP1AncNs/sTqpHm9EmZHxf3Zejd570I Xd5/3bZ7Yxs5jXGTUYoADb048oYkfMZk2V073fmKjV9PuUIRGqJho5iat7y8bSshQXGG IRrTlXRfigzSD8CjHDNUUIzc1fUUvEvf/85hSD6XIaJhknKGfwQOg8mYaqFAyuoWkeUu o3kyb1vR6NGc4c51Ptd1Pgp9NUPvNctc1BA+aXCgSjl0w49bZzEcX70qnEYAh34kcW55 ZUTTjwef3NEe6DXkAHw3XwGDdaLp2f+eJNB/1305r+NyIc5PVIQ5GE3OPg7VYWO6rcmf PAdQ== 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=/HJIi93TWfgRtYlKtDCb0n0bVCFqlBSm0XfvMhpBit0=; b=Sp2ukF3efAZsuR5uyjGHt+o3fTK0nxXp+VXD5qxivMO8SEDG0KYBZCP0GIr6hZJKqv V5WWr4QC/hY13ZP5Vu246V0tXCvmaBr88FdfNztSioPU84FL5iwQynSrBXHmVHDOKKoa d304Qjwzgpq2nzMfdw15kzPuqPXoaEpUezknM5liZiC8AE2PRldkhm2Syk8YolEapqel C6oNG1ey8sQWTavgNskQIDPzZ4Ky/hAM/3esd0odrNLglbLsgg3tMgXqjsNwVyrY6n1W GrZ85hzIWUxZt+ikBwp9IwxyoIRpJsTMIKdoHZ7zFqHeSSt4MI5npp8wQajHE2NR3Unk ymKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=bKmRP4nX; 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 3-v6si1374789pla.678.2018.03.01.06.46.18; Thu, 01 Mar 2018 06:46:34 -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=bKmRP4nX; 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 S1031572AbeCAOpg (ORCPT + 99 others); Thu, 1 Mar 2018 09:45:36 -0500 Received: from conssluserg-04.nifty.com ([210.131.2.83]:24752 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031447AbeCAOpf (ORCPT ); Thu, 1 Mar 2018 09:45:35 -0500 Received: from mail-ua0-f175.google.com (mail-ua0-f175.google.com [209.85.217.175]) (authenticated) by conssluserg-04.nifty.com with ESMTP id w21EjJaD008605; Thu, 1 Mar 2018 23:45:19 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com w21EjJaD008605 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1519915519; bh=/HJIi93TWfgRtYlKtDCb0n0bVCFqlBSm0XfvMhpBit0=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=bKmRP4nXzhEvsRjdAqzEBlbmj0IboJyrpp9peGK/ofmuFCy/VZce/aui/OaxzIIS2 3F8EAzBhY3QzDA8/LHrw7GGG3ezkCqIe/QYKXtqdEOo+pUxyX3wdtBRpTP29CcB9UF pQOao1wgLrbGphUXRJC3uMImeWYJop2tPrXW+tKMB5ANGhAh66n3j6EqkGCIHGQS2T Df70T/a7jiGLYbqqEVJOojuEw+KXnxz8FdkTJcyG/RueG/bmfukzVz8r+FgYtIgUpW wQdS0HdQrDTZSInIxiEZpZvgZtrFglC7UZhFBf6MSLzCU+77vzFRms78iCOpX0GjVg RkbVoQS3RGCjg== X-Nifty-SrcIP: [209.85.217.175] Received: by mail-ua0-f175.google.com with SMTP id c14so4005411uak.7; Thu, 01 Mar 2018 06:45:19 -0800 (PST) X-Gm-Message-State: APf1xPBG5+aGeagirG2f9qc5rQ6zi9ewivjM/B7/jjatoJEVh1OyliP5 ydIy4F9NHqDBl59K73REC7Parr0bK78efuKgcKA= X-Received: by 10.176.2.244 with SMTP id 107mr1308306uah.52.1519915518524; Thu, 01 Mar 2018 06:45:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.32.138 with HTTP; Thu, 1 Mar 2018 06:44:38 -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: Thu, 1 Mar 2018 23:44:38 +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 23:39 GMT+09:00 Masahiro Yamada : > 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. No. This is not a matter of taste, but a bug that must be fixed. This patch breaks out-of-tree build. If O=... is given, it is error. $ make O=foo localyesconfig make[1]: Leaving directory '/home/masahiro/workspace/linux-yamada/foo' masahiro@grover:~/workspace/linux-yamada$ make O=foo localyesconfig make[1]: Entering directory '/home/masahiro/workspace/linux-yamada/foo' GEN ./Makefile Can't open perl script "scripts/kconfig/streamline_config.pl": No such file or directory ../scripts/kconfig/Makefile:46: recipe for target 'localyesconfig' failed make[2]: *** [localyesconfig] Error 2 /home/masahiro/workspace/linux-yamada/Makefile:521: recipe for target 'localyesconfig' failed make[1]: *** [localyesconfig] Error 2 make[1]: Leaving directory '/home/masahiro/workspace/linux-yamada/foo' Makefile:146: recipe for target 'sub-make' failed make: *** [sub-make] Error 2 The right fix is $(srctree)/$(src)/streamline_config.pl -- Best Regards Masahiro Yamada