Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp4847495pxb; Mon, 28 Mar 2022 04:31:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9g0tDPNn5/7Btqhm95govSDiUcXPs23b4S2j4t2ClDdJ72l+hL/bl/gf9d/eWHAIVeSyS X-Received: by 2002:a05:622a:1715:b0:2e1:ce29:f805 with SMTP id h21-20020a05622a171500b002e1ce29f805mr20964670qtk.151.1648467091544; Mon, 28 Mar 2022 04:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648467091; cv=none; d=google.com; s=arc-20160816; b=BRQyG6obQsme+vAHJmKJuPpFWlQwjKQu7n1omZTEmcx9EYIexvxflEb7YAPYi9+9Ct yyT3CqFmjF+sPdY2GuZpThF0f8l2AsOTRFscStYOV4Xhv+aB60kWLry2oLYI6n0Y8eI+ KsrDdhroFMME1h6Y5k3SjnGVWbd/04FpJ6qKg7027xwLUM+EwamMEwfj5vZ/f1RLoCnS V5LNiJhuF8p9q1YNncE8urOYFxqHTE0kC2JrjhNTfFY2ra4ok790RcUhm4xpoSp2uQKh 1bEiJl0y/DsZbLm16GbqxuQRDA8P9s2oNEChS4cEf9SlJsHK5nBb6nWV8PXTSgrc1vGy F/PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1ZjN+mJFbs84fZ5r08tcVTb3NVfPygWQEHXi/T49aWY=; b=cXsD/MZOzzzYUyX4WgwuzF57MfJaPFsKGCLai2CWx5cQPtKdvg5ikTqwdwBJ0AcWTu gaLKJ3C/hFwEDowjGbi8uIwr4hrVMydaReVk2Pn/pmfyIhE4IkvxtiyeniHqZiUU8Vfm /GuSsfjJZksY1dUNtnZ7MPj6lLl67P4gLS4fq3COEXejlKYDNEKOL7SR0aDHOqQs6wg5 32SsyzoFCuz2tZTX6kdmV4x9WVauFAOZsmV0MpJ5KeFtDxuKUG+5x4CQGHY1CVmHriCf lJdyt1dOMSAZ5oIdOynqiqi1vHi4S+vD9kJEp6RibmqI33Ub/o0MjqOQtzoHCXMxmfjM jOng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rOn18vpF; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v20-20020a05620a0f1400b0067e4be237e6si7324041qkl.43.2022.03.28.04.31.01; Mon, 28 Mar 2022 04:31:31 -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=@kernel.org header.s=k20201202 header.b=rOn18vpF; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232606AbiCZK3f (ORCPT + 99 others); Sat, 26 Mar 2022 06:29:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232539AbiCZK3G (ORCPT ); Sat, 26 Mar 2022 06:29:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E3565D5C3; Sat, 26 Mar 2022 03:27:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CC5EFB802C3; Sat, 26 Mar 2022 10:27:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D1A0C340EE; Sat, 26 Mar 2022 10:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648290447; bh=fCUCDroTYXYqWyLmO/RKepuGt/+Ob6vZ/0OEXNI48dc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rOn18vpF92boutfkaYVD/c+vPT9O1nXmghUBSb3aUkzl+ZF2+8cXkabG0nKqvg9p1 cwMpZ8koUid5xCsgO/5yeyZUe2/ipOzBiVC0pdD850PeDgvVfD5J/HzKswBWiq7G9f PyXLq/JVFtFwpOIYI/8vHJ1PHcXoeGbtVdX49t72mienTt35Qukui5lU4Ii1uTLYD0 kgKP/8qgK2O4DJ3I3Q6UDIyElESTA8horrFgXOC6yHr8pyScM0PnO//31D5ZjwGJHg //1ZeelDVSI14zc8yuS9DqFDZG6EVTFrYAKqSd1r17DgQOtCsuOiRIQ6PCD4YcLK9t Kr/4cuoU+8AqQ== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1nY3dl-00Co0U-20; Sat, 26 Mar 2022 11:27:25 +0100 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , "Hans de Goede" , "Stephen Rothwell" , linux-kernel@vger.kernel.org Subject: [PATCH v3 1/6] scripts/get_feat.pl: allow output the parsed file names Date: Sat, 26 Mar 2022 11:27:19 +0100 Message-Id: <11b438ee01e00c866f5ea197d6aecc26e9f86945.1648290305.git.mchehab@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Such output could be helpful while debugging it, but its main goal is to tell kernel_feat.py about what files were used by the script. Thie way, kernel_feat.py can add those as documentation dependencies. Signed-off-by: Mauro Carvalho Chehab --- To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v3 0/6] at: https://lore.kernel.org/all/cover.1648290305.git.mchehab@kernel.org/ scripts/get_feat.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/get_feat.pl b/scripts/get_feat.pl index 457712355676..76cfb96b59b6 100755 --- a/scripts/get_feat.pl +++ b/scripts/get_feat.pl @@ -13,6 +13,7 @@ my $man; my $debug; my $arch; my $feat; +my $enable_fname; my $basename = abs_path($0); $basename =~ s,/[^/]+$,/,; @@ -31,6 +32,7 @@ GetOptions( 'arch=s' => \$arch, 'feat=s' => \$feat, 'feature=s' => \$feat, + "enable-fname" => \$enable_fname, man => \$man ) or pod2usage(2); @@ -95,6 +97,10 @@ sub parse_feat { return if ($file =~ m,($prefix)/arch-support.txt,); return if (!($file =~ m,arch-support.txt$,)); + if ($enable_fname) { + printf ".. FILE %s\n", abs_path($file); + } + my $subsys = ""; $subsys = $2 if ( m,.*($prefix)/([^/]+).*,); @@ -580,6 +586,11 @@ Output features for a single specific feature. Changes the location of the Feature files. By default, it uses the Documentation/features directory. +=item B<--enable-fname> + +Prints the file name of the feature files. This can be used in order to +track dependencies during documentation build. + =item B<--debug> Put the script in verbose mode, useful for debugging. Can be called multiple -- 2.35.1