Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp520853ybz; Tue, 21 Apr 2020 13:42:26 -0700 (PDT) X-Google-Smtp-Source: APiQypKAnqbyDG7IGCG5aBufD4tSJIXhksPaz9zCZenmpv3NZWkbr9ljlQT3MLYuNp2fmMamEPw0 X-Received: by 2002:a05:6402:1d33:: with SMTP id dh19mr9569772edb.338.1587501745941; Tue, 21 Apr 2020 13:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587501745; cv=none; d=google.com; s=arc-20160816; b=sh/OpobokXruY2tbGuY3MBkngDUfTe826wA10T8eniQ7UOYLfhbJ0CetPl2cZAMHTN YnwFmKY8oBI7wvirmLBphdU5jbIzrJfu/5e+rBH5uD1Xhpkrqs94PuUDeuOI3cqH1FUd HR8Gs+53+cHHZ62UU2Fx6j+gtQOYkxGakBRDeImVU2IG6Cmhy13zcg1an+ZXpIox0y7I fJs85d6umTUIQxPm3HSv9TOmQLOxhrj+tk32dC1MVBTAQ9jpMt2LrLgRvCNqPbREpSK0 50nWvOXTu1q6poz2L1gv6LrytA7gTRP9lK5WU4oqGv5W34usj+5P6PnIuuTEVlPWtbuL D6LQ== 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=oaT/MWV46J9AyEk9zS0VVuURh5Lv3vJScyxm2UL04/I=; b=ZilrLTxy0oLyWieMIut67GDyFIird4UdUscw2rLXsWi/fomg18Ui8X7EuE/KCWSMFk oiq5iL3PXNxzQAsRsA0/Oww03v4v9hbhNpiOLxDO+8Pu5CXrmBbCzSOCkRWuv+3FEtmm CrrU9KMc9IgcttIM/t7RdezAANhbggsMAEWOJ8wIB6B0GvXA+5e1w0tdMHblideib3ug Kkp5PmixXrM5pfyUvwOVNqwVdbaiUMAmhqJB/o+ex3LEjTin0sEq1o08QydF5xkqv7J9 qctdn3NffZ6bqI+9MNYb+jOE1Z+Tq9hbV8Ei8Z2iyvIVY1QpLvyf5BWQHQxSe0Q6dfAi DIMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="X/LSmDV8"; 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 p31si2017729edb.495.2020.04.21.13.42.01; Tue, 21 Apr 2020 13:42:25 -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="X/LSmDV8"; 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 S1726310AbgDUUks (ORCPT + 99 others); Tue, 21 Apr 2020 16:40:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:46348 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725850AbgDUUkr (ORCPT ); Tue, 21 Apr 2020 16:40:47 -0400 Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (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 B972020736; Tue, 21 Apr 2020 20:40:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587501646; bh=WPjD7z+S47NsJvoNNpoPjH0JcfobjHHPouuiRtqoLlc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=X/LSmDV89g9lH05MfV5FMdtZH65HJR472W7TAL+iEb6Pf4nMNLm04XdA5cCaoYo1c ugEC8Z3Ks5QtlYmaErTH9zLTdd1jRF4n3C8Kohw+8OUHS2b2ctFYnJJao6VSPVLnWo /FueaH64nNWtyv//yxWjI9jkp6/JoUqNXVd/vzMA= Received: by mail-qk1-f178.google.com with SMTP id n143so137978qkn.8; Tue, 21 Apr 2020 13:40:46 -0700 (PDT) X-Gm-Message-State: AGi0PuaixUajdiPHqy2qAs8a1fpsQhFzVSTM7l3a0/lIoNzJ94fp3vKm BcZfA5dJespPmUZ4CAZ3T5C7v2++caNr7dMAeg== X-Received: by 2002:a37:c43:: with SMTP id 64mr21464433qkm.119.1587501645887; Tue, 21 Apr 2020 13:40:45 -0700 (PDT) MIME-Version: 1.0 References: <20200229003731.2728-1-robh@kernel.org> <20200421100749.GA5429@pendragon.ideasonboard.com> <20200421110537.GC5983@pendragon.ideasonboard.com> <20200421134654.GD5983@pendragon.ideasonboard.com> In-Reply-To: From: Rob Herring Date: Tue, 21 Apr 2020 15:40:34 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] kbuild: Always validate DT binding examples To: Masahiro Yamada Cc: Laurent Pinchart , 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 2:31 PM Rob Herring wrote: > > On Tue, Apr 21, 2020 at 11:57 AM Masahiro Yamada wrote: > > > > Hi Rob, > > > > > > On Tue, Apr 21, 2020 at 11:01 PM Rob Herring wrote: > > > > > > > > It seems to only fail with out of tree builds (O=...). I expect that > > > > failures will become more common the more YAML bindings we have, even > > > > without long directory names. > > > > > > dt-mk-schema can take and recurse a single directory already, so does > > > this fix it for you: > > > > > > @@ -22,7 +22,7 @@ $(obj)/%.example.dts: $(src)/%.yaml > > > check_dtschema_version FORCE > > > DT_TMP_SCHEMA := $(obj)/processed-schema-examples.yaml > > > > > > quiet_cmd_mk_schema = SCHEMA $@ > > > - cmd_mk_schema = $(DT_MK_SCHEMA) $(DT_MK_SCHEMA_FLAGS) -o $@ > > > $(real-prereqs) > > > + cmd_mk_schema = $(DT_MK_SCHEMA) $(DT_MK_SCHEMA_FLAGS) -o $@ > > > $(srctree)/$(src) > > > > > > I am just curious. > > > > How come the tool excludes 'processed-schema*' and '*.example.dt.yaml' > > from $(srctree)/$(src) ? > > Uggg, it wouldn't. Can't everyone build out of tree. ;) I guess the options are: > > - Call dt-mk-schema on each file individually appending the result > - Make dt-mk-schema take stdin or a file with a list of files as > Masahiro suggested > > I'd like to avoid a dt-mk-schema change so I'll try to make the former > work. It's only been a day since adding a minimum version. :( Laurent, does this work for you? I've reproduced the problem, but just double checking. DT_TMP_SCHEMA := $(obj)/processed-schema-examples.yaml quiet_cmd_mk_schema = SCHEMA $@ - cmd_mk_schema = $(DT_MK_SCHEMA) $(DT_MK_SCHEMA_FLAGS) -o $@ $(real-prereqs) + cmd_mk_schema = $(file >$@.tmp, $(real-prereqs)) \ + cat $@.tmp | xargs $(DT_MK_SCHEMA) $(DT_MK_SCHEMA_FLAGS) -o $@ DT_DOCS = $(addprefix $(src)/, \ $(shell \