Received: by 10.223.185.116 with SMTP id b49csp5794140wrg; Tue, 27 Feb 2018 21:42:45 -0800 (PST) X-Google-Smtp-Source: AH8x226cxxTzAmvfuDrq1HYzuQdIVWmHtM93/HacJK8b/BW5ph7YIBGdUh/RdxgIt6I1Yge8/g2G X-Received: by 10.101.83.194 with SMTP id z2mr13288147pgr.133.1519796565089; Tue, 27 Feb 2018 21:42:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519796565; cv=none; d=google.com; s=arc-20160816; b=s49HZzgD2JjNlvGalHms/6SPozkM+Helpzr4Pt+NGYr7+tnl7jW2cWoF541NifLWvl by3RUKQxEqamU9fvXqVTsvoPsImh5IoH3nJazajqh6MnAeBKzGVjue+XlGOky3WsPkuw mZCU6mpLC92KEzaXsLNG6WDmhZDeDmp2wc3vgto8U0O7SnC6PtRkoL6AkW5hlKD8h55B 2df9vw1/48BG8odNsEw8m2HfGVhW7xq200Mm8WkRCbAvOVxbrMzh8gcqIOdfd/dkkSJ+ VOrf3zTyMdlDq2qlVQ2ylATEg0lgNYxRVEf8EreHyA2RtghimqELVFLhBGN8wjPgPb2Y lzzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=6QDMv6AMLwplAY0KAwNcIsJap5rg+s0OZVdaFa5XPqc=; b=EmbxGUP6fv9xLcg1Y/UtBCMsHZMi8SIwi6Tj1UJPki/Kf+E61tvbFGqrW3dB25Wr4I PDSlD52b55DOzWEeG8Xs/7Tpn5/qXU/S7PmEddVNVVlR4wnNZ3CxJJZW+6Q2lR4v+pwY F3t3KT0vLasnzQR4Q3B49vUMoS5i4yStMjHh83Kk6QL5Tyvr452ZtMxjfE0dZHC9FwgD NYfnqVJR2m0Pj5UwNMa/GqsOwgZ0E0FJNDMmxSiA4haPzAdg/CULHEYvNrwFrfTaxl/u KsanUYGm8b0e3cj4ubl2vZ8NWVVpRbdhpA0e0dD8luQZB6wo7s06eRqPveKKYevve0op qttQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JNw68w5B; 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 z60-v6si711057plh.306.2018.02.27.21.42.29; Tue, 27 Feb 2018 21:42:45 -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=JNw68w5B; 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 S1751689AbeB1Flv (ORCPT + 99 others); Wed, 28 Feb 2018 00:41:51 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:44446 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751027AbeB1Flt (ORCPT ); Wed, 28 Feb 2018 00:41:49 -0500 Received: by mail-lf0-f65.google.com with SMTP id v9so1673693lfa.11; Tue, 27 Feb 2018 21:41:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6QDMv6AMLwplAY0KAwNcIsJap5rg+s0OZVdaFa5XPqc=; b=JNw68w5Bz2kLeTee1qbCbFXFLZpQ/BmZX2vV0tbEKbrHjw/Qsc/grarvXFjBBJaj+w hSlV3M8ZdDPI3j53nmd4e2jpk0kuqcZD7+rmnTGr06yZgA0vKAGvE+PyKHG2KTfL6fz4 RWLHfY/x/ftjG3y+bhXC7pIQedXzgLQxcERMHGaLwzanCMRqVVXa/J94U7pFzh/tSw9c +sL2M1Wi6cDdD+3ubs0p8UN6xD7d1//9o+DKSdOJtpwLKExEBSwRbYDnnAoEIBiols+d QImEduZ/VhSp2P+YYlzBs0RgoqtDmMg7NcKaOcEqi1Rikb67aSMeiUE9H2LPDn7qBeCo K3HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6QDMv6AMLwplAY0KAwNcIsJap5rg+s0OZVdaFa5XPqc=; b=jpiuDbPOqiqS9PCJl6HoD1TZZktCBeLq/VuWPYXpHqgXm0C7Lxg04ulNTrcY032H/R wZHuXg5K00L1FdRDtDT8yJhvturAQbBUSqR4MXDsm+cQgmoByYJxEA4eV7/gbL3cw7Uq MEhTQds9eYkaBYk12sBm4W4Gx3gvc83THBiIat2E6zMpfjXK9iKT3qPa78bmigKt+PQm ntQbVZ/VkHtFA16WTi/iat2JGhg8VM06pAArU6wez07PzbLpJq8qnMNGFoS/KM+cvqVV OzcIO6StQIryEYOtrNQJv3s2U5kT/KPHArpeGrOBb0U39YXkzxw/savGqpLRRq++7NXt 7Ukg== X-Gm-Message-State: APf1xPC+8hlgXq0gYIKj2XvAuBMmCauIM+2dK3O/fYFKYdzQC/d2929y SBH4iqrYVQsUgA+fxrIQGK0= X-Received: by 10.25.123.18 with SMTP id w18mr12387312lfc.104.1519796507149; Tue, 27 Feb 2018 21:41:47 -0800 (PST) Received: from huvuddator (ua-213-113-106-221.cust.bredbandsbolaget.se. [213.113.106.221]) by smtp.gmail.com with ESMTPSA id f33sm189423lji.52.2018.02.27.21.41.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Feb 2018 21:41:46 -0800 (PST) Date: Wed, 28 Feb 2018 06:41:34 +0100 From: Ulf Magnusson To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Marc Herbert , Sam Ravnborg , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Michal Marek Subject: Re: [PATCH v2 6/6] kconfig: rename silentoldconfig to syncconfig Message-ID: <20180228054134.uqqztixborcd3h3d@huvuddator> References: <1519776926-30459-1-git-send-email-yamada.masahiro@socionext.com> <1519776926-30459-7-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1519776926-30459-7-git-send-email-yamada.masahiro@socionext.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 09:15:26AM +0900, Masahiro Yamada wrote: > As commit cedd55d49dee ("kconfig: Remove silentoldconfig from help > and docs; fix kconfig/conf's help") mentioned, 'silentoldconfig' is a > historical misnomer. That commit removed it from help and docs since > it is an internal interface. If so, it should be allowed to rename > it to something more intuitive. 'syncconfig' is the one I came up > with because it updates the .config if necessary, then synchronize > other files with it. > > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: > - newly added > > Documentation/kbuild/kconfig.txt | 2 +- > Makefile | 2 +- > scripts/kconfig/Makefile | 4 ++-- > scripts/kconfig/conf.c | 20 ++++++++++---------- > 4 files changed, 14 insertions(+), 14 deletions(-) > > diff --git a/Documentation/kbuild/kconfig.txt b/Documentation/kbuild/kconfig.txt > index bbc99c0..7233118 100644 > --- a/Documentation/kbuild/kconfig.txt > +++ b/Documentation/kbuild/kconfig.txt > @@ -119,7 +119,7 @@ Examples: > 15% of tristates will be set to 'y', 15% to 'm', 70% to 'n' > > ______________________________________________________________________ > -Environment variables for 'silentoldconfig' > +Environment variables for 'syncconfig' > > KCONFIG_NOSILENTUPDATE > -------------------------------------------------- > diff --git a/Makefile b/Makefile > index 8706bf2..ea23d9b 100644 > --- a/Makefile > +++ b/Makefile > @@ -598,7 +598,7 @@ $(KCONFIG_CONFIG) include/config/auto.conf.cmd: ; > # include/generated/ and include/config/. Update them if .config is newer than > # include/config/auto.conf (which mirrors .config). > include/config/%.conf: $(KCONFIG_CONFIG) include/config/auto.conf.cmd > - $(Q)$(MAKE) -f $(srctree)/Makefile silentoldconfig > + $(Q)$(MAKE) -f $(srctree)/Makefile syncconfig > else > # external modules needs include/generated/autoconf.h and include/config/auto.conf > # but do not care if they are up-to-date. Use auto.conf to trigger the test > diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile > index bf9289a..988258a 100644 > --- a/scripts/kconfig/Makefile > +++ b/scripts/kconfig/Makefile > @@ -3,7 +3,7 @@ > # Kernel configuration targets > # These targets are used from top-level makefile > > -PHONY += xconfig gconfig menuconfig config silentoldconfig update-po-config \ > +PHONY += xconfig gconfig menuconfig config syncconfig update-po-config \ > localmodconfig localyesconfig > > ifdef KBUILD_KCONFIG > @@ -36,7 +36,7 @@ nconfig: $(obj)/nconf > > # This has become an internal implementation detail and is now deprecated > # for external use. > -silentoldconfig: $(obj)/conf > +syncconfig: $(obj)/conf > $(Q)mkdir -p include/config include/generated > $(Q)test -e include/generated/autoksyms.h || \ > touch include/generated/autoksyms.h > diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c > index 11a4e45..4e08121 100644 > --- a/scripts/kconfig/conf.c > +++ b/scripts/kconfig/conf.c > @@ -23,7 +23,7 @@ static void check_conf(struct menu *menu); > > enum input_mode { > oldaskconfig, > - silentoldconfig, > + syncconfig, > oldconfig, > allnoconfig, > allyesconfig, > @@ -100,7 +100,7 @@ static int conf_askvalue(struct symbol *sym, const char *def) > > switch (input_mode) { > case oldconfig: > - case silentoldconfig: > + case syncconfig: > if (sym_has_value(sym)) { > printf("%s\n", def); > return 0; > @@ -293,7 +293,7 @@ static int conf_choice(struct menu *menu) > printf("[1-%d?]: ", cnt); > switch (input_mode) { > case oldconfig: > - case silentoldconfig: > + case syncconfig: > if (!is_new) { > cnt = def; > printf("%d\n", cnt); > @@ -441,7 +441,7 @@ static void check_conf(struct menu *menu) > static struct option long_opts[] = { > {"oldaskconfig", no_argument, NULL, oldaskconfig}, > {"oldconfig", no_argument, NULL, oldconfig}, > - {"silentoldconfig", no_argument, NULL, silentoldconfig}, > + {"syncconfig", no_argument, NULL, syncconfig}, > {"defconfig", optional_argument, NULL, defconfig}, > {"savedefconfig", required_argument, NULL, savedefconfig}, > {"allnoconfig", no_argument, NULL, allnoconfig}, > @@ -468,8 +468,8 @@ static void conf_usage(const char *progname) > printf(" --listnewconfig List new options\n"); > printf(" --oldaskconfig Start a new configuration using a line-oriented program\n"); > printf(" --oldconfig Update a configuration using a provided .config as base\n"); > - printf(" --silentoldconfig Similar to oldconfig but generates configuration in\n" > - " include/{generated/,config/} (oldconfig used to be more verbose)\n"); > + printf(" --syncconfig Similar to oldconfig but generates configuration in\n" > + " include/{generated/,config/}\n"); > printf(" --olddefconfig Same as oldconfig but sets new symbols to their default value\n"); > printf(" --oldnoconfig An alias of olddefconfig\n"); > printf(" --defconfig New config with default defined in \n"); > @@ -501,7 +501,7 @@ int main(int ac, char **av) > } > input_mode = (enum input_mode)opt; > switch (opt) { > - case silentoldconfig: > + case syncconfig: > sync_kconfig = 1; > break; > case defconfig: > @@ -583,7 +583,7 @@ int main(int ac, char **av) > } > break; > case savedefconfig: > - case silentoldconfig: > + case syncconfig: > case oldaskconfig: > case oldconfig: > case listnewconfig: > @@ -667,7 +667,7 @@ int main(int ac, char **av) > /* fall through */ > case oldconfig: > case listnewconfig: > - case silentoldconfig: > + case syncconfig: > /* Update until a loop caused no more changes */ > do { > conf_cnt = 0; > @@ -680,7 +680,7 @@ int main(int ac, char **av) > } > > if (sync_kconfig) { > - /* silentoldconfig is used during the build so we shall update autoconf. > + /* syncconfig is used during the build so we shall update autoconf. > * All other commands are only used to generate a config. > */ > if (conf_get_changed() && conf_write(NULL)) { > -- > 2.7.4 > I wonder if it might be helpful to keep the silentoldconfig target for a while and have it just fail with a message like the following: silentoldconfig has been renamed to syncconfig and is now an internal implementation detail. What you probably want is oldconfig. Going on Google and https://lkml.org/lkml/2018/2/12/1084, there might be quite a lot of scripts and the like that call silentoldconfig. Alternatively, it could call through to syncconfig and also generate a warning that it's about to removed (like for olddefconfig). Cheers, Ulf