Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3055600pxb; Sat, 26 Mar 2022 10:02:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFwDMnyVYRafqcNAp9v89lpguWp/wGdg7YSnAX+bT8AWvOWVSVJ/2nYYEyueDQC/7QbzTj X-Received: by 2002:a17:907:7288:b0:6df:d1a6:a7d with SMTP id dt8-20020a170907728800b006dfd1a60a7dmr17964340ejc.726.1648314153106; Sat, 26 Mar 2022 10:02:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648314153; cv=none; d=google.com; s=arc-20160816; b=HIfRd4EV61ZUdzFClZaTN6QTVzjEfePDb7wBLgedltomWs11BwvfY92ZCdtdL74E05 X00bhtc3uQg6duZZ/BocPt+ehTOPKnfZu7mIX/Bm/+eVFoZFUgwhkqtUn7qAgZnCQ1CW lXNyB41r6nLY0z9zyC6WQWNatDcUV/H9QYbUq2thRW7P3jo6jjkBrZ+fGMl3LLOLaHEd y0w7L98YbvWWvupHtzTahML8QIZ+1xi06qPBi8qk6b1/9Vqq9I4G0+Oba07auzPurPd2 RUEu+s9M9T30yioj6EDwQ3NlO0zK+H0r2rNFzcVbZhlUyRxHpmUMxN+n7U0IA2gW6/O6 Gq8Q== 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=L25Md2G0OHzOoBJvjWnQZEP/NQuNeKwcqyLg9/uIoP0=; b=PT8BkadKwbtVK3uiYxlyt+ZbTXgo4VMetO22KKbHMQ0bgUipogdhaiAtguwtgOWUST S0ZdFJwSGTKgUEjorfcRtiFyjH33XkUMFt8hz3wfj9firKaNvk8ImrRDkNMwr5qFhhCB zdiEhcFkRJbJsSP0Ohvxf7K5gGQDviCDFZ0gYYuWsiXp2LN3w3PV778CD7ragovJD1Da IoCZ/uMWoHYbcdscQVs26dPPcF/jKiSjn6SWm4pfb5mUbci2IyZ29Q1Fzi0xBVztqp+4 9VjMuFl2HhEmjw6QOBXnbbdkt7OXMon0Bb1xeCw2N3FY++inCMbfBhN2SpT2asBFs7sI Lmgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q86UPSv8; 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 e12-20020a170906c00c00b006e0598b7d80si6432525ejz.821.2022.03.26.10.01.56; Sat, 26 Mar 2022 10:02:33 -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=Q86UPSv8; 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 S232572AbiCZK3T (ORCPT + 99 others); Sat, 26 Mar 2022 06:29:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232521AbiCZK3E (ORCPT ); Sat, 26 Mar 2022 06:29:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C456755BD; Sat, 26 Mar 2022 03:27:28 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 2E7C460B82; Sat, 26 Mar 2022 10:27:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81305C36AE5; 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=/RJA2D1Ibpq79TzqVCMA7zkbXSOivMOodsfJk7S3Qmk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q86UPSv8zRhM3lQr6i9Y9IkByBT9njgqHH+uLokHT9YsqWSPg2c/IIrDrdJtALKDI gi54RUQpqm3kKdyMEMd5oTIXyaKcxn+Ge+S2dxcbIEIHMMqMRhOLrIs+fnvthDuJGT kTZs+bhY82JoJizeT9DzZhvX1ShnylX2lcOlpVk4VTiXPJyaRAaNzFsDW3Mvxnvb6O CmEzu0Wp9OkjUc1RwrPgVgSR3pTgCVQZIY362ssJ2feCB+w6n4qFET0/qUdUZkm99s YbxrF90leklRIC0lTJ8V0L99yug53mHl8l9kVWfos0noA66oXZt8AlLR/h7PVovlDf 4yOl8McvdUFMw== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1nY3dl-00Co0g-6Q; 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 4/6] docs: kernel_include.py: add sphinx build dependencies Date: Sat, 26 Mar 2022 11:27:22 +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=-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 The files included by kernel-include should be added as build dependencies, in order for sphinx-build to rebuild the corresponding docs if any changes at the included file happens. 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/ Documentation/sphinx/kernel_include.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/sphinx/kernel_include.py b/Documentation/sphinx/kernel_include.py index f523aa68a36b..abe768088377 100755 --- a/Documentation/sphinx/kernel_include.py +++ b/Documentation/sphinx/kernel_include.py @@ -59,6 +59,7 @@ class KernelInclude(Include): u"""KernelInclude (``kernel-include``) directive""" def run(self): + env = self.state.document.settings.env path = os.path.realpath( os.path.expandvars(self.arguments[0])) @@ -70,6 +71,8 @@ class KernelInclude(Include): self.arguments[0] = path + env.note_dependency(os.path.abspath(path)) + #return super(KernelInclude, self).run() # won't work, see HINTs in _run() return self._run() -- 2.35.1