From patchwork Sun Apr 29 01:56:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 10370443 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 26383602DC for ; Sun, 29 Apr 2018 01:56:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F409B28C54 for ; Sun, 29 Apr 2018 01:56:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3E3F28C5A; Sun, 29 Apr 2018 01:56:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42C2928C54 for ; Sun, 29 Apr 2018 01:56:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751494AbeD2B4x (ORCPT ); Sat, 28 Apr 2018 21:56:53 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:57438 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751319AbeD2B4x (ORCPT ); Sat, 28 Apr 2018 21:56:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Date:Message-ID:Subject:From:To:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=vfJE4OZRqfuejXsH6iL7d4u5gUxQSRAkhWDQssJaXus=; b=M1gG75fEt0sivcxNVwmNvFxPA 5hJVXN05b/5+gI2szRBtwT/FaDU4fDsa7ILqSZzhQDS9fklivcNR31mKDwHW1AVCQSjCq5+OdOLsV 1wIXCu8Nt/Me9NviUsZzSF9Rs4V/L0/bhnzn7kMM9KKoSSvKsf/OnH4GvD1JnWFofOWLqPpCrCTYm 2nv8XU3LssrcPGHuk6geS295+EU/aNvPCH7Rqa4gVWGpN3mfYCe3Dres7ukxKAvRn8U70APGpySgN yH6ZMvUGlQVbpptmKYnC+B/uJvyjEftNsna5FASBviJjJcHuAkYa3fJOTHOywXqEKNyNRoqn/r4np LzpjMwzFw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fCba8-0002rv-Oe; Sun, 29 Apr 2018 01:56:52 +0000 To: linux-kbuild , LKML , Mauro Carvalho Chehab From: Randy Dunlap Subject: [RFC patch] Documenation: don't build media .rst files when not building Documentation/media/ Message-ID: <10b4346b-d9ac-b7d1-4187-0a227ae53cf4@infradead.org> Date: Sat, 28 Apr 2018 18:56:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Language: en-US Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Don't build media .rst files from header files when Documentation/media/ is not in the target SPHINXDIRS. It looks like the dependencies in Documentation/media/Makefile should take care of running parse-headers.pl to generated .rst files from the header files, but it's not happening and I don't see why not. --- Documentation/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- linux-next-20180426.orig/Documentation/Makefile +++ linux-next-20180426/Documentation/Makefile @@ -52,8 +52,7 @@ loop_cmd = $(echo-cmd) $(cmd_$(1)) || ex # e.g. "media" for the linux-tv book-set at ./Documentation/media quiet_cmd_sphinx = SPHINX $@ --> file://$(abspath $(BUILDDIR)/$3/$4) - cmd_sphinx = $(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/media $2 && \ - PYTHONDONTWRITEBYTECODE=1 \ + cmd_sphinx = PYTHONDONTWRITEBYTECODE=1 \ BUILDDIR=$(abspath $(BUILDDIR)) SPHINX_CONF=$(abspath $(srctree)/$(src)/$5/$(SPHINX_CONF)) \ $(SPHINXBUILD) \ -b $2 \