Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp400796pxb; Wed, 18 Nov 2020 07:23:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzC9rIbZo/Hx8JO0ZQCIipiPTLai0v+fkKbeaf8d/tyQQpCcq9e1slQgDqa+ktkRJfEB3zb X-Received: by 2002:a05:6402:114c:: with SMTP id g12mr26254179edw.167.1605713035935; Wed, 18 Nov 2020 07:23:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605713035; cv=none; d=google.com; s=arc-20160816; b=x33zIbAV+yS/FocufQLUWASSzAYxwhXyPtLqbwzcyIgcM8P7kAgaqcRW6CNsG8AlwA LR3QwNdgPBbXo3IXIUtzG+40TxxqUH6hjhxujgWAXDi0c1eV1wWCz/vdZzwvz9So/pPB 0Gx2rcdkQzTtTWndwbryFPx/La4hwOh8uVXsTwRdiSh1EL+nniCJHi7BMrpxP//dAe9Y cIckNr9VoxJsXxJs8ld1XtyPgZMb5m5zWll8FjN9uK+Ly7WJEds49cmqBZYIMpSE+N/N kNrI1rKX2Ujz0u4H5yZnMLkXiwBEaSgVTAcPxm0MML4MxMnB/utZvgnjZDztb2yMFjos Ao6A== 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:dkim-signature; bh=JdBpN+/s+eu4dMv9PKV8l+WsBUdr8tnMkExlePSrDm8=; b=O57zWJs/qIXqnMasv7Fm0irLus8lgLyinYYmfm0rrNt8+hIQVIoMOsTzT81OXesYc9 N1lsFkdl9xUiRdV50Nt10Tyki9A8PNNsdSztD8wWynQOa8U5ainilwF9zyKeRjXI0LFB ZFGDdTisawvJVXcS6VTkZ1A3YDiArAyPk0JsORPtyjVMr09CU8N/J5LLNhC1L8Uir0mU xd4rV3jAwZ6LMr+l/IZEzecKRq+XZmF6v1moGp9Gahm0CwANKgLAoe5t/qfrVs2+N2AW faiGEx4wzRNJSVyhaHfEuOeIyGkIrZmIYvCsrxAqa4czJp7if7HpwiNhIvM64n+drAJM vLhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Pk48p8Zt; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si5665638eds.167.2020.11.18.07.23.31; Wed, 18 Nov 2020 07:23:55 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=Pk48p8Zt; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726224AbgKRPU4 (ORCPT + 99 others); Wed, 18 Nov 2020 10:20:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725943AbgKRPU4 (ORCPT ); Wed, 18 Nov 2020 10:20:56 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75A12C0613D4; Wed, 18 Nov 2020 07:20:54 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id l5so2366677edq.11; Wed, 18 Nov 2020 07:20:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JdBpN+/s+eu4dMv9PKV8l+WsBUdr8tnMkExlePSrDm8=; b=Pk48p8ZtWUvC6e3UkkoxM7aqSmvdiN2K0VPViD+hEhTP5zYx83Kp4XszdIG0mxNWL6 YQyOYsa3TDm5hgynlL7ZrA0YeKr1tbpq8dNSo4TfbJPHLe0TwD6bZBU7GT6S3WUiJmJC oVhbzrsBb+cMHMmMubgpmzj5P19FBqbqurmXtwDzEDWit0tSFS/UOHE80i1SAM4CFn7e ivRYGc+P9oJ7MiacCZAJN+RGQPKCXptvtvLVQlsI1Iju6BQQ0eQVq+EpiS84sjhqOTis n0QAxuUbEuXUtTYQ15EQ573E53OY11o4EFofeljWJNRHIElT0rWaES6Mc7vOh8eTdMet biWQ== 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=JdBpN+/s+eu4dMv9PKV8l+WsBUdr8tnMkExlePSrDm8=; b=qEGEspwMFv+FlaAsRSZE84XD4Py7WHMI4FHoOOFq/JNYd/q7H5yhOw6dElZswecSkK +ySr3lJ+ZHjx41yqhzLIgOgD8vyRf1L8fyZw6AM7Cp5i2SOen78cGduO+UfiDFeaHnyi 8zqSvZWrSsR6v5Prt36dEqvGCXxtSvJmTInteTW9m9b/WFfR8Kb/yTA6O9MjIGG1C7Lt YgF+8eoa4f8E3ohSuuJwIfZ14zwyzdt+PQJ9+0DHfkvM3QvL4nxwkroRKqtPDIglO03T kYLxhaHV4Gb1C1uXNMytQhiKTAd47YG6OeH9MkWmCOISOznseJZiXfJ9iLfOlCu7+cAd F/9A== X-Gm-Message-State: AOAM530KvUZy821saTiClOvn1x9Mw9YbBytWqUB2XoTDEr4XAwDaDr0J zJ/Ia42JEzl5Yh0e48bMUjA= X-Received: by 2002:aa7:c5c7:: with SMTP id h7mr2366534eds.143.1605712853164; Wed, 18 Nov 2020 07:20:53 -0800 (PST) Received: from localhost.localdomain ([188.24.159.61]) by smtp.gmail.com with ESMTPSA id k3sm12554313ejd.36.2020.11.18.07.20.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2020 07:20:52 -0800 (PST) From: Cristian Ciocaltea To: Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] dt-bindings: Fix error in 'make dtbs_check' when using DT_SCHEMA_FILES Date: Wed, 18 Nov 2020 17:20:50 +0200 Message-Id: <2519b8bde507ca6ccea9765ea197adaaa69a66d5.1605712328.git.cristian.ciocaltea@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If DT_SCHEMA_FILES is specified and contains more than one file paths, 'make dtbs_check' fails with the following message: $ make dtbs_check DT_SCHEMA_FILES="path/to/schema1.yaml path/to/schema2.yaml" SCHEMA Documentation/devicetree/bindings/processed-schema.json Documentation/devicetree/bindings/Makefile:77: recipe for target 'Documentation/devicetree/bindings/processed-schema.json' failed make[1]: *** [Documentation/devicetree/bindings/processed-schema.json] Error 255 make[1]: *** Deleting file 'Documentation/devicetree/bindings/processed-schema.json' Makefile:1364: recipe for target 'dt_binding_check' failed make: *** [dt_binding_check] Error 2 The error code 255 is returned by 'dt-mk-schema' when invoked as 'dt-mk-schema -j -u @', where '' is a temporary file that is generated to contain a list of SPACE delimited schema file paths, as indicated via DT_SCHEMA_FILES. However, it seems the file format has been recently changed in 'dt-mk-schema', which now expects each schema path to be provided on a separate line: $ dt-mk-schema --version 2020.12.dev4+g6de1c45 Therefore, let's change '' content format from path/to/schema1.yaml path/to/schema2.yaml ... path/to/schemaN.yaml to path/to/schema1.yaml path/to/schema2.yaml ... path/to/schemaN.yaml Signed-off-by: Cristian Ciocaltea --- Documentation/devicetree/bindings/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/devicetree/bindings/Makefile index f50420099a55..643eb873fd51 100644 --- a/Documentation/devicetree/bindings/Makefile +++ b/Documentation/devicetree/bindings/Makefile @@ -37,7 +37,7 @@ quiet_cmd_chk_bindings = CHKDT $@ quiet_cmd_mk_schema = SCHEMA $@ cmd_mk_schema = f=$$(mktemp) ; \ $(if $(DT_MK_SCHEMA_FLAGS), \ - echo $(real-prereqs), \ + printf '%s\n' $(real-prereqs), \ $(find_cmd)) > $$f ; \ $(DT_MK_SCHEMA) -j $(DT_MK_SCHEMA_FLAGS) @$$f > $@ ; \ rm -f $$f -- 2.29.2