Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2110313pxb; Fri, 25 Mar 2022 11:15:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvLNoAXlE4suBv7yBWvmP7G4knjPfjdk6Oa8g1qDwZirxEwonmxbDxeNcMRtAc/4ZeB5dk X-Received: by 2002:a17:90a:bf0f:b0:1c7:c762:5892 with SMTP id c15-20020a17090abf0f00b001c7c7625892mr9888790pjs.234.1648232146139; Fri, 25 Mar 2022 11:15:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648232146; cv=none; d=google.com; s=arc-20160816; b=aehX29LOp7kLCqgnUlx9FMmf+JusZQfAlSQC58xI2mbvGGfwFsQn0CWt5xcOihm5ig NIiVWsquosGatBYZk9GeNxTRp67KGANzOb6Q0WbBYS0tn2cpvUSkHgg1JxFNAnvwbVR4 SwQVWBAETIO+y2tgNHYiA/LaNVuLIri9lvC5vDR65kyyYutl+WnoUq75rPVDoq0VHqJU 9ssyZSyHT6r5mBF7iinKIdSmey04P675jD68O7uTiFQr7WQpkntkDmVVhZZRtUuzBFQB 2kwU6vta6JUraDs1IdX5Idmz8MAUbz16S5KWIosH7iupiwrwxqXOJK2OLuoJA+PxrECf K2pQ== 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=yGjcGOOHTVvUr8ifNdY9iDazSH5tICVAiahebfVXSV4=; b=J2W+I6G8Az5T1ETJR12EkJWKPMX5FKA1W73RqQIKCsE+Qg4bq2qlwByWa1txfk3Fh0 8NpKg27sx81rscQX1CKnACAij7tqLhiE34TrkaatdDiM568UhxL+o53ecnFkEgFG2eRT W5wBkZpeC2PawnTkqHgZqcw3M4qvnyqOKPOcSl5K8/Jgb2IxbBRKhonUfI9FVo6QAhGt EKapKrchp83gVTio85Xd2n+CttWAAF8aQW8lO0E/ySLWb7M94J1jA195b6DUD3UWFvsu ZMnHXWFPfSUK57qcO8wJwd/+zU/SmlBubXzGam5CmfYw47ViTX91gxJclDVyuiKTJXyU 1n1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LL8PaMmM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id u12-20020a056a00124c00b004fa5a577b93si3505936pfi.51.2022.03.25.11.15.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:15:46 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LL8PaMmM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 8F11B15043B; Fri, 25 Mar 2022 10:44:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237715AbiCYOG5 (ORCPT + 99 others); Fri, 25 Mar 2022 10:06:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359263AbiCYOGx (ORCPT ); Fri, 25 Mar 2022 10:06:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50ED5D8F4A; Fri, 25 Mar 2022 07:05:19 -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 E556561B27; Fri, 25 Mar 2022 14:05:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A458C340F4; 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=m65/Et1iHVv6XP+JP+iGhMq2qae+wAHPwH92tV4AmNs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LL8PaMmMGJAI8oNbT6uPdYJ0tVOHWey22HqjkB57P4tUnAKX7JWx6Fs916lWUJh7I fgthCih3V7WkfAK0K562/PMBeW0Uz7qcOxLc9gurSVIM1ADqcsGy2Gh8q7eQp8UhDJ AW9B0Dp2am/vW6ngPhIgMBw6w4o3oFd/HemhDI+n2mmQmIhaDgTC/QTr84NFipVayh yrqbwl2sua/Jrv91hVJaxZIwtNiBnqM8DMvD1AAJCraIWEZOTJE70IFhlT04XEFhoj 717HTfSB2PszU0Dm2FZUKkQdp+Zjp69Xy0posk/73lYaiQ4GOciIFeLkCOOIGOTQeD tZGjOjdn/9Azg== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1nXkZ1-00Axz5-Tc; 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 4/4] docs: kernel_include.py: add sphinx build dependencies Date: Fri, 25 Mar 2022 15:05:14 +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 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 v2 0/4] at: https://lore.kernel.org/all/cover.1648216561.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