Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp846808pxb; Wed, 27 Oct 2021 13:37:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuEeYLWKgNE4rMd8PpkQxh/9Cl+J+WtQ9m1Vb4iQk0ADuUKDMDvt4GoYkPrEnO+LOin4ri X-Received: by 2002:a17:906:14c7:: with SMTP id y7mr43763581ejc.123.1635367071398; Wed, 27 Oct 2021 13:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635367071; cv=none; d=google.com; s=arc-20160816; b=wDWKFZvhzqgqopIGYhxRckjjW3Tmu4RhRYuCQLnBQ+orTXZwdPezEBmTvp8IS/7lrM /0hp+z8jiE+Bn3ALesIJsq2okuJ4meXD9kH7AXQjBCMeFHugwKObLPr5uCkNlNEy/QE4 UXhqoWYx2qbKGVwx+uwwqL4SXdBoh0+6M6LYlHqDrYHzygJv0Kh+Y02Vyx4P7nlRRWCa V5qWr+oOiRpmob5GZ4zrMDYKWOrt7Tl/7j3nti8tpV9gY5PcSseuMTjPJF7pEgKT2HVt l2lN9K2LG3pEttS9KkNA1cVmJAuYywb+TCgQLGCqK6D7G5zn6BbS9jPZ1Fhe73Ql8tXy rJ8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=FH9SrlVxi6CbE0Ll90Op9ke5qGfXDa83yDYEI41Q2W4=; b=jpSM+BE1QF+PsT0hOJ7+eKbpOGdEPF6h9wDlz0K6vjHAzw4XwM42sW2GesYIt8B4wP WGx2j3bC2JInCk87j9xRwxuigMBcs8BfiL0DQCd44vUdnjoL80SyOTcYW2cgZx4rJXyM c0vrl7lOolA+abIF2bVWUH7hQI87lGYX20o3G3l4YmPJlXIEQkavdKDQAophgZlWTetC tkclMK5YMMa4H+eT78A9qX0zGbIlYlG6cINIEcsiSAU1WuZCLWPOPqlWJl6ThLIchnAG zDsdcWm0t5XfbXfVK0QRLVPOMLuzGMRLuIrJhweWInwrEsEELgEsne+9f6Mg0bW7HY7k Be2A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si1435084edx.533.2021.10.27.13.37.03; Wed, 27 Oct 2021 13:37:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238603AbhJ0HdX (ORCPT + 99 others); Wed, 27 Oct 2021 03:33:23 -0400 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:35363 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231144AbhJ0HdW (ORCPT ); Wed, 27 Oct 2021 03:33:22 -0400 Received: from [79.2.93.196] (port=38082 helo=[192.168.101.73]) by hostingweb31.netsons.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1mfdOh-00Ebpp-PV; Wed, 27 Oct 2021 09:30:55 +0200 Subject: Re: [PATCH] dt-bindings: Add a help message when dtschema tools are missing To: Rob Herring , devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada References: <20211026171804.2867369-1-robh@kernel.org> From: Luca Ceresoli Message-ID: <8c6d5a97-14f7-9155-6f90-17e6e33d77c2@lucaceresoli.net> Date: Wed, 27 Oct 2021 09:30:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211026171804.2867369-1-robh@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca+lucaceresoli.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, thanks for this patch! On 26/10/21 19:18, Rob Herring wrote: > The dtschema version check works, but is not that clear when dtschema is > neither installed nor in the PATH. Add a separate check and message if Nit: I think it should say "either not installed or not in the PATH". > dt-doc-validate is not found. > > Cc: Luca Ceresoli > Cc: Masahiro Yamada > Signed-off-by: Rob Herring > --- > Documentation/devicetree/bindings/Makefile | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/devicetree/bindings/Makefile > index 8d6d912c6a6a..001b4f62b741 100644 > --- a/Documentation/devicetree/bindings/Makefile > +++ b/Documentation/devicetree/bindings/Makefile > @@ -9,6 +9,10 @@ DT_SCHEMA_MIN_VERSION = 2021.2.1 > > PHONY += check_dtschema_version > check_dtschema_version: > + @which $(DT_DOC_CHECKER) >/dev/null || \ > + { echo "Error: '$(DT_DOC_CHECKER)' not found!" \ > + "\nEnsure dtschema python package is installed and in your PATH." \ > + "\nCurrent PATH is:\n$$PATH\n" >&2; false; } You need 'echo -e' for the '\n'. Otherwise looks and works well. -- Luca