Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp16084pxb; Tue, 26 Oct 2021 20:05:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+rNsHuUqOo3Ig67JbxJGNogHbgJlSfq/XtxlB0wXMObjvdBvyPK+qrDz23yWtkmZnFpUL X-Received: by 2002:aa7:c952:: with SMTP id h18mr41902504edt.18.1635303906740; Tue, 26 Oct 2021 20:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635303906; cv=none; d=google.com; s=arc-20160816; b=FlaYjQ4b2hGE+hr4vSnPerqtNyGHpmDMdAlOxLI9b9raDBxSZLEZy/j8lCxlTGK6Dd 2FdiV9iciLxZ8eNODLS4KDHIq2qM+hl4tjG238CjALI1gpkvaGr0WSLgVYXCuoBzDRG/ in3FyywRmCsEGhFRAmv3zX02XuDshWxHsMH+WVv9nx9FSBl47IzimYTlAA37Y/r7zWcG 7N2JvvNV0vI5DiOWEUhSZCx56h4voL5avdce1e3fH8Ng+/DOTFfgDLUy2WuwONroWkw1 q49O9RDtoC8XaZboPokEhgytkO53eo6QwCJ1unRGBSrQavHCF0YZ6GQ7RZQ4+sjWL0Lx hkog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=9hWW0ySj1nWGdlJxyeRRqOVJEjSmeEjqAFoipUfzw0Q=; b=HjVKN93paIofVZelw3qZTe9N7x3bQ83zRrOe1fahnrSqA1hMzNz3wYNrmeUmyK2dut d2r4+H5IsBdxVkGr0yUyq2uKhImS9GGcX7sPvuJjG3bQYWc3GZwk6eqov0cmJMSg4ITa H0ossDTy5+SbXXTP8e46dl5RRFIgh4sLpMRZIXrPOR7y6bLs4L4TupsAk/JanAmniG0e t8N7i+pagT0UltuVJWHV8gv1vEU6opY+KoIlG6RjzRqOrIAsZWUw+0Q7Sg53ZVhCGn2F W0BcE8g0oD0sEjy1b+j6vKyfS4YwzotO3gxXDACmDGlJU74ZJXiKdzcF2q2mF9xoxLio TiNg== 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; 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 w26si12892421eds.622.2021.10.26.20.04.29; Tue, 26 Oct 2021 20:05: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; 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 S237716AbhJZRUg (ORCPT + 99 others); Tue, 26 Oct 2021 13:20:36 -0400 Received: from mail-ot1-f53.google.com ([209.85.210.53]:34315 "EHLO mail-ot1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237595AbhJZRUa (ORCPT ); Tue, 26 Oct 2021 13:20:30 -0400 Received: by mail-ot1-f53.google.com with SMTP id z5-20020a9d4685000000b005537cbe6e5aso14068853ote.1; Tue, 26 Oct 2021 10:18:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9hWW0ySj1nWGdlJxyeRRqOVJEjSmeEjqAFoipUfzw0Q=; b=pdSwhQTs3i+Qv2oVLkXDt4RpBfFVJQgyO7xjJVLtn9Tp7EsQJNfW1BMaBJ79JMo7kM vXioPfZvwfkZa/vhPR/gtbAWjAyYqjDWpsAnMLOiN3yatH/qkoudWCGqX475irrg3qLo wwk/BevNmEEBGztU367m9Amx65l78F5EY/iNu4PrkLDGxU8axwRzT0eqb0lnS6WyGUqy I9Val1Sigi9iF8oRRUtzbDSTVoW3XqYRjUXltewdFfOY1KC9XLcgn2wGl6HOUPIJFyAq HuwEC0hJf/nyxShUnt1iXaFWSkY4ZWu8d5q9xXoRoxkKQKo7ivLIyspn3RAB4yUO591i uRcQ== X-Gm-Message-State: AOAM532BUT2Ylf/uSl5KXADVo/WOZnvGumrB2WPWaLsKZj2wp6tM5ZHA qt/HBYiJWjHX9idt+9Wf2SETWG3KdA== X-Received: by 2002:a05:6830:1c64:: with SMTP id s4mr19877414otg.174.1635268686126; Tue, 26 Oct 2021 10:18:06 -0700 (PDT) Received: from xps15.herring.priv (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.googlemail.com with ESMTPSA id c37sm4894553otu.36.2021.10.26.10.18.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 10:18:05 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Luca Ceresoli , Masahiro Yamada Subject: [PATCH] dt-bindings: Add a help message when dtschema tools are missing Date: Tue, 26 Oct 2021 12:18:04 -0500 Message-Id: <20211026171804.2867369-1-robh@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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; } @{ echo $(DT_SCHEMA_MIN_VERSION); \ $(DT_DOC_CHECKER) --version 2>/dev/null || echo 0; } | sort -Vc >/dev/null || \ { echo "ERROR: dtschema minimum version is v$(DT_SCHEMA_MIN_VERSION)" >&2; false; } -- 2.32.0