Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1429314imm; Thu, 12 Jul 2018 01:32:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpccbGq8VTQ6uUCaSXfLj4dItfEmv3fvW+V5ZYd/Lql/dsMBKGusSRusguk6F9D02+5XNpwo X-Received: by 2002:a62:f206:: with SMTP id m6-v6mr1347423pfh.171.1531384335735; Thu, 12 Jul 2018 01:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531384335; cv=none; d=google.com; s=arc-20160816; b=LOnjmschn2coJdY+gAyGvZ2J17Bzq46fTgf266nSo0U9+0B2l/oiDJ3ztFLxEtBTDf zqvFHyZhFZbeVoMJ0AlhAgJIODZQVhvD2T26e8oEvqK8fLCpmBrTmciDWmfVYrCSZAmX Dva5vYTtvfEHNtFBxZczSst6sh0LTQgIHEUp1BY9/Rj4yqrnZ2XY9Llt2w2RkWDVynC6 YrQefveILKFPDrpOAIvWbNOuFDWJI/VESD8ryf0Xsa/2PjSKHfLFca324S5nNnwG+T8y RYCTSSr/tU0AeWiVmU0MydkqISVGstjR8ZrXAabvRK2hCvgjQWcdKZcMpnYSwsZsT4Et 4dlw== 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=Rqr8jNvD++vIVW53T0qm/9JjN4HOScRPb87CHUq8Ef0=; b=YrqO9zDdUI5mWAJTvCd/OJTEbfyQ8bCozoR0I23QW6Nfauj4tLMIN9FmeVUo3ieQTL X/2vjSFmS5iRQ4jBo7rGc67HaURZzKYdzn4fKa33TUb1Hv58cAk3liB3faTdUnn8Rtzo nh1NNudVRU1zm4iF2ZFhilXYPztqDBIHjef/FdWXqRsIMSmRb/x8Qv0ae2jYWoc+KxsC Rn0fMm0sXoVbG9m11g74P3Ns7hkRL768SPxqmhccMkmXjQOlJoyG6RYZpUJEbQjcbCio eCBxqrUz2PziApd+fiwt+VF254dzTxCoNChhOA8H6yW43695506d/hGW1X+hZEgvwLE8 cuqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=UpUlLYqR; 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 b8-v6si21749394plb.125.2018.07.12.01.31.59; Thu, 12 Jul 2018 01:32:15 -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=@nifty.com header.s=dec2015msa header.b=UpUlLYqR; 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 S1726845AbeGLIjO (ORCPT + 99 others); Thu, 12 Jul 2018 04:39:14 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:42235 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725845AbeGLIjO (ORCPT ); Thu, 12 Jul 2018 04:39:14 -0400 Received: from mail-ua0-f178.google.com (mail-ua0-f178.google.com [209.85.217.178]) (authenticated) by conssluserg-03.nifty.com with ESMTP id w6C8UUVZ000327; Thu, 12 Jul 2018 17:30:31 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com w6C8UUVZ000327 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1531384231; bh=Rqr8jNvD++vIVW53T0qm/9JjN4HOScRPb87CHUq8Ef0=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=UpUlLYqRdFt68j9X/hdV/ycYB1aQgqxvS5O/Y1f8E8TuKsx2GN2vpwlYxQwuPycLY +bVEAN+SUOrvgOB6BB/6ILR7TwGPUhMCv30FAtXOw0VZMmiUaEfi24+x9UVx23KCRQ lgYCfS4/rjdgQpURgeAeCQf6HX3VcVg0N6rd8Ax6Rl47gt6UNt5h33lPdRTOtNU6/1 xmdzA/aatsiVob74A0kqpAS26H9c13Z6oJITI1dSNsO8WF3ZOU1LLIxyao5uYzwDdU nbpi4gEP8wFzDBluIltDsABsp1EFM7UnN0tj03eFxGygwjqkZPlF/o6lODNmeSiP4E HJ1r7uYL1JRhQ== X-Nifty-SrcIP: [209.85.217.178] Received: by mail-ua0-f178.google.com with SMTP id u8-v6so17914048uao.4; Thu, 12 Jul 2018 01:30:31 -0700 (PDT) X-Gm-Message-State: AOUpUlEt77o4L4Ix5ylv7wgjY2JoB5eyRhf1X/wDwmTEVKm/0/ojfpjq wAPzhEAUZdKFLmDVm+cnvMKwjHw1wv59bWqLPXA= X-Received: by 2002:ab0:e3:: with SMTP id 90-v6mr696992uaj.52.1531384229997; Thu, 12 Jul 2018 01:30:29 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:3308:0:0:0:0:0 with HTTP; Thu, 12 Jul 2018 01:29:49 -0700 (PDT) In-Reply-To: References: <1530758389-30862-1-git-send-email-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Thu, 12 Jul 2018 17:29:49 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 00/12] kbuild/kconfig: do not update config during installation To: Dirk Gouders Cc: Linux Kbuild mailing list , Ulf Magnusson , Linus Torvalds , Sam Ravnborg , Michal Marek , 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-07-10 20:34 GMT+09:00 Dirk Gouders : > 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. Indeed. I had also noticed this. Probably, replacing the hardcoded 'include/config/auto.conf.cmd' with get_env('KCONFIG_AUTOCONFIG') + 'cmd' will be nice. I did not touch it since it thought it was less important for this patch set. If you are willing to contribute to this, a patch is welcome (after this series). > 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. I do not know the historical background, but I guess predecessors wanted to implement Kconfig as generic/flexible as possible. > >> 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. What do you want 'conf --help' to look like ? > 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. Right. auto.conf and tristate.conf are mandatory there. '-include' should be replaced with 'include'. Cater to send a patch? > 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. You are right. If somebody removes tristate.conf on purpose, it is not self-healing. I should be fixed by itself, or at least it should fail with clear message. I will reconsider this. Thanks. > 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(-) > -- > 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