Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2158515pxb; Fri, 25 Mar 2022 12:07:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaoRczgkVDYZuGfwiAK1JjnPens4oJ3V5jaHPjXrJLeNL9UMRLPlaJoDLZ8uXwFBK1JQ4y X-Received: by 2002:a05:6a00:9a7:b0:4fa:ebe8:a4b3 with SMTP id u39-20020a056a0009a700b004faebe8a4b3mr10508745pfg.11.1648235270129; Fri, 25 Mar 2022 12:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648235270; cv=none; d=google.com; s=arc-20160816; b=s2jm5tyxpRCBLth32GKiDUifX89vKgH3oeOeFxuHG7xkeSlrlrmUmU8uCaSoTKHnjb J/RWBu+30wKJpB/gfCdUDdp1uuvyc9fpYhAKkQfhFOnkl8N1RJGdiGf1pw9XmEpZRslK Pj/+K9YXaI56bmlVG1iWkroaFD/iOnpNpmP1OprnRSlE3f6a0Cr8T6Cavlw3RpkrG/Nv UjoMm/5p5zv+Wh8bzSFy+gzqIKeCIHyynQkGUK2RubzHTFMhAR3jzH1d6d2Xudenjiv7 8QS5dwGK9fP1jva8T2hZm9k7pYRGFAnq5ALOTnAHZ9PfMLgzVJp5maplGWXmMKMPpFgI 7Jrg== 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=nLuPRhYWp23o0MYOeuykVklWxOPPM7ZZ76Xs3K2WjIk=; b=YANpUpR7p1T1aV852P3ewmXtdoejaaeH4U6qWt7QaSmfa/5AzF+gzM3Hh1dNBVmnHh 84ONXlqRUUnBfq5K24HmIX9djSbyc+1sptxahgFWMfxxmdIlUElf3paHfVPftz+NL+ub 8B6tXsle64mOBxsXG1yKGpHMsK7tOXIYdIyN1t2l1+UN7+cLxC0FuIuGV1+BjxpFx6c3 U+Co8Ro9lSWPCqnh7aMXQmRMYcHupXSOt9fUiAJPwpcxb93vT9Mb0n0q8nA30AMrEmsW 4eNCHyox7udw5RbsLf9lRV90vj+lwPwtT4oEMl8SV2c4k/s4UQEJ3OBzUjJozDuiJm5Q yBIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b4e5qt1x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id be23-20020a056a001f1700b004fa3a8e0083si2859661pfb.314.2022.03.25.12.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:07:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b4e5qt1x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AAED921D7F5; Fri, 25 Mar 2022 11:19:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359299AbiCYOHG (ORCPT + 99 others); Fri, 25 Mar 2022 10:07:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359279AbiCYOGz (ORCPT ); Fri, 25 Mar 2022 10:06:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5F4DD8F4A; Fri, 25 Mar 2022 07:05:20 -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 7F618B82833; Fri, 25 Mar 2022 14:05:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AC19C340E9; Fri, 25 Mar 2022 14:05:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648217118; bh=InqS59/swCZqQjPOSQ38Dh01/JCHMdXS9AaJZgOmLnQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b4e5qt1x2Z36b6bGLw/xt748snta88/BzOap/WiIJHUEK3WrGtWreQOunZTrqrcvz Uf6m9caxu4tWMNgeW7AvweqKRJYzKZD/MA7Cd2CH4Gnn+xwq1o0DEBpzXTI51H2Hqn tzZejZUUxGrmvtIgbeRNhNJB0yPhUeupaKt82gT6P/rpe5tDY1oD9GWm4M9OifbtpG xkHfqM/M0Pwr2MyU35ekzRu1J9mSuby0JARxCEdKrUS+CwN+u6J51Fpnf+2ON+/Hwg skKJw9BnvcG3DHzzzvVyP5pvzL2yFJinRYwYeNKsUV4de7Yp8UPnfca0HUjU2fs1+i 72MLQ+uwaxTmg== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1nXkZ1-00Axyt-O2; Fri, 25 Mar 2022 15:05:15 +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 v2 1/4] scripts/get_feat.pl: allow output the parsed file names Date: Fri, 25 Mar 2022 15:05:11 +0100 Message-Id: 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=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 v2 0/4] at: https://lore.kernel.org/all/cover.1648216561.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..b7154cf60c1d 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 "#define 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