Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp40950iol; Wed, 8 Jun 2022 21:09:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPLrdmpx7Kwku6j8cNNHR2uNH7Pc2KJwlW6qcd9na2LmZ5jSUyzXXj2RhuRf2/jNcUka3a X-Received: by 2002:aa7:9728:0:b0:51b:e78e:b333 with SMTP id k8-20020aa79728000000b0051be78eb333mr26490256pfg.36.1654747794474; Wed, 08 Jun 2022 21:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654747794; cv=none; d=google.com; s=arc-20160816; b=rWEmdB/uoGjfFlujLzj9UuzVXkFKRnmDAlS/zYMpgNSz5lLKkkAGM75/12ESV9AnUz uzEjhBJx5W+7FeUzFibTYYqvRKI82jnYkUvk/7OVie+meA1igUWVS4LnVq4UcnE55k6V HdxxJ4XUE/5kju9p0bozG2JTz8vTHWPnu9p+sX5u66CVV1WScGAOgZESq+tX8ARUgRNT xscHKoiNXZ5MoJAIpIvp2RC51EsNO72CkD7ix6rMBgwSy4tphhWXWtwwAp4qHprzOjZM gDVEfbq3m/WGQttrglIzCmXsYJ7f0q1fk0sr/TpK+CQ6U1XytOScXsnT6rmzgdlV7Y1G Id1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+z54jbSAWnQmyf9OXbojvgiCd6Oq7Uy/qOERdfbzDCk=; b=GvEBcUrmZb5dHPW0oa33N59mwcC5GzvN60c9eSERb/2FkAM89hKL4W3t2OEU29sdqW BwLXvWMCzpMHciYcgaZ2GOi6yzKiNzqH0b0oPznnEaE9zCSxHWw5pldDthny7PlvgmWZ qfLyjYEXIq9sm3pPN6GgNwiElkdDhq9jEYIYabc6hh9sL0qE0g7DTUUF3MTU8QLgjGTi JgmiXPVuHTWIPtQROpWUJfg+CDqJv2fqxNxz7dkDkP+/eSfSnQ7o2pSVrNiaYiCQTack wAQoqR/TF512HV+1jmAAmHAzX80g/2gUS41GUJqhHLrGttZTZfBSKhyJH540fLjH7bSR 1GOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=EbcQV8lP; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h62-20020a636c41000000b003820d821f00si27155268pgc.473.2022.06.08.21.09.42; Wed, 08 Jun 2022 21:09:54 -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=@infradead.org header.s=desiato.20200630 header.b=EbcQV8lP; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237652AbiFIDtL (ORCPT + 99 others); Wed, 8 Jun 2022 23:49:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234574AbiFIDtH (ORCPT ); Wed, 8 Jun 2022 23:49:07 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D545732C; Wed, 8 Jun 2022 20:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID: Sender:Reply-To:Content-ID:Content-Description; bh=+z54jbSAWnQmyf9OXbojvgiCd6Oq7Uy/qOERdfbzDCk=; b=EbcQV8lPjhM50JT0ZRxHwudtjz U6Lpl2XoRVcy00V3gfIZMYo8VYwuLsNvw8bw5pRB4xRT5/4+Q5TYIQaXvP5VJztQsynVAEqUg+azk 3lVdxpRK0xQ9B3b2z43M9J8CvfY4JnA1SowhmuZsUMRpDs8WczdhTMfyrDHlWSctwiHuM2FioAW37 YvcOaRdKyMu+qZcK74tOTT53vCebvSr3jGu4/a0t7jkrgosZEIMBBureKMG1a9lTxNL1bzYPzXme/ /cPOYNkfVtlotI1gZ9W9BML4A1pQJtiMfByUUE0qpE7e4rx8k9ZSSUMdgIq+77fAtq402VQ3Viw8E l/II5PBw==; Received: from [2601:1c0:6280:3f0::6c43] by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nz9AF-006GMr-4D; Thu, 09 Jun 2022 03:48:55 +0000 Message-ID: Date: Wed, 8 Jun 2022 20:48:51 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] kconfig: Add findconf script and helper program Content-Language: en-US To: Zev Weiss Cc: Masahiro Yamada , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220608095456.27479-1-zev@bewilderbeest.net> <6d6d252d-79e9-4b4c-4a62-aa4018a6254c@infradead.org> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 6/8/22 20:46, Zev Weiss wrote: > 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.) > Yes, it's just local. >> >> 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? There is no .config file in the linux/ source tree at the top level. I use O=build_dir for all builds. > >> 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 >