From patchwork Tue Jan 22 15:52:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 1029355 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43kXxV1xPDz9s7T for ; Wed, 23 Jan 2019 02:52:46 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728719AbfAVPwo (ORCPT ); Tue, 22 Jan 2019 10:52:44 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:39522 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728664AbfAVPwo (ORCPT ); Tue, 22 Jan 2019 10:52:44 -0500 Received: by mail-oi1-f195.google.com with SMTP id i6so17772674oia.6; Tue, 22 Jan 2019 07:52:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=dp1AW7FOcWjCzmDodaUU8xKqbFfUgPNbofInvPo9T80=; b=BYGtjXjRnf3vtoWQ+UyX1Mi2KbFFfMvJ3VVS+nbhRxa0fXBdTy2hoMTzG8eHL4rTwP SnkFzJzRjxuI0iam55a/c5ogHNJTiFbwfpeEf0XZCQ0xz/7Y23AGMEGQcK85pl+uhl0y jh/wk5wrZKfry0k4rqJixoR/ADGXkNKfiL44wKOMz/sB5zGldUG9MyK31emL88p/QDxp 4FSEmIdM5PavhAcTDDDB5+Mfv3Mt3A0wVoQ6LFQOXcU0PCnPCRYJqPxiwqd2v0s7R2UI XQ8KGRTNwDUYbY9gK8PzF5etzb97pvYbT9zjbZwAN/elx2ep/UF/esTj+HJNUPwfc7xk VFDA== X-Gm-Message-State: AJcUukeqR8iManSBSKBctr5uavWno2+ZohtpU+/TWJr56yelpjjs7Q0Q ey5t3Gc71JiHrR79XwkxkyretqpQsg== X-Google-Smtp-Source: ALg8bN7fr8FrGGPUtR2bBQjo4dZp5OygGtDkJ6OU/oa+eUFIX9pNXYO9CvEHDHSPewDZ/upK8nl0fw== X-Received: by 2002:aca:be85:: with SMTP id o127mr8375371oif.164.1548172363604; Tue, 22 Jan 2019 07:52:43 -0800 (PST) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id j11sm7911135oif.9.2019.01.22.07.52.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Jan 2019 07:52:43 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: Fix dt_binding_check target for in tree builds Date: Tue, 22 Jan 2019 09:52:42 -0600 Message-Id: <20190122155242.2770-1-robh@kernel.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On in tree builds, subsequent builds will incorrectly include the intermediate file 'processed-schema.yaml' with the input schema files resulting in a build error. Update the find command to ignore processed-schema.yaml. Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/devicetree/bindings/Makefile index 6e5cef0ed6fb..50daa0b3b032 100644 --- a/Documentation/devicetree/bindings/Makefile +++ b/Documentation/devicetree/bindings/Makefile @@ -17,7 +17,11 @@ extra-y += $(DT_TMP_SCHEMA) quiet_cmd_mk_schema = SCHEMA $@ cmd_mk_schema = $(DT_MK_SCHEMA) $(DT_MK_SCHEMA_FLAGS) -o $@ $(filter-out FORCE, $^) -DT_DOCS = $(shell cd $(srctree)/$(src) && find * -name '*.yaml') +DT_DOCS = $(shell \ + cd $(srctree)/$(src) && \ + find * \( -name '*.yaml' ! -name $(DT_TMP_SCHEMA) \) \ + ) + DT_SCHEMA_FILES ?= $(addprefix $(src)/,$(DT_DOCS)) extra-y += $(patsubst $(src)/%.yaml,%.example.dts, $(DT_SCHEMA_FILES))