Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp37406iol; Wed, 8 Jun 2022 21:03:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZvfN0mV4eJQiG2Ow+xE6UHSb0/tHQ/qfbhABJdb9mEiFPgdtyZHWKwVTLGxvfMHhCh73X X-Received: by 2002:a05:6402:348e:b0:42e:2e1a:817c with SMTP id v14-20020a056402348e00b0042e2e1a817cmr36142321edc.23.1654747410862; Wed, 08 Jun 2022 21:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654747410; cv=none; d=google.com; s=arc-20160816; b=ovWaorFXb8IkQmaigv38YcCNiabtLS0Qxl075J3y4E7+BCJfnfjIntWp09VGoWT2Kq XUp5KYO3FbGsU2Kfyo/h3izEUrMLgyJEFkModfHvV84ixsCgh6nqJnPKusPVsx6PqOfB kmnWYGMjv5nscjkcmstDybOAFyoi2m14OYtf201aOWO5A7tVnZ6VDPstntjQhb2q323+ uptxD3iisENLdG5+nuBy6jA/KAHyCAKMGqg86BkmcSbSdqyGIDghev4vEEj1NYsSQWzW hwiZpsHku8HUXy6r00nozUgnbSQAhZSuiO85i3sEOUt6Vxo5XQcvKJmy6yUdVktrjzNZ gHWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=P4Tb/8aOs+KwvhOVY6Wu9k5ijZ6jU9WWvWxF6LngbPs=; b=HPf1X9pUocp/pPpFCfJJIBnskAkSsRY0Dir1ZNLQY8WTKDrq+qcU6unDchLJ24MfN/ YgkocmtS3SzITsBR0IwbReg0rkBarIqpGVzCQF6nR3AaBGRY886I6udI8vySYgH8CZ2+ ZzWHfnOOdeeylQYeuovPWMjC7VlN/KDd4A47j9REe++GXyRlvAOs1J9Os72k45iHZhS4 74vfmQwExD8s91k6XHMgYNiVk4avgJ5MDnjH2S5KftPisOyx73pXS6tAu5qMpciKmEuc cqjk97hNcMIjdNSCvbJzJO+OPMsJiLTZyzBRgF9AORZYVKZQWMeb71JQubLNbRxnBmom ilww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b="J/3CWLUC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w14-20020a170906184e00b006fece7848fcsi2327337eje.252.2022.06.08.21.03.05; Wed, 08 Jun 2022 21:03:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b="J/3CWLUC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236508AbiFIDql (ORCPT + 99 others); Wed, 8 Jun 2022 23:46:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229833AbiFIDqk (ORCPT ); Wed, 8 Jun 2022 23:46:40 -0400 X-Greylist: delayed 64284 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 08 Jun 2022 20:46:39 PDT Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 136C12E4342; Wed, 8 Jun 2022 20:46:38 -0700 (PDT) Received: from hatter.bewilderbeest.net (174-21-189-245.tukw.qwest.net [174.21.189.245]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id AB106344; Wed, 8 Jun 2022 20:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1654746398; bh=P4Tb/8aOs+KwvhOVY6Wu9k5ijZ6jU9WWvWxF6LngbPs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J/3CWLUCXEEzHl6OzLto+Nh1NH1v28uCaQ5m8nHcIQ2BjUbtlbTE7i6yfOn4vJGXQ 8LI5HyEXGmv3HkBDTYHcR74M6c/a8r8/UnX43LmVsOXYF3SQi0T8MaLhRNwL2DGA8v LtbMUZHyc9ETzNbtnkxY27JeGL+FdttcP5SiA3H0= Date: Wed, 8 Jun 2022 20:46:37 -0700 From: Zev Weiss To: Randy Dunlap Cc: Masahiro Yamada , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kconfig: Add findconf script and helper program Message-ID: References: <20220608095456.27479-1-zev@bewilderbeest.net> <6d6d252d-79e9-4b4c-4a62-aa4018a6254c@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <6d6d252d-79e9-4b4c-4a62-aa4018a6254c@infradead.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 08, 2022 at 07:48:44PM PDT, Randy Dunlap wrote: >Hi-- > >On 6/8/22 02:54, Zev Weiss wrote: >> scripts/findconf provides menuconfig's search functionality as a >> standalone, non-interactive command, somewhat in the spirit of >> scripts/config. It is meant to be useful for tasks like getting a >> quick overview of symbol dependencies or determining which Kconfig >> file to edit for a given symbol, without having to fire up one of the >> interactive config programs. >> >> It accepts a single command-line flag, '-v', which causes it to also >> print the help text of each matching result. >> >> Signed-off-by: Zev Weiss >> --- > >I can see how this could be useful. >It's a little easier to use than what I currently do: > >$ findconfig DRM_HISI_HIBMC >./drivers/gpu/drm/hisilicon/hibmc/Kconfig:2:config DRM_HISI_HIBMC I'm guessing 'findconfig' here is some personal shell alias/function/script? (I can't see any references to it in the kernel source tree.) > >then $EDITOR that_Kconfig_file > > >In testing, I am seeing this: > ># ># using defaults found in /boot/config-5.3.18-150300.59.63-default ># >.config:421:warning: symbol value 'm' invalid for I8K >.config:2335:warning: symbol value 'm' invalid for MTD_NAND_ECC_SW_HAMMING >.config:2484:warning: symbol value 'm' invalid for PVPANIC >.config:8671:warning: symbol value 'm' invalid for INTERCONNECT >.config:9369:warning: symbol value 'm' invalid for CRYPTO_ARCH_HAVE_LIB_BLAKE2S >.config:9370:warning: symbol value 'm' invalid for CRYPTO_LIB_BLAKE2S_GENERIC >.config:9653:warning: symbol value '1' invalid for KASAN_STACK > This I assume is just due to the contents of your .config file relative to the current Kconfig definitions and not a problem with anything in this patch? >How do I specify/choose a .config file to be used? > >Oh, use KCONFIG_CONFIG=filename > Ah, I guess that'd be a nice thing to add a flag for to the wrapper script -- I'll include that in v2. > >Please update (add) usage/help text in scripts/kconfig/Makefile. > Ack, will do. Thanks for the review! Zev