Received: by 10.223.176.46 with SMTP id f43csp1262533wra; Fri, 26 Jan 2018 15:00:05 -0800 (PST) X-Google-Smtp-Source: AH8x225+ZxRIIT2uSB0tZ5r+2ecHu7kbFgpBEAkGsEGFKC1vqh2N1pag8tG3/PdDMXH1lFzAjqB5 X-Received: by 10.98.234.19 with SMTP id t19mr5768357pfh.74.1517007605127; Fri, 26 Jan 2018 15:00:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517007605; cv=none; d=google.com; s=arc-20160816; b=K783h7tIels9RkTM4Z2hrhN3zJs/Q/6LKjWP3g8j7f8DQhy5xJx6NOt66R/MZLskwD JUr08DwoMfDIyMz+/90J/ADbfx7nN3lgDLSAgLgnd4B2hL0hoFdMVyUsvRtwhAUHHsIF ZMnTm/Cyhb17+4+bwc9dql2830DIKKaQE7WYTsRT3bhd1qshAepdqcndKSlxDMGNYN8V pWKGeyP3VyJWY18KtCikCJ8wZgs/UcIoL3r1dVlna9XF9esIaAc2zl8/XtjoA5H0s7P8 wG9cYtf9g05jEuEPC23VSnk3QYCZguCqVHf/pCpuH2qXJUUrxGXnEKn4iDUAn52dkGfz HOTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=BIbfmP4uHZF1i7EnR8gTr6Lp9SL4eM0X2hf/aiU/4l4=; b=czxSPdMd4nEk3g9DqeLx2FB6wQH3dkeBiFzsNQveuBiZ4oU393f4Ufa6dfuzMQ9Emg RVdTMjZRk6EaHG70kwg3UN+03WCdRthZAp5FWVAv5ATOuxo1OGM/gbLBlOfPbw3zARwm 4djXMELJIALNpc/vao5NHZQluoHSpDM4bzF3xorbjB+hrxfhB+riIBfPoQE8b/fsTcBH RKO09pO3FSPX/oe1e79Ovzq3QnGmHR3qis0uSb8EonnXveI1YhAI5Ul3ewZr8FNpLVXU 8qQvlwFB8J2PO1ZAVyJB7slbwTWZE8xxf3y3pxy8C1oIUtHnrUiek+WwJtWtSyiOD2uf NZ4A== ARC-Authentication-Results: i=1; mx.google.com; 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 g5si3562664pgc.523.2018.01.26.14.59.50; Fri, 26 Jan 2018 15:00:05 -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; 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 S1752151AbeAZW72 (ORCPT + 99 others); Fri, 26 Jan 2018 17:59:28 -0500 Received: from mga07.intel.com ([134.134.136.100]:44774 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751321AbeAZW70 (ORCPT ); Fri, 26 Jan 2018 17:59:26 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jan 2018 14:59:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,418,1511856000"; d="scan'208";a="26651030" Received: from mherber2-mobl.jf.intel.com ([10.7.199.55]) by orsmga001.jf.intel.com with ESMTP; 26 Jan 2018 14:59:26 -0800 From: Marc Herbert To: Masahiro Yamada , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Michal Marek , Wayne Boyer , Marc Herbert Subject: [PATCH v3] Remove silentoldconfig from help and docs; fix kconfig/conf's help Date: Fri, 26 Jan 2018 14:59:00 -0800 Message-Id: <20180126225900.32206-1-marc.herbert@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171219012656.23728-1-marc.herbert@intel.com> References: <20171219012656.23728-1-marc.herbert@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As explained by Michal Marek at https://lkml.org/lkml/2011/8/31/189 silentoldconfig has become a misnomer. It has become an internal interface so remove it from "make help" and Documentation/ to stop confusing people using it as seen for instance at https://chromium-review.googlesource.com/835632 Don't remove it from kconfig/Makefile yet not to break any (other) tool using it. On the other hand, correct and expand its description in the help of the (internal) scripts/kconfig/conf.c Signed-off-by: Marc Herbert --- v2: rewordings (Masahiro) v3: remove from Documentation/ too. Add warning comments in source. Documentation/admin-guide/README.rst | 5 ----- scripts/kconfig/Makefile | 7 ++++--- scripts/kconfig/conf.c | 6 ++++-- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Documentation/admin-guide/README.rst b/Documentation/admin-guide/README.rst index 63066db39910..af5a437198d0 100644 --- a/Documentation/admin-guide/README.rst +++ b/Documentation/admin-guide/README.rst @@ -170,11 +170,6 @@ Configuring the kernel your existing ./.config file and asking about new config symbols. - "make silentoldconfig" - Like above, but avoids cluttering the screen - with questions already answered. - Additionally updates the dependencies. - "make olddefconfig" Like above, but sets new symbols to their default values without prompting. diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index df6469fd3dcc..a460f9f7b733 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -34,6 +34,8 @@ config: $(obj)/conf nconfig: $(obj)/nconf $< $(silent) $(Kconfig) +# This has become an internal implementation detail and is now deprecated +# for external use. silentoldconfig: $(obj)/conf $(Q)mkdir -p include/config include/generated $(Q)test -e include/generated/autoksyms.h || \ @@ -142,7 +144,6 @@ help: @echo ' oldconfig - Update current config utilising a provided .config as base' @echo ' localmodconfig - Update current config disabling modules not loaded' @echo ' localyesconfig - Update current config converting local mods to core' - @echo ' silentoldconfig - Same as oldconfig, but quietly, additionally update deps' @echo ' defconfig - New config with default from ARCH supplied defconfig' @echo ' savedefconfig - Save current config as ./defconfig (minimal config)' @echo ' allnoconfig - New config where all options are answered with no' @@ -151,8 +152,8 @@ help: @echo ' alldefconfig - New config with all symbols set to default' @echo ' randconfig - New config with random answer to all options' @echo ' listnewconfig - List new options' - @echo ' olddefconfig - Same as silentoldconfig but sets new symbols to their' - @echo ' default value' + @echo ' olddefconfig - Same as oldconfig but sets new symbols to their' + @echo ' default value without prompting' @echo ' kvmconfig - Enable additional options for kvm guest kernel support' @echo ' xenconfig - Enable additional options for xen dom0 and guest kernel support' @echo ' tinyconfig - Configure the tiniest possible kernel' diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index a8a97efd3dfc..a309ccec1000 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -457,6 +457,7 @@ static void check_conf(struct menu *menu) static struct option long_opts[] = { {"oldaskconfig", no_argument, NULL, oldaskconfig}, {"oldconfig", no_argument, NULL, oldconfig}, + /* Has become a misnomer, "syncconfig" would be more accurate */ {"silentoldconfig", no_argument, NULL, silentoldconfig}, {"defconfig", optional_argument, NULL, defconfig}, {"savedefconfig", required_argument, NULL, savedefconfig}, @@ -484,8 +485,9 @@ 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 Same as oldconfig, but quietly, additionally update deps\n"); - printf(" --olddefconfig Same as silentoldconfig but sets new symbols to their default value\n"); + printf(" --silentoldconfig Similar to oldconfig but generates configuration in\n" + " include/{generated/,config/} (oldconfig used to be more verbose)\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"); printf(" --savedefconfig Save the minimal current configuration to \n"); -- 2.13.6