From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 31 Aug 2023 12:44:41 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qbfAI-00FpkM-Fq for lore@lore.pengutronix.de; Thu, 31 Aug 2023 12:44:41 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qbfAF-0003Cs-Bv; Thu, 31 Aug 2023 12:44:39 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qbfA2-0003CB-Th; Thu, 31 Aug 2023 12:44:26 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qbfA2-002tmZ-AC; Thu, 31 Aug 2023 12:44:26 +0200 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1qbfA2-00C3vC-00; Thu, 31 Aug 2023 12:44:26 +0200 From: Roland Hieber To: ptxdist@pengutronix.de Date: Thu, 31 Aug 2023 12:44:23 +0200 Message-Id: <20230831104425.2874985-1-rhi@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Mail-Followup-To: Roland Hieber , ptxdist@pengutronix.de Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH v2 1/3] kernel: add make target for the installed device trees X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Roland Hieber Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false This makes it easy to depend on the kernel.targetinstall stage by depending on one of the .dtb's that it installs into the image dir, e.g. when building a custom recipe for a FIT image. As a nice side-effect, you can simply call "ptxdist image " to build the device tree. Signed-off-by: Roland Hieber --- PATCH v2: * change ifneq syntax PATCH v1: https://lore.ptxdist.org/ptxdist/20230822121234.2040303-1-rhi@pengutronix.de --- rules/kernel.make | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rules/kernel.make b/rules/kernel.make index e70af54e6137..a12838bd78ea 100644 --- a/rules/kernel.make +++ b/rules/kernel.make @@ -281,6 +281,10 @@ endif # Target-Install # ---------------------------------------------------------------------------- +ifneq ($(KERNEL_DTB_FILES),) +$(addprefix $(IMAGEDIR)/,$(KERNEL_DTB_FILES)): $(STATEDIR)/kernel.targetinstall +endif + $(STATEDIR)/kernel.targetinstall: @$(call targetinfo) -- 2.39.2