From patchwork Fri Sep 3 15:52:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 506548 Delivered-To: patch@linaro.org Received: by 2002:a02:8629:0:0:0:0:0 with SMTP id e38csp1115720jai; Fri, 3 Sep 2021 08:52:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxt9jDnhgRF9OlZFmx4gQ9krmlm9JPTX0EiuGQmG5uWHiwfdCVZM4t6GXXT2Q0IlQpaD5TW X-Received: by 2002:a17:906:c205:: with SMTP id d5mr5071841ejz.74.1630684325407; Fri, 03 Sep 2021 08:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630684325; cv=none; d=google.com; s=arc-20160816; b=pLOliuc56ed075smORD5V7IbSH9Ngo+vVQEc+cT6XRYDRx1XCJie8LfKhS0Tn7CI5D iifDwAf5wzIGNyEOh+zOzQZaWxdqrY+vjYQFU1B1HDgbeG+IrOXeZyEhOpgQrugd/DLL UU5iNNucB3V8n1FHLvEm0xG2dxJ6dj+P3hLFEwbDGDt0kliHkq0RtRFtkgy8/hyuFhqc xT1N2bEm1UzFYcfaLBrRAV0rsQq7r8rEBbEms9Yhw+QcOt9VvK1okYHkNbs93s5XaQ2I RT7Jt0T2+b7ZSaEGveJO/H8dtX6pqbyzWwtu+8AoVxJ8oh/Fk8bG0Cz5TZN9CAJQ0tMU QT0A== 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=zVNFfi09M86JT10bziJ/Y2VXfaqfqBBOkyrez5O9qP0=; b=yh601SMqWofaxh4yqk2MCX7B1K8oZYnr9cX/mP73GqoChyaTPCTLegr8CTfnu90L/L PdOHiblt/gtG/VaQMmhZGQZyu76KlfvZTDTJRP1PBhbghctOqNTq6FWzP8vQvEgFmNiP UjGk6m+6F+sxmHdxpaHM+02NIoyDYeGfaQJW7nIH/+Ua39IUYUGkhjSuUeKYNQp9cFM9 cYkGmT2Nshdxhlpf3TFltZurj3PXsMrojTiq66/wOJidpeNkHpl8rQzWkk5bp+HYbiWp gOegp4yWDhsV0kRi6v7M0SqMtCfzlDRiHevJbjMmyMpHHXTMGsaVmi6z63wUi0HvhF7O J6TQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 p1si5467148ejm.169.2021.09.03.08.52.05; Fri, 03 Sep 2021 08:52:05 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1349658AbhICPxD (ORCPT + 6 others); Fri, 3 Sep 2021 11:53:03 -0400 Received: from mail-oo1-f53.google.com ([209.85.161.53]:46990 "EHLO mail-oo1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235632AbhICPxD (ORCPT ); Fri, 3 Sep 2021 11:53:03 -0400 Received: by mail-oo1-f53.google.com with SMTP id z1-20020a4a2241000000b0028e8dfb83b4so1630275ooe.13; Fri, 03 Sep 2021 08:52:03 -0700 (PDT) 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=zVNFfi09M86JT10bziJ/Y2VXfaqfqBBOkyrez5O9qP0=; b=UQjzBDOxQzB8cHcdtIDH7m/zjyCfeiJ8fkBV/yWRyNizq3sH0eOyHwPo7rwii5q67S 8PvhAC7gvwk2p8c22O02DHCwgsfdrRnC/xG07m/ILnXOw34OgfnRVLny5hySJCx8BG13 thw4tcyIKlTHYjpLtHpROjTLp15igbkhBvP8OK292JRlJWlNPWFWRu/Mr4wkYyIRpP+S DuOgkIl1EmC8WJRw/Ak4Oo7axNXpXIoNod21t9FMcQTvlmgNrwi99j8ExUx1UXdi6CNF zUL/2CRWqr+9i/7Es+FkP8GqEDHz0t3psuIy76s+DWXKa6zO7FNatyg1JqhA/6pkac+I TEDQ== X-Gm-Message-State: AOAM532seHlaSxzOS6ghaeQOVDgiivMR6S4+dKwJB72sDZyBIG0OR+Yl M9ejmCVmu/yzHJEW5uOtF6hB7ClnVg== X-Received: by 2002:a4a:1506:: with SMTP id 6mr3518815oon.93.1630684322565; Fri, 03 Sep 2021 08:52:02 -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 b25sm1078381ooq.6.2021.09.03.08.52.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Sep 2021 08:52:01 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org Cc: Dmitry Baryshkov , Tom Rini , Masahiro Yamada , linux-kbuild@vger.kernel.org Subject: [PATCH] kbuild: Enable DT schema checks for %.dtb targets Date: Fri, 3 Sep 2021 10:52:01 -0500 Message-Id: <20210903155201.3004567-1-robh@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org It is possible to build a single dtb, but not with DT schema validation enabled. Enable the schema validation to run for %.dtb targets. Anyone building a dtb for a specific platform *should* pay attention to schema warnings. This could be supported with a separate %.dt.yaml target instead. However, the .dt.yaml format is considered an intermediate format and could possibly go away at some point if schema checking is integrated into dtc. Also, the plan is to enable the schema checks by default once platforms are free of warnings, and this is a move in that direction. Cc: Dmitry Baryshkov Cc: Tom Rini Cc: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org Signed-off-by: Rob Herring --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.30.2 diff --git a/Makefile b/Makefile index ec9e8a0fe298..01b888cfe1dc 100644 --- a/Makefile +++ b/Makefile @@ -1399,8 +1399,8 @@ endif ifneq ($(dtstree),) -%.dtb: include/config/kernel.release scripts_dtc - $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@ +%.dtb: dt_binding_check include/config/kernel.release scripts_dtc + $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@ $(dtstree)/$*.dt.yaml %.dtbo: include/config/kernel.release scripts_dtc $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@ @@ -1409,7 +1409,7 @@ PHONY += dtbs dtbs_install dtbs_check dtbs: include/config/kernel.release scripts_dtc $(Q)$(MAKE) $(build)=$(dtstree) -ifneq ($(filter dtbs_check, $(MAKECMDGOALS)),) +ifneq ($(filter dtbs_check %.dtb, $(MAKECMDGOALS)),) export CHECK_DTBS=y dtbs: dt_binding_check endif