Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1591717imm; Tue, 10 Jul 2018 04:45:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpesHXUtSdd5BY7udK2OSPNj/Q3QLg1tmGyNRI5Cc9u5YmPjGMOwrFBXcS/c9WkRUXOXgeqE X-Received: by 2002:a17:902:8c95:: with SMTP id t21-v6mr15508553plo.306.1531223122638; Tue, 10 Jul 2018 04:45:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531223122; cv=none; d=google.com; s=arc-20160816; b=M3x+yPuM4oWStU2sfz7DIee+oSZi0vI5NAhU0aRpa3TfOnBXoO8skd1dlYDg/lEMr+ bBwkaDqxJbkyhair4K6QJVEPwbxP7hSC3cyARMFdwrzXl7ldt+BYj8XvvOT+R6/xE1f4 yggIXT20RPYjvX+SPAADflz3TcAsD11pKD1UKwAgFQEEhqXoHJr2p6HwByJ7VSQlKtka GAx+Bl2RoojjzJkj7ywoMhYk3LKZcwaiRUGYOOAkcaB9drSGq+4WZ7aqvI77e7pLHvZz IORQxU2hYVZu+OHBxynXyII/3PYgr7BmSaudTM099Hi2ABY3Ra/Du3ukylGYCk7i5Qhb RRbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=+AfRxVJpycmBJr/UA9o1HgocRIYoq6mPJkDx0OZLjBs=; b=deXwhP6akh36npi99S0MCu4nA5WAPl0iKXVCnbIBaDNrbWEbzpyiYfS7ovP+qWQL2W 3WYES5CzLqqCUlDZ3WueRaHTZ0b8i1rJlsCae0fV8HJe7AZ6z9yFqu2Cl7EllKXrgG80 mDxQ29c08r31JL0VvS8gsNBFFteqvUjpbAC/FiZT31kez6xJyxfzXIT0uF7byp3PDgQU Oz40IQ7SDhldY7dD/vLTXMjryBdxScoLTeQO+2xn2HZdoCRC4u6f5mZyODMJjVkUadua QlbZkGfBRi3Ns/ms6Pbt2/Q/OpRtK0CHuRzfUpyRE8YiV3fLynXSk8YdgOS/K6X7cZ88 gl0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gouders.net header.s=gnet header.b=G7DmXxmT; 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 x5-v6si791573pgg.75.2018.07.10.04.45.07; Tue, 10 Jul 2018 04:45:22 -0700 (PDT) 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=@gouders.net header.s=gnet header.b=G7DmXxmT; 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 S933311AbeGJLnI (ORCPT + 99 others); Tue, 10 Jul 2018 07:43:08 -0400 Received: from services.gouders.net ([141.101.32.176]:57227 "EHLO services.gouders.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932710AbeGJLnH (ORCPT ); Tue, 10 Jul 2018 07:43:07 -0400 Received: from localhost ([193.175.198.193]) (authenticated bits=0) by services.gouders.net (8.14.8/8.14.8) with ESMTP id w6ABYD9Q019341 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 10 Jul 2018 13:34:14 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gouders.net; s=gnet; t=1531222454; bh=vcc6INzz65UroB/xi3pojtcCibnRgd3Pem2GZu87BB4=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=G7DmXxmT/8JPB1mnHrKsH2WfqSF7C+lMx1ccYbrzd5D47XiSzRdSlxv+GmKp55Yx8 f5xK2cEB2zxWIvUSi5IiwC6OHTm/N1+agZkenG/27UCZcLiXzMtIZBt42txX8JTSvZ /lT5X3/MetZ4w7u//2+EOAVPvA0p6n8g1Ltt72JQ= From: Dirk Gouders To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Ulf Magnusson , Linus Torvalds , Sam Ravnborg , Michal Marek , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 00/12] kbuild/kconfig: do not update config during installation In-Reply-To: <1530758389-30862-1-git-send-email-yamada.masahiro@socionext.com> (Masahiro Yamada's message of "Thu, 5 Jul 2018 11:39:37 +0900") References: <1530758389-30862-1-git-send-email-yamada.masahiro@socionext.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Date: Tue, 10 Jul 2018 13:34:10 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Masahiro Yamada writes: > The main motivation of this patch series is to suppress the syncconfig > during running installation targets. > > V1 consisted of only two patches: > https://patchwork.kernel.org/patch/10468105/ > https://patchwork.kernel.org/patch/10468103/ > > I noticed that installation targets would continue running > even if the source tree is not configured at all > because the inclusion of include/config/auto.conf was optional. > > So, I added one more patch in V2: > https://patchwork.kernel.org/patch/10483637/ > > However, kbuild test robot reported a new warning message was displayed: > > Makefile:592: include/config/auto.conf: No such file or directory > > This warning is displayed only for Make 4.1 or older. > > To fix this annoying warning, I changed Kconfig too, > which leaded to more clean-up, improvements in Kconfig. > > So, V3 is a big patch series. Hello Masahiro, I tested your series for a while, now. I did not notice real issues with it but want to leave some remarks about what I noticed in the surroundings of your patches. > Masahiro Yamada (12): > kconfig: rename file_write_dep and move it to confdata.c I might be missing some trivial use-case, but when looking at this patch, I noticed an inconsistency with the file names auto.conf and auto.conf.cmd. The first can be modified by an environment variable but when this happens, auto.conf.cmd remains as is. I noticed that only the Documentation mentions that KCONFIG_AUTOCONFIG exists and confdata.c uses it to serve the file name -- no other use anywhere. Now, I am wondering if I just don't see an important case when the use of KCONFIG_AUTOCONFIG is really helpful or even mandatory. > kconfig: split out helpers to check file/directory, create directory > kconfig: remove unneeded directory generation from local*config > kconfig: create directories needed for syncconfig by itself > kconfig: make syncconfig update .config regardless of sym_change_count For this patch, I already mentioned that `conf --help' perhaps could be updated. On the other side, none of the entries there tells us such details, so there is probably no need for syncconfig to do so. > kconfig: allow all config targets to write auto.conf if missing > kbuild: use 'include' directive to load auto.conf from top Makefile > kbuild: add .DELETE_ON_ERROR special target > kbuild: do not update config when running install targets > kbuild: do not update config for 'make kernelrelease' > kbuild: remove auto.conf and tristate.conf from prerequisites In the surrounding of this patch I noticed -include of auto.conf and tristate.conf in scripts/Makfile.modbuildin. I tried it in some ways but was not able to trigger that file being used with a missing auto.conf. On the other hand, if I now manually remove tristate.conf, that would not be fixed or even noticed, because of -include and I wonder if it is safer to also change the -includes in that file. It seems, if one of those files is missing, one must have done it manually or some other serious issue is present that we probably want to notice. Dirk > kbuild: replace include/config/%.conf with include/config/auto.conf > > Makefile | 46 +++++++++------ > scripts/Kbuild.include | 3 + > scripts/kconfig/Makefile | 16 ++--- > scripts/kconfig/conf.c | 39 +++++++------ > scripts/kconfig/confdata.c | 139 +++++++++++++++++++++++++++++++++++++------- > scripts/kconfig/gconf.c | 1 + > scripts/kconfig/lkc.h | 1 - > scripts/kconfig/lkc_proto.h | 2 +- > scripts/kconfig/mconf.c | 1 + > scripts/kconfig/nconf.c | 1 + > scripts/kconfig/qconf.cc | 2 + > scripts/kconfig/util.c | 30 ---------- > 12 files changed, 182 insertions(+), 99 deletions(-)