Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2921130ybi; Mon, 17 Jun 2019 12:46:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOcIssBL3T4dvE/2SF0G923sCf45Dsxf438+Mb7/REsBUv0pvxqTCUmtT/kLPx6v6FTioR X-Received: by 2002:a17:90a:1ac5:: with SMTP id p63mr610038pjp.25.1560800794259; Mon, 17 Jun 2019 12:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560800794; cv=none; d=google.com; s=arc-20160816; b=PnMCG/Sec7NW2VtAISieU4f8m2DQJTVapMiyppMo+ncZyaGMlduj9vV2cQh9JrFGHQ 8JTVpfmm4mngkG26yai/65HW4LC87XjKbBdSR/MXRAMLFBPAYIjEkDzE5IsWPIDbpUZd AChDKHWXnb+IMcRQjX2FN0Ehz2xGFPwX15hQUmdapgep2o1/D3v4EM/XVKyKdTrUoUaX 5YAW/9Uo3zfsSwC1McIq33sclofA+c0WdGYzaWahQM65v4iIARw1i8TbnEq608h4jRWO YiE+Yng5eurH0E/6QAksx1XppGC8HXVeUHU4Ywd6ceITiiaxfqvWe+Wv+/86morJszjp gZLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=76GJ8bjLwn5gnvDNJShrlkM+RiGU+MWO5N2V/mZ8lAU=; b=K3eFSBvJsijzVXXUGw+ClDVgGz2uDsD1BFyvf6UA0v2lWFLsUX7soiG53b9IeXx2c4 SssjfBkAE4+7U9Wiu3YH8kuQ8raSOi/P24JXZEM0UfBE42sldYhGOjFhTQKB4UCiNVe8 DBzvbhOcY5Fmp/wEbhHTX0HM/31c2i6VB24VQlCqI4IVtMOEqJALTD4E+YCwk8iJ4LHG KKbqextx1MMXSDsf4tYwPdFMeb8bkJCfTHj0PdGZ+N4eQPdjwtKWi40uCKQ5h4aJ/A5F mA9afBC0yZzYcTtQ5Yr9M2+bLLCv4ElEbmq5IKdF2tSqbr0ok2n+aljPaCj6d5BJMVYt 1ClQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=WHdgtVLi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 67si10789912pla.356.2019.06.17.12.46.19; Mon, 17 Jun 2019 12:46:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=WHdgtVLi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728524AbfFQTpz (ORCPT + 99 others); Mon, 17 Jun 2019 15:45:55 -0400 Received: from casper.infradead.org ([85.118.1.10]:38336 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726324AbfFQTpz (ORCPT ); Mon, 17 Jun 2019 15:45:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=76GJ8bjLwn5gnvDNJShrlkM+RiGU+MWO5N2V/mZ8lAU=; b=WHdgtVLiHPk1hrxxk/4SizG0Ul Er0j8EW950YQ6SmTEWx3dJKzF2u42NntXt4U+AGdSvSGTLUFJQIIQRoPFpFPNop1E0h1UtEovY2a/ l/VdfdI7YwMYIgsKejbjdk0vkMEy36EftDKfP0SytURnaB+0l3g3E4qKqfkSDV5bUQeLyC26oCi4G 9rIeLKPXQTkCdMKY1NYrb5rcNWdE5PjXrcVBX0YsLU34r8B811HGJ8PwVjAIztBRxaoW71rkX06EW 6/AZMmkm51icEoF8iGR/MAdpWMffEJ+nf+oRiThAZcjlwv8hBWfYpD1Xyn8zmnrmCdQ/ygive18eX rwOJHoUw==; Received: from 179.186.105.91.dynamic.adsl.gvt.net.br ([179.186.105.91] helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hcxZh-0003p2-Ed; Mon, 17 Jun 2019 19:45:54 +0000 Date: Mon, 17 Jun 2019 16:45:47 -0300 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman Cc: Linux Doc Mailing List , Jonathan Corbet , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, ksummit-discuss@lists.linuxfoundation.org Subject: Re: [PATCH RFC] scripts: add a script to handle Documentation/features Message-ID: <20190617164547.65ce54bd@coco.lan> In-Reply-To: <20190617181116.GA17114@kroah.com> References: <20190617142117.76478570@coco.lan> <98ce589a7c50e2693ab6be158e03afde19aed81e.1560794401.git.mchehab+samsung@kernel.org> <20190617181116.GA17114@kroah.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, 17 Jun 2019 20:11:16 +0200 Greg Kroah-Hartman escreveu: > On Mon, Jun 17, 2019 at 03:05:07PM -0300, Mauro Carvalho Chehab wrote: > > The Documentation/features contains a set of parseable files. > > It is not worth converting them to ReST format, as they're > > useful the way it is. It is, however, interesting to parse > > them and produce output on different formats: > > > > 1) Output the contents of a feature in ReST format; > > > > 2) Output what features a given architecture supports; > > > > 3) Output a matrix with features x architectures. > > > > Signed-off-by: Mauro Carvalho Chehab > > --- > > > > As commented at KS mailing list, converting the Documentation/features > > file to ReST may not be the best way to handle it. > > > > This script allows validating the features files and to generate ReST files > > on three different formats. > > > > The goal is to support it via a sphinx extension, in order to be able to add > > the features inside the Kernel documentation. > > > > scripts/get_feat.pl | 470 ++++++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 470 insertions(+) > > create mode 100755 scripts/get_feat.pl > > > > diff --git a/scripts/get_feat.pl b/scripts/get_feat.pl > > new file mode 100755 > > index 000000000000..c5a267b12f49 > > --- /dev/null > > +++ b/scripts/get_feat.pl > > @@ -0,0 +1,470 @@ > > +#!/usr/bin/perl > > + > > No SPDX line :( Added. I also added a Sphinx extension to handle it as well. You'll notice that it is almost a copy of kernel_abi.py. With regards to patch 2/2, it will generate both a feature x arch matrix at the admin-guide and a x86-specific features list. IMO, it makes sense to have a per-arch feature file just like the one I added to x86. As the patches converting documentation for other archs are still being merged via docs tree, before adding the features list to the other arch documents, it seems better to wait to do it after the next merge window. Those patches are applied after the ABI patches on this dir: https://git.linuxtv.org/mchehab/experimental.git/log/?h=abi_patches_v4.1 The output with both scripts are at: https://www.infradead.org/~mchehab/rst_features/index.html The relevant parts are: ABI: https://www.infradead.org/~mchehab/rst_features/admin-guide/abi.html Feature list x architecture (at admin-guide: https://www.infradead.org/~mchehab/rst_features/admin-guide/features.html X86 features: https://www.infradead.org/~mchehab/rst_features/x86/features.html While I didn't write a patch, with the new get_feat.pl script, we can probably get rid of the previous shell script at: Documentation/features/list-arch.sh As calling: ./scripts/get_feat.pl current Will output the same content (with a different format, though). Thanks, Mauro