Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp326877ybk; Sat, 9 May 2020 04:11:08 -0700 (PDT) X-Google-Smtp-Source: APiQypJkudkJAy/LyWgj6kQm5a3tgglmXrbVoCqC3QgdqQQY59jHDIisEANL2Mp3QL3VxIufpiMV X-Received: by 2002:aa7:d6c7:: with SMTP id x7mr5813151edr.313.1589022668410; Sat, 09 May 2020 04:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589022668; cv=none; d=google.com; s=arc-20160816; b=p/4Hl+wEKQBRp1wtBcbm6yKkKY1Kzyk8bLPuaikYNoiJvVJji/6CzooniIlTkbyZLe rZ3Oy64tnBXlv5BNAYpbKoUo0zNUVugAQL/EEFI7rfzU6hP7vScENmW1slx/x187fHBZ LKqTL7z0Ll7b1/KCx09has/NnE/u5R3OcMU/bxc+NxyU7eFHoVsiETt9gIHkyFAknLZy K2vZMMj70Xj9m7xahHtVVuqSoYjoPObAQSCEU8ckcILSrmoGKMxrxBnXDdLAARdpd5SY bmi9EmCPZsCPEm0rju0M9SQaq1sh4Bb+cEUFUieP2YH+pIkYzYVFlzKLE4rjxdID01iQ JnFQ== 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 :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=T9AGnaI49ilVpVFvPCs2mRRQGAPg1sYG/5bfmVNCeKs=; b=LLuPdM81dfSTgo4dZ+LIXy08UmXNpL+rkZdwPoqUXc7SlV/b8Cl3o/RTwaKnchW59B D4ywlGRPpqPRdzk5iVWsSFc+6ABaC9XenQgEMmtUxf2vOfOL+m0KuSrC9WT9YRDaDUJ6 uzF7Re0S6m5lhlznDixEt8tLDXxmN75HcnJa4A8k5RplRQh4Jpo4Z5bZXSgR2UFw0z2D RG/x4fiy6SPkgkPHIRwFhxpDnaRgICKT3CkdH9Us6Jz1V72jX02j5xGRkKoTL74iTwrl NIzV9eg0Iyh2NKMcgSvCizrKrWDrCvx3XcqkCJPwNz6ce63D+AMZAh2r/yB2qukVbBHX Sf4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=iGJMWAvp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm21si2644747edb.275.2020.05.09.04.10.44; Sat, 09 May 2020 04:11:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=iGJMWAvp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728126AbgEILJB (ORCPT + 99 others); Sat, 9 May 2020 07:09:01 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:52554 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbgEILJA (ORCPT ); Sat, 9 May 2020 07:09:00 -0400 Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com [209.85.217.42]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 049B8TGB019771; Sat, 9 May 2020 20:08:30 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 049B8TGB019771 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1589022510; bh=T9AGnaI49ilVpVFvPCs2mRRQGAPg1sYG/5bfmVNCeKs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=iGJMWAvpVbbomUe6H94322ZC42OtmM12LwlmFxH0yVgqwoI6UXfML+/4Y33WGQRjH nTiCQeQHtLxPQ6laDjoA4j+eecj0NevKTAEYOnOPUMfyglahk9qwu/57KaCAnAJXmk nJZFcRovp+/nENMICarDOzAtk+dzDDsh8yYZmzCZA3bIkMDo66RhWTw4U2awIyWzny zZq93cuxXQpyrfYvJXfs1GmVpnrh58Nct+9tiLk4Uu+p5zJrFdZXabvxZoTzMgLiTL TClOHl9f1q3PIeX+Mv+MZav1ZhXi7IzywsszQLdmmY6Nvv8DIV8q7I7cwD87ESLgEy uQZeqx2SaGN7A== X-Nifty-SrcIP: [209.85.217.42] Received: by mail-vs1-f42.google.com with SMTP id e10so2668890vsp.12; Sat, 09 May 2020 04:08:30 -0700 (PDT) X-Gm-Message-State: AGi0PuaAEOR7J663FS9aTqsDlq1FklASaTQjaG+EBU/CgnlrBbb4gcbh F8Y/ZjI8kh6IrMRTjE58kql2FJZjybkhaSNjuAI= X-Received: by 2002:a67:6e07:: with SMTP id j7mr5262295vsc.181.1589022508905; Sat, 09 May 2020 04:08:28 -0700 (PDT) MIME-Version: 1.0 References: <20200503001141.9647-1-changbin.du@gmail.com> <20200507091807.0a789fbd@gandalf.local.home> <20200508140047.rln4iogroxw7esxa@mail.google.com> In-Reply-To: <20200508140047.rln4iogroxw7esxa@mail.google.com> From: Masahiro Yamada Date: Sat, 9 May 2020 20:07:53 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4] streamline_config.pl: add LMC_KEEP to preserve some kconfigs To: Changbin Du Cc: Steven Rostedt , Jonathan Corbet , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Linux Kbuild mailing list , Randy Dunlap 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 Fri, May 8, 2020 at 11:00 PM Changbin Du wrote: > > On Thu, May 07, 2020 at 09:18:07AM -0400, Steven Rostedt wrote: > > On Thu, 7 May 2020 12:19:57 +0900 > > Masahiro Yamada wrote: > > > > > On Sun, May 3, 2020 at 9:11 AM Changbin Du wrote: > > > > > > > > Sometimes it is useful to preserve batches of configs when making > > > > localmodconfig. For example, I usually don't want any usb and fs > > > > modules to be disabled. Now we can do it by: > > > > > > > > $ make LMC_KEEP="drivers/usb;fs" localmodconfig > > > > > > > > Signed-off-by: Changbin Du > > > > > > > > --- > > > > v4: fix typo. > > > > v3: rename LOCALMODCONFIG_PRESERVE to shorter LMC_KEEP. > > > > v2: fix typo in documentation. (Randy Dunlap) > > > > --- > > > > > > > > > Personally, I do not mind the long LOCALMODCONFIG_PRESERVE, > > > > Perhasp we allow both? ;-) > > > > And just have one set to the other. > > > > > but this tends to be bike-sheding. > > > I do not have a strong opinion. > > > > > > > > > > Documentation/admin-guide/README.rst | 8 +++++++- > > > > scripts/kconfig/Makefile | 1 + > > > > scripts/kconfig/streamline_config.pl | 23 +++++++++++++++++++++++ > > > > 3 files changed, 31 insertions(+), 1 deletion(-) > > > > > > > > diff --git a/Documentation/admin-guide/README.rst b/Documentation/admin-guide/README.rst > > > > index cc6151fc0845..1371deab8bc7 100644 > > > > --- a/Documentation/admin-guide/README.rst > > > > +++ b/Documentation/admin-guide/README.rst > > > > @@ -209,10 +209,16 @@ Configuring the kernel > > > > store the lsmod of that machine into a file > > > > and pass it in as a LSMOD parameter. > > > > > > > > + Also, you can preserve modules in certain folders > > > > + or kconfig files by specifying their paths in > > > > + parameter LMC_KEEP. > > > > + > > > > target$ lsmod > /tmp/mylsmod > > > > target$ scp /tmp/mylsmod host:/tmp > > > > > > > > - host$ make LSMOD=/tmp/mylsmod localmodconfig > > > > + host$ make LSMOD=/tmp/mylsmod \ > > > > + LMC_KEEP="drivers/usb;drivers/gpu;fs" \ > > > > > > > > > This might be another bike-sheding item, but > > > can you use a space for the delimiter? > > > > > > > > > LMC_KEEP="drivers/usb drivers/gpu fs" > > > > > > If you pass multiple directories, > > > you will need to surround them with double-quotes. > > > > I agree that spaces look better. > > > I am okay with space. But what about ":" which is used by shell PATH and many > others? I am not sure 'many others', but you can pick what you like. -- Best Regards Masahiro Yamada