Received: by 10.223.185.116 with SMTP id b49csp5795472wrg; Tue, 27 Feb 2018 21:44:50 -0800 (PST) X-Google-Smtp-Source: AH8x225NbYUx9TdD0ENCoPirG1vSg5krwysJ3buwKNDwSz7H67Uv8Pi4aMI+8nvv/7KzLu0qypHD X-Received: by 2002:a17:902:7c11:: with SMTP id x17-v6mr16964179pll.59.1519796690767; Tue, 27 Feb 2018 21:44:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519796690; cv=none; d=google.com; s=arc-20160816; b=CTjqv/yceFzxXaZw5Q6aWrTvK+fOerfonQPefyrpxFIwMuRdXId1KCI8Ep22phjIXr CBoEcoKXJz4fm5EOktcs7sEefhRah2LkJrg4ViF6k+IzvoqQ9eoc9kkct3sKb9EflPN2 VkTZlrcHvoOU2eeVxV24leN+OOf8YMVbDp3O93ZQXQW6jOtEuDGP7sL4U080pvYtFYgL LnRTV7n5/+9E7IHJdT0W5nmxJLm7r67FXu9O7ylEPMDdQuPwtCq5DEFQHE+x+qvoZE5+ saXgaP5kWaI+hiDROUb/cpH9kUHch4PTjcXiEdRXbLNLwVs03+f08EzS+Mk/zCJ7/gbk Vr+g== 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=j/tKHD/6DT/9VySqEiToPNHMVLpz/3grF+GMA1hur34=; b=DLazPirOHJPp6iLFelSEzyfeLNEMyDZbRZbAIWFp1xmdS/EjvXWmsmG1TpX8mNpEs/ DwWJBG5DSJq/UnRdSdlk73HixBYQJgWyf3tkYxkiIXFxvCGSYo/GrdCCVC4GAlc3dmHk yXBs7bL9fQjQBfOZ/j7TdZubzqEVcpjX4gMQ45nt3vCzan4szdws1lKKeUbR8xamX+y7 +pgtmh030+3K/QpDMpHKszXGh5X88XDXZ+cCQzAJBkaPNf4sSFvbB360mRs+GCupL+MQ R26fdvLB+aMoAT4grGxzRx8cF1YQ/V3nYVr4RiPDP8BNEZ3MM0NRGfp5bCrN6GC8MzFn 4sog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dXfzWoLQ; 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 o11si546911pgc.820.2018.02.27.21.44.35; Tue, 27 Feb 2018 21:44:50 -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=dXfzWoLQ; 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 S1751886AbeB1Fnn (ORCPT + 99 others); Wed, 28 Feb 2018 00:43:43 -0500 Received: from mail-vk0-f65.google.com ([209.85.213.65]:38254 "EHLO mail-vk0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750835AbeB1Fnl (ORCPT ); Wed, 28 Feb 2018 00:43:41 -0500 Received: by mail-vk0-f65.google.com with SMTP id s1so770927vke.5; Tue, 27 Feb 2018 21:43:40 -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=j/tKHD/6DT/9VySqEiToPNHMVLpz/3grF+GMA1hur34=; b=dXfzWoLQHwRmQ36ESZsf9zMJyW5H95AIsniE1NDB5dfDsiuZTb68kprjDjniMsHNcO dzlQcvMGkQIghfoqA/NeD3rPJLrCsgGX8ZtKppdXn3H680MPKoCkP+eaqMERlhmeJe0v xpophbVbx0aYFBp+UIu0nsnMUGdUmdjDObko9L0wE6gAkKzEaZgePQdaEu4rz+brJYl4 2doUS9/ywMCRVrL5Blw1wBoGh/ZFQHLnAX+h3HPEKZMD7zjWvbUgsNaIXsvC8Rus1Q8A C37uGCPv+0A0ElBb2SuJf7jCufWTJkEBJjHrf03bIRU+6uM8hS8XH1zAZk2GAgktLjdE Nmrg== 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=j/tKHD/6DT/9VySqEiToPNHMVLpz/3grF+GMA1hur34=; b=TvBsAa9kJfYJpptLV2nwjC4rv3OoYpuwgH4NS9dxlpD9kWNfKVoKlTDgC/d/Y9vQ+5 JmSUa5TvG13K+BQAcVmjPgT93hFBsJwbHYOl4Km4w/sIu5tD62VRkGL5+My1qY9Y79Yr ZwWTeQoLmSmNKksJ+z6rPVb5auE1Zd64GBdBt7KEtEhZO0JuixK4+kVTt+pUUA+kQHZ1 M82ryV6a1b/U8wLSSVEQ2SaE1p9lL8Qr5ICM+wh3pgWW7M/KP/lsBwKfzfGzeKruQ2l9 3NpbyRsXal0FYaCVTBRWI0836qNV/32hv334rLSKdrVqgfRLdgpGxyWeKQzGad64d9Kw V+fw== X-Gm-Message-State: APf1xPCsotnYLcIQx2YJzvhy7V+HmpNQ/KnfWM3anyqDheRlLBMBAuUh eaiJy5lLMSZCoMEjb8GIYx10YtLgnHBR8Ib/ztH6zg== X-Received: by 10.31.219.6 with SMTP id s6mr12135293vkg.89.1519796620185; Tue, 27 Feb 2018 21:43:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.220.145 with HTTP; Tue, 27 Feb 2018 21:43:39 -0800 (PST) In-Reply-To: <20180228054134.uqqztixborcd3h3d@huvuddator> References: <1519776926-30459-1-git-send-email-yamada.masahiro@socionext.com> <1519776926-30459-7-git-send-email-yamada.masahiro@socionext.com> <20180228054134.uqqztixborcd3h3d@huvuddator> From: Ulf Magnusson Date: Wed, 28 Feb 2018 06:43:39 +0100 Message-ID: Subject: Re: [PATCH v2 6/6] kconfig: rename silentoldconfig to syncconfig To: Masahiro Yamada Cc: Linux Kbuild mailing list , Marc Herbert , Sam Ravnborg , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Jonathan Corbet , Michal Marek 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 Wed, Feb 28, 2018 at 6:41 AM, Ulf Magnusson wrote: > 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). *oldnoconfig Cheers, Ulf