Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp165799ybz; Tue, 21 Apr 2020 06:50:06 -0700 (PDT) X-Google-Smtp-Source: APiQypLKND5NP1/ZTu5izdkSF6Q+JF9Z/fxh9X9VCpjZyKYJbCnEslSg01O+7v7LZ4EXtjh9+O4+ X-Received: by 2002:a50:f005:: with SMTP id r5mr17835110edl.376.1587477006515; Tue, 21 Apr 2020 06:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587477006; cv=none; d=google.com; s=arc-20160816; b=RdZlN+spsg23tPGkUAE724eh5lN9GSJWAvqRBsZKP26zd/4BdmtVv9Usg7DtJ5wtH9 RtRUeKgT/EOwp5JItSSPNElVNUZj340Ll3ai0DEhqJsLoNWgfd11QlDSFT6SSGzmDhkQ yqXggQHpQ3UzFBlMArw7v550b+MQBVc8WjFX08/yf92wK6PJLgDUZg3ywtkBVo77Q6FF T4QmVXL9sZ+G764zWOPiqvRJuaP1siTXvbZ5ojcLAWGqTcetyk8QykSoUQuYlc1khQkb 5gv8+yZmUZX7G9h6UN678GN40K1wGLctjFw1Lj25sliHT/J2A8SDYwBMUnT6LX1bNfio fwHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=I2iJ1A1MrOdV6ILZCAQ9JtUiNZzJSYcjGzjv4zq40kE=; b=zYI7F89Dt4nxx4I1yTuley08xTWQcCoKYDPWvzwXgP3xUAbdsKoTxfQq6bEAnAUbKU N/7jqVpgBE0SaWCobGu0LRyyr7uvLmwObfPI6+anSvby35iSggU3TrloHkzbKNyFrW3s JrJSQJCPUh7eDrucBoCQ/Rz4ehU3HZybKdFSc7ExJbMsHxSpAepIhpnwQnFFV5FRjHpW FXrpp/ZrOaERxXvYAx+L6p2Z0vIp5jz/9hB1MqGAyOeuRAuQapn4hgTnVcbhsH9SUkej t2oB7hEgvK3wkbloHro1mkBOlhFcU6ZmoDJTmhUSNuBPRRRFywrmkKwbPD5y0M+VXoY/ HgnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Gcc67ApF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a25si1543063ejr.32.2020.04.21.06.49.43; Tue, 21 Apr 2020 06:50:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Gcc67ApF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729018AbgDUNrh (ORCPT + 99 others); Tue, 21 Apr 2020 09:47:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:53506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728479AbgDUNrh (ORCPT ); Tue, 21 Apr 2020 09:47:37 -0400 Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 91D8A20738; Tue, 21 Apr 2020 13:47:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587476856; bh=xwGfqpY+jSMQa7+aqhUnV5bg17fNQU268EGV84xlAog=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Gcc67ApFHiPldJCLWoZ6XmF0SmsCkqA8XNL/gqdg0koH5B58AOWyp8jGs7OZjEqdl G0moNuTw6tpgTmoEc6KTondsaxlioxB6f2zXKI8rAUN/IC5/7GiB8BTQcduneX2o9P w3ThwpDNOl302kA0XTnjG+xvj/q2FGUzdMOS65h8= Received: by mail-qk1-f172.google.com with SMTP id 20so14439166qkl.10; Tue, 21 Apr 2020 06:47:36 -0700 (PDT) X-Gm-Message-State: AGi0PuYNW0oute4+N586JyPZFoDQjnfjLRJFrQR8K9wF3DT7gQQqY8mN UDS3RRRf7lrV0x5GLN79qNx8WvENev00dJdQoQ== X-Received: by 2002:a37:61cd:: with SMTP id v196mr21383674qkb.393.1587476855700; Tue, 21 Apr 2020 06:47:35 -0700 (PDT) MIME-Version: 1.0 References: <20200229003731.2728-1-robh@kernel.org> <20200421100749.GA5429@pendragon.ideasonboard.com> <20200421110537.GC5983@pendragon.ideasonboard.com> In-Reply-To: From: Rob Herring Date: Tue, 21 Apr 2020 08:47:23 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] kbuild: Always validate DT binding examples To: Masahiro Yamada , Laurent Pinchart Cc: DTML , Linux Kernel Mailing List , Michal Marek , Linux Kbuild mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 21, 2020 at 8:16 AM Masahiro Yamada wrote: > > Hi Laurent, > > On Tue, Apr 21, 2020 at 8:05 PM Laurent Pinchart > wrote: > > > > Hi Yamada-san, > > > > On Tue, Apr 21, 2020 at 07:45:05PM +0900, Masahiro Yamada wrote: > > > On Tue, Apr 21, 2020 at 7:08 PM Laurent Pinchart wrote: > > > > On Fri, Feb 28, 2020 at 06:37:30PM -0600, Rob Herring wrote: > > > > > Most folks only run dt_binding_check on the single schema they care about > > > > > by setting DT_SCHEMA_FILES. That means example is only checked against > > > > > that one schema which is not always sufficient. > > > > > > > > > > Let's address this by splitting processed-schema.yaml into 2 files: one > > > > > that's always all schemas for the examples and one that's just the schema > > > > > in DT_SCHEMA_FILES for dtbs. > > > > > > > > This broke > > > > > > > > make DT_SCHEMA_FILES=Documentation/devicetree/.. dt_binding_check > > > > > > What is intended by > > > "DT_SCHEMA_FILES=Documentation/devicetree/.." ? > > > > My bad, I forgot to write that ... is the continuation of the string. > > It's any yaml schema file that has an example. > > Ah, OK. I just input verbatim. > > Is it broken? > > You can specify any individual file(s) under Documentation/devicetree/bindings/. > > For example, the following worked for me. Me too. There is however a bug I just noticed. We're now always setting '-u' for dtbs_check which means the core schema are never used. Masahiro, Got a better suggestion than adding the ifeq: ifeq ("$(origin DT_SCHEMA_FILES)", "command line") $(obj)/processed-schema.yaml: DT_MK_SCHEMA_FLAGS := -u endif Rob