Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp140404lqe; Fri, 5 Apr 2024 15:56:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBAUs7DI1aX7bTU0i0VCAVY2+fZFIy5R/QEjCYQF/DcYLXisN1qQhopaPpo19TvHri25BveyBLhaDTI33OoqKysZ6vVZBs2Nrwz5QIDA== X-Google-Smtp-Source: AGHT+IGs3hqUjhCAiM1/VH6CSR8OtybmzmLAHsnOV3YiMm0bT2vib+vJSMAPgoqvMB2BOKgIOR8A X-Received: by 2002:a05:6358:ed08:b0:183:55bf:3442 with SMTP id hy8-20020a056358ed0800b0018355bf3442mr2700406rwb.0.1712357785382; Fri, 05 Apr 2024 15:56:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712357785; cv=pass; d=google.com; s=arc-20160816; b=LHHrxKS+n50UNtgRxTbQM4acDizslhZ7xAl8sjWyHjaRaMnVQBcH9FcYIqYm/su1l6 K8UlfpsEd/MxHMC8VtFrkZ0fXS0/0lWPAFh90qTEzrJcNXTQP6bW47R35VzJlazjx65g SOzLPdePRIpO5t/mj2vtJc8sfU0uQ+2nLdfHxMEKj4GiacHbHbo+uNXOSaZ5I2kTJ2Xe Pr6vd5xSvZOd7cH9mwLsD2anVMw+DP32Rjw1CV+3ayOczF9s67SxW1CPjCZ0YSUXMhjS a10y96yh3Z6o2KpOtpbtsuFXoP2Gd7rwNdfKMxTmajopbb23iP9vbStg+kEyOixQPXli E2Eg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=Dbt571wrFKCo1oOzCq63390O8cN3137LI2MYTpnBeRk=; fh=yyhSJ7kJbelaT0zflq8pCNhUDvl607XpqkpdkJIFH54=; b=ne+IB8+6jkB2e8/SAvrZbFm8IAUvDCgiqzjS5Jlc1rQsAm6Z4RYDSZABy0IvwJmU9D wg+/UpGTZvRCa66J/LxlUWqj6gTslbCFa0v/SWy0JwAGtRj/Mgg4b6yXjURU1r92YDL5 NDmEWHVJGuCnLwUHMKpvqd3NQfmnMvqPl0l5FPkUP2n0yF5m9sVWQRKIv/JwwmOU2zgo yBiomPHK1QZqtPmW7zDPn2e11bHweaRp++zJ8TyX+fnMoWkyn1jADugOVyv/Dwc+ILep VdGycF5pzz7d6PPFqqhrxUY6YQkMaSGZPg9g4kru6V+9EGf+u6vPYuPDd7fHbIEuKncv 4sPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AlVY4DMo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133693-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133693-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 8-20020a631948000000b005ee3cfc3620si2061719pgz.670.2024.04.05.15.56.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 15:56:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133693-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AlVY4DMo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133693-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133693-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 02B642871FD for ; Fri, 5 Apr 2024 22:56:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2123E339A8; Fri, 5 Apr 2024 22:56:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AlVY4DMo" 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 435662E65B; Fri, 5 Apr 2024 22:56:12 +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=1712357773; cv=none; b=k/OKHavaHAhzluuJH6nOFwSJBiJGDvEkQG7HKJ5LexjS4wvwRN2RwSR7vndu0/ASh6Hc4yvd5fWghJmPXLJzMOxQKKiFZs1/Be1vpwQCe8g0R/aD7OglbfkJWMirAcqr2MWw2GxsPCQplcDYKPjZlRM15XlspivYNCKeKziPE18= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712357773; c=relaxed/simple; bh=TDecBVGR8Z84vprI1AU7jHqlNMUvpmFqe8+A+uJNij8=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=RujP46ip75in0di5Wl3MjLccJfuoyaXD13WRp2vJ5nTj92KbSd+pp5VoPwQqio8RYNt2vNO+4EEaNal7tdaf3oExnE5RgapgzBBVpsuxI41rIyulFT+YiO3zA5daKSwELdFBhnKAdEhEOhZLahZ6dfOMHOF69uK8ttDVI+IyiZs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AlVY4DMo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92392C433C7; Fri, 5 Apr 2024 22:56:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712357772; bh=TDecBVGR8Z84vprI1AU7jHqlNMUvpmFqe8+A+uJNij8=; h=From:Subject:Date:To:Cc:From; b=AlVY4DMoO99H/b4tjpKMrQGNVIai9E0Y4ewseG5Pn+u2BN6Q+u2iX8bhjAF311aJW L2ScV0ahVEX19cyoMsYUmhQgd+v6Jf1Sk+q+1gql1YympTk/8logkRdWcH6Mcwueed Sdjx9oxh3LKK/0DMgndYRlN+DYuPSvd4EKX1tBcVla/LwgmmOFi98LCMFIBEKRT4KY 6oI8uUYolLDfGAC80w25R3ihJqP7nTf3YkqEHccD5AnXkBOi8K0G+ZzC36xD5Sq+X2 RG6hGit71O4vfhifx9hu04E9pfrAQ3jGw519XhZIlYsxMr4CItPoCBLNTQeEigKYDe ieOjRBm8omWvQ== From: Rob Herring Subject: [PATCH v2 0/3] dt-bindings: kbuild: Rework build rules and dependencies Date: Fri, 05 Apr 2024 17:56:00 -0500 Message-Id: <20240405-dt-kbuild-rework-v2-0-3a035caee357@kernel.org> 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 X-B4-Tracking: v=1; b=H4sIAICBEGYC/x3MTQ5AMBBA4avIrE3SVCu4iliUDiYEmfpLxN01l t/ivQcCCVOAKnlA6OTA6xKh0wS60S0DIfto0EobZZRFv+PUHjx7FLpWmbDPbO7aolTeWIjZJtT z/S/r5n0/USj9dmIAAAA= 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 This series reworks the DT binding build rules and dependencies. It fixes a problem with if_changed_rule Masahiro reported some time back[1] and improves the dependency handling for the DT validation targets. Relative to v1, I've dropped all but 1 one of the top-level targets added in v1. The only top-level target added it for building the processed schema used by multiple targets. Rob v1: https://lore.kernel.org/all/20220824203934.2855320-1-robh@kernel.org/ [1] https://lore.kernel.org/all/20220817152027.16928-1-masahiroy@kernel.org/ Signed-off-by: Rob Herring --- Rob Herring (3): dt-bindings: kbuild: Simplify examples target patsubst dt-bindings: kbuild: Split targets out to separate rules dt-bindings: kbuild: Add separate target/dependency for processed-schema.json Documentation/devicetree/bindings/Makefile | 34 ++++++++++++++++++------------ Makefile | 24 ++++++++++----------- scripts/Makefile.lib | 2 +- 3 files changed, 33 insertions(+), 27 deletions(-) --- base-commit: 4cece764965020c22cff7665b18a012006359095 change-id: 20240405-dt-kbuild-rework-f356ab890d45 Best regards, -- Rob Herring