Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp140481lqe; Fri, 5 Apr 2024 15:56:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUEyfqC8JyigweKXwkUAyJ4AuI2CNIkhlULiiRlH9uaQCX/opH35cJM0w94s+hXIcehsmvewV5fMJdhPbFog03KutZmbYoEtpjn/R2/5Q== X-Google-Smtp-Source: AGHT+IG/k6cxaiNqyFXlAV7WkLVPOPUDswhoEPDNrCilRnvq7i9KTN8i6XvjHf++M4BkCMxoRBG1 X-Received: by 2002:a05:6512:3ba4:b0:516:be61:7688 with SMTP id g36-20020a0565123ba400b00516be617688mr2186539lfv.22.1712357796234; Fri, 05 Apr 2024 15:56:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712357796; cv=pass; d=google.com; s=arc-20160816; b=lpyxk7DHbkw0UuUrsf2S7nkWiHvDDuyGhbxOmzgqvUL7kAevYUnfFGsjl0ouYfvzGc XD62N5OWAOLOAe/rvDaXuGgK+uMkRBsoBh8YtRLcuW/HhSsyEClt+z0cLh/XcjbYth4t HcXWGVzK7ToHmmEoj4IuKu+p+TuQJwykNo6BNi4jhdnx5ilOrki4KQjjl+LUFxcyvlkp FbypaOYqt+zoIII5DBrvfa19pdqPJyZZg3qsfPd3HhJJDZ0gmp2Rf8UlHS81cR0LSYiy g+q4IppqrZ3gwptiwiNNgA/zh1/E2UIwu3XCUpZXRIcxv330Bd0LQdGQFVDpYvbq4znk drMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=XiA+Dd6gSuNZ/m5io6tax14bvriTUmT5kUEZED5mJ5Y=; fh=yyhSJ7kJbelaT0zflq8pCNhUDvl607XpqkpdkJIFH54=; b=KsPe6y5Kp1XrPyfW7UKjjbmB3jktmabG41Ek11uDubpV649HbtlOe3ChwvXflfeY/w nnYTRvWamXfpXmdwLCRNTOoW1XRRJmxLQFhQCtvVC9eMord9P2kLgXLzbfVAf5fBgQYF hG2IXi/VY5UqkiMfykhjfRDOgi3i2xsQfm8QtdBR97pLD+I4IEcUmB0Qr/fdBS/xMBOX yssUEAcdGLrYJ531zU22ZH5JEF7a8hpLfsgnA/y7i88JifKkuCqlVttndpY/7MSw79wE beEcRhaSUcFpCsCCGc1SR0r0KTF2P3aSeR30bj6ozgaNsJhsTzo+qAQ/BXut0acXjYx/ PFsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pivt5Oed; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133694-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133694-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dv25-20020a170906b81900b00a518528773asi1130728ejb.439.2024.04.05.15.56.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 15:56:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133694-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pivt5Oed; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133694-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133694-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EEDA21F21A7E for ; Fri, 5 Apr 2024 22:56:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84416376E7; Fri, 5 Apr 2024 22:56:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pivt5Oed" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4E5036B0D; Fri, 5 Apr 2024 22:56:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712357775; cv=none; b=Ygj5t0sRfOCYzR4llez/h6G91MCJ4un7Skm+xFiJcjpOqsF8c6w0ZPSEuDizQEW4eUhkPODEZHjeKsGpDvi0eBCVXIpezGk0fAZYtfszOf+to129k3kVV3J8+Ui/xbiC40UO36vu203XGtd/cfNTSbym9b3g/3xKStI3iejlW9E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712357775; c=relaxed/simple; bh=trQSVrFFgKc03l1meR9oLABQJfqpYjIaW5IZInGv0VM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=e6+Zva7SHKF257Db0XcW/8VCt5n46jRNa9TVSl3p4Wi/oI6fuyRQ251DsbmEJzsOdAfN+bZ+26STRXSsZ1hHRbyga/6aeR6xVA6aI9GRYTDTQAwvEDHm7zPszjgRzXKjABeAAImNCZWNiAS1PYwTQaruRW8Elc9rRY1OTCptyiY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pivt5Oed; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07E45C433F1; Fri, 5 Apr 2024 22:56:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712357775; bh=trQSVrFFgKc03l1meR9oLABQJfqpYjIaW5IZInGv0VM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=pivt5OedSqMRqVjSZpIirmPDDtFPCnCFH10QiedEnAvTIn1lSHhUiyVj8/BVdX0RH XwCvHuQd4APIX0xhMJfU8JOnb8PVTIrnQHexfCYze5CEZMNgSvC6mQuEhqj6ddZXAX GHEej1z3n2Xyg3ZAaSCRQ2bw6e12a+WDb9nPhHexSVxTt9ajfR/ffWxicw1aOFQVnY yzLZ8mnDzzPB+GWL6Gvm53o4sYrDQeVd9TQwuW3MHEV9vDuO2CvYVL6v8ZMjqd3yd0 +ywcqwkjVe7ScodOBhAILiT6sgt8FS4cgD2CmADG+n9xPHdOXE4qAJK6XzRRO1Hnjt NR6DNcXXjbzPA== From: Rob Herring Date: Fri, 05 Apr 2024 17:56:01 -0500 Subject: [PATCH v2 1/3] dt-bindings: kbuild: Simplify examples target patsubst Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240405-dt-kbuild-rework-v2-1-3a035caee357@kernel.org> References: <20240405-dt-kbuild-rework-v2-0-3a035caee357@kernel.org> In-Reply-To: <20240405-dt-kbuild-rework-v2-0-3a035caee357@kernel.org> To: Krzysztof Kozlowski , Conor Dooley , Masahiro Yamada , Nathan Chancellor , Nicolas Schier Cc: Dmitry Baryshkov , Marijn Suijten , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org X-Mailer: b4 0.13-dev Instead of stripping off the $(srctree) multiple times do it once up front, but keep the src/obj path as it is going to be needed in subsequent commit. Rename the variable to CHK_DT_EXAMPLES to better reflect what it contains. Signed-off-by: Rob Herring --- v2: New patch --- Documentation/devicetree/bindings/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/devicetree/bindings/Makefile index 5e08e3a6a97b..95f1436ebcd0 100644 --- a/Documentation/devicetree/bindings/Makefile +++ b/Documentation/devicetree/bindings/Makefile @@ -32,7 +32,7 @@ find_cmd = $(find_all_cmd) | \ sed 's|^$(srctree)/||' | \ grep -F -e "$(subst :," -e ",$(DT_SCHEMA_FILES))" | \ sed 's|^|$(srctree)/|' -CHK_DT_DOCS := $(shell $(find_cmd)) +CHK_DT_EXAMPLES := $(patsubst $(srctree)/%.yaml,%.example.dtb, $(shell $(find_cmd))) quiet_cmd_yamllint = LINT $(src) cmd_yamllint = ($(find_cmd) | \ @@ -68,8 +68,8 @@ $(obj)/processed-schema.json: $(DT_DOCS) $(src)/.yamllint check_dtschema_version $(call if_changed_rule,chkdt) always-y += processed-schema.json -always-$(CHECK_DT_BINDING) += $(patsubst $(srctree)/$(src)/%.yaml,%.example.dts, $(CHK_DT_DOCS)) -always-$(CHECK_DT_BINDING) += $(patsubst $(srctree)/$(src)/%.yaml,%.example.dtb, $(CHK_DT_DOCS)) +always-$(CHECK_DT_BINDING) += $(patsubst $(obj)/%,%, $(CHK_DT_EXAMPLES)) +always-$(CHECK_DT_BINDING) += $(patsubst $(obj)/%.dtb,%.dts, $(CHK_DT_EXAMPLES)) # Hack: avoid 'Argument list too long' error for 'make clean'. Remove most of # build artifacts here before they are processed by scripts/Makefile.clean -- 2.43.0