Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2747170pxu; Mon, 7 Dec 2020 14:44:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2CjpdOBXycuBIGXvVGmYrRBqKxD6ZGpzO8hwl/QSJZOI3WjpQ7QKJFI6pojCqmx+rg7Tf X-Received: by 2002:aa7:d6c9:: with SMTP id x9mr21571556edr.96.1607381088583; Mon, 07 Dec 2020 14:44:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607381088; cv=none; d=google.com; s=arc-20160816; b=sgRWOu1qFY46OmfkZS8mN3OqY6+yyiBHNe+5onO1J1JthwN+3icg7d+KXQv6YjQfM1 iEAIM8BaPJDVTs4v8ok2vkMeN33n8xB9w6icDcjl+Ta4A+iSgdkR574trzl0giCFX30v wh+lqwc/+Wj89dnQmgbB67nV/Sb02OwEllw8+qxOIMd400qSbTr5obSFP3pTw9mhAEbd BYZuCCGZwEMkqmAke/bycMnvVXZ/gF5Pomf9dTLeqbiHgKADZcswNDr8qMcKUALJ8z5n /eXHjBgNUtYN0/gDHslkkMvvstkyH3d/9wbMdbGHICKC1OFvSNZi5yDrcz4gTwheC01p uL4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wLc/SHjSNl6PUkflh89RJh4GKASpYHLMHjFPMsm7Ir4=; b=Q0pEW/pc12Gxp9/SlG7eD6Vn5hKvK4Nrnw2SNBWUv73qc3ka/UWALL/Y2T7gQK4SWG kBEFrD12IqwLb4y917hXD78s6mWEmsKs/qxSgX+BMe/zFaSw0K8M+oFp4w3y5Qb2ztQW jmyujXzPPbykk/LHsHVsoZUlOTCYwkewITthta/yiTlzIQXKUPTVOoqRLyWtLxBcYbOK b4DGblOAUdT/juQ9U68ZVi9M3vlnyfNcTsNCd7jnSf/2dVmm1LrGAY0EMhQpj4/ZMWWm LFvw9c+BjYtbfLGr8JYSVzzsOyxPWYbFou4ZMn7rZ5ER8uGXVA2cNy2sw8ivV+DoIVYu UYgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oLNPdAyk; 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 v1si627794ejd.451.2020.12.07.14.44.25; Mon, 07 Dec 2020 14:44:48 -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=oLNPdAyk; 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 S1727940AbgLGWmR (ORCPT + 99 others); Mon, 7 Dec 2020 17:42:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725917AbgLGWmQ (ORCPT ); Mon, 7 Dec 2020 17:42:16 -0500 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0878BC061749; Mon, 7 Dec 2020 14:41:36 -0800 (PST) Received: by mail-ej1-x643.google.com with SMTP id d17so21845270ejy.9; Mon, 07 Dec 2020 14:41:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=wLc/SHjSNl6PUkflh89RJh4GKASpYHLMHjFPMsm7Ir4=; b=oLNPdAyktN/AyJU9ucNs0RUmdRsTYHODuIKyDjrn+eB5MJk2V85yso+j5/Z5d2VMSk JcKjxzBQ3TAThYirpQ6fAeHv0O8FlkTr8+je3NIIAkd3Z6TEJ2utdJWHHxNnw+f85V9a nzesyoR34EatevttyoCnh1KxenHYaSZVvKrXSORuSwU5gmaeXbmx044kLEAdhWcX3hTn 5ooGtSChEMcB/TIG75q3s1iuClVZqydQogf7+qQx+zBg/3DcKFYHdAlXezRG+gU7Yryk 0ta4c9OdNmNaB8YCJLRD8XSG78MuK8rTgoq0QX98QlSexBFajlkU7I2wziF3D2eei+oo YqCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=wLc/SHjSNl6PUkflh89RJh4GKASpYHLMHjFPMsm7Ir4=; b=BJnyGt0SDuV5hiklOD1XAZsDXj6MVvY7I3EC8SCHvCBB3QbdQpuOSUugq0gohWoudf n5JChOf/+BY+9bwVC3tkVacqYDuy5UgnJWwN/AwUDWOeFK3zAPMSIfMw9kfSJD4n9eZa fvwvC32szEnKrhIqJYTFIxnWE8x3nFcfS0GzKtd54IGX0aE4gi4+n+0fiGpSFeWoKtkm 15nkNU4sF4bEP5dM6yB14oiAjtHmL0AsRyTFIyPBWqmc5rf36tiPj5c7DIL+9iI9+dfZ R/HKIhgzxXtWSAvVWMmIFrL2uMiUMa6OxNkSwd5iSHkCanPRWayxOXmYj/UTKT5JenFD UXyg== X-Gm-Message-State: AOAM5332z07bF3jd+WVbqDGfFdvVatkYO0UDPFtwIcrUUW0yAXFF57GP TnPE8RxZU1FSCytEKASaHto= X-Received: by 2002:a17:906:4d8d:: with SMTP id s13mr21048772eju.305.1607380894694; Mon, 07 Dec 2020 14:41:34 -0800 (PST) Received: from ubuntu2004 ([188.24.159.61]) by smtp.gmail.com with ESMTPSA id c25sm13994082ejx.39.2020.12.07.14.41.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 14:41:33 -0800 (PST) Date: Tue, 8 Dec 2020 00:41:37 +0200 From: Cristian Ciocaltea To: Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] dt-bindings: Fix error in 'make dtbs_check' when using DT_SCHEMA_FILES Message-ID: <20201207224137.GA250758@ubuntu2004> References: <2519b8bde507ca6ccea9765ea197adaaa69a66d5.1605712328.git.cristian.ciocaltea@gmail.com> <20201207214831.GA865971@robh.at.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201207214831.GA865971@robh.at.kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 07, 2020 at 03:48:31PM -0600, Rob Herring wrote: > On Wed, Nov 18, 2020 at 05:20:50PM +0200, Cristian Ciocaltea wrote: > > If DT_SCHEMA_FILES is specified and contains more than one file paths, > > If that worked before, it was by chance. :) Yes, it's called '_FILES', > but more than one was on my todo list. I've been using it for a while, but I didn't know this was not officially supported.. > Anyways, I'll apply it. Great, thanks! > > '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 > >