From patchwork Tue Jul 30 14:59:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 170069 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp2741074ile; Tue, 30 Jul 2019 07:59:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxk4RfMuPVyQjKokCVFCQt+3Ea2wXpI3dG3Xx+JolOO58ahQkJi3yZqmevnVIaPrL0xcfJA X-Received: by 2002:a17:902:a03:: with SMTP id 3mr114127703plo.302.1564498778818; Tue, 30 Jul 2019 07:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564498778; cv=none; d=google.com; s=arc-20160816; b=Vdgffcy5LlMpMV0GtHXycjzvNbRl9ZWA87qp6TnF+7eHwwBcMU1un6aen9n+5HibGt x+Bh5HoOpIQqibsX16g11BtlaiKgtapSU+h2vohtqIfH9Zn2sj+8lBEZ4u6l6bWvGt94 /XTVD70SBRVD6auEpZsWbdzIHgjqLldvoHTTcn/wgU4usxGvzJ2cg12mqZtyQMAN+HjJ 7L1NDjCCg+//Dw1NUzl98na1twVn/gxfLMoZZTI998DQynqbEclVGA8xV+aoJAdxJnmQ b4kPxT6SbcBldDgVZ/yIIOM73CoScmOoo8Fqh+SXf1iN52aK0UbYfk2NN5Ui3My/O1BN NDbw== 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 :message-id:date:subject:cc:to:from; bh=VDQ6N11AAuFuFo85qHNKBrrA+iF4giDQhs8MrBVj2/U=; b=u08MBlZOcvxu+foO8Zb9eH+kYUasbA+nTajVZdholDOgrlNpf+Qm4BWcISXSLMgZcT 9xJPMkELQeIiUxYYZSU401rZnwi8tlxE6wQce1+Zt7DLnSckI7q+o04BGR+8iRUhcbq1 9QrWJIz81LEK6qSOWlib/LmVMutaVu9iSCDLBNtVCI9mi1SNSeq0vyxsHe5zPFs7OM/6 wgYwT/FoPQcVAGRNUZfDMCtviZG/VMV18ZIp7efdR5IxD8/OK3JJRpIN6vk1XPydrJI3 077AWqpEXELf7dHc84vn1ZH7svUtgB+D+5eWnRzwO5TzsMii9Vi5MMpJPeZ+gldBox43 Vuig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 j74si29603280pje.12.2019.07.30.07.59.38; Tue, 30 Jul 2019 07:59:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727476AbfG3O7i (ORCPT + 8 others); Tue, 30 Jul 2019 10:59:38 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:43296 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728526AbfG3O7i (ORCPT ); Tue, 30 Jul 2019 10:59:38 -0400 Received: by mail-io1-f65.google.com with SMTP id k20so128723688ios.10; Tue, 30 Jul 2019 07:59:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VDQ6N11AAuFuFo85qHNKBrrA+iF4giDQhs8MrBVj2/U=; b=FlFDNv7qEiT7xGol/w+JrSk0waaMTEhkacpiTtJc49vXGdfS97geXbVa7KpkoXGqkY u6p/VtA/c9Qmb1PMqWvlV90dl4N7lMfWhqSu8gc0KRLXxHsbjGXD1KZJ11nO9gl+Bk94 E9jifgrwF6ccqvXjb4voO4pcjGAVZksLWEIl7pGwgPOCM0OQdEK3IMbktwJnAgqFKgqr pDi/sBcfzUtWL6o5BEIQavQOzW9JwdTsp/xQuvc9xQ+Ryb+FR4UbhsVxqsl2Be02yFAC vyxM//IBspkLrhTDGGwKGwUDhNnspRAkSzCRLkpZBF6G30+JieGWcaVrJqSfZ5KQZQAF 8a1Q== X-Gm-Message-State: APjAAAVQk6qsdtlkGfZn8GsJRygZmi8R/jyr/+N/51xhZVPVd5exWyo7 3ymHpiSnN7AVa7NuHj2Zp3BBA3Q= X-Received: by 2002:a5d:8253:: with SMTP id n19mr5661994ioo.80.1564498776564; Tue, 30 Jul 2019 07:59:36 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.254]) by smtp.googlemail.com with ESMTPSA id p10sm81147279iob.54.2019.07.30.07.59.35 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 30 Jul 2019 07:59:36 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Guido_G=C3=BCnther?= Subject: [PATCH] dt-bindings: Fix generated example files getting added to schemas Date: Tue, 30 Jul 2019 08:59:35 -0600 Message-Id: <20190730145935.26248-1-robh@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Commit 837158b847a4 ("dt-bindings: Check the examples against the schemas") started generating YAML encoded DT files to validate the examples against the schema. When running 'make dt_binding_check' in tree after the 1st time, the generated example .dt.yaml files are mistakenly added to the list of schema files. Exclude *.example.dt.yaml files from the search for schema files. Fixes: 837158b847a4 ("dt-bindings: Check the examples against the schemas") Reported-by: Guido Günther Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.20.1 Tested-by: Guido Günther diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/devicetree/bindings/Makefile index 6b0dfd5c17ba..5138a2f6232a 100644 --- a/Documentation/devicetree/bindings/Makefile +++ b/Documentation/devicetree/bindings/Makefile @@ -19,7 +19,9 @@ quiet_cmd_mk_schema = SCHEMA $@ DT_DOCS = $(shell \ cd $(srctree)/$(src) && \ - find * \( -name '*.yaml' ! -name $(DT_TMP_SCHEMA) \) \ + find * \( -name '*.yaml' ! \ + -name $(DT_TMP_SCHEMA) ! \ + -name '*.example.dt.yaml' \) \ ) DT_SCHEMA_FILES ?= $(addprefix $(src)/,$(DT_DOCS))