From patchwork Mon Aug 21 07:29:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 715363 Delivered-To: patch@linaro.org Received: by 2002:a5d:484e:0:b0:317:ecd7:513f with SMTP id n14csp1698836wrs; Mon, 21 Aug 2023 00:29:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFTjzxxOJUbAb/w0zJRu8fWxEGup3rx7EmP6mUdBqlmqS3aS6aSguEZJor8lth3+628Sy98 X-Received: by 2002:a2e:8189:0:b0:2b9:5695:d10d with SMTP id e9-20020a2e8189000000b002b95695d10dmr4097987ljg.36.1692602993254; Mon, 21 Aug 2023 00:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692602993; cv=none; d=google.com; s=arc-20160816; b=Y7H3LRI7B5LMn42xdikR0KfmzYtDVzF3Pi8/ch7IuFcvXpVhLB7bxweYlu1rZWJVaX xL64WiBiVficWxRhMx4k9vWuvEqykPMfexPlO16qyf1PO3pQH1pjXOrzZ3307FqVI6+e YFcScQyQ5v2E+QF+2W3N+7d0m/cRGe+HtpXoWdFu9lZrpVeJYF5wJc5SsFzgI95l6x3U Jm4yn/eYghrV+gfPJ+Hu1Sr5gaMlxiLZvGhumjY98shnzM94vANrwFWVb02T6fszcSM8 4gGKgfiH4nloAl6hGaX7IOUszEq1IiSV39Ps3ohT8vs0AAWwCmKT5vEZ1hxG9AmVcI4W AEJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=WD26qllDa4aiU232KsJQ4x4SVlNrGh6oJflQ23/JyIg=; fh=ikJSK2WVWLZPtKfyjzYjMbDKcRMYT5CY2x/iGdlGnWY=; b=f5ahqw1Q0tFBuWHeheZGvm7UK8XHnw528AnjJWqoFgTcDPgu0vTwOSbrZQY1VYr083 +GbYVeUtPIw782wikAqaRrQA3180zB8OFPtQs6brPSsq42i2gnbRv2t7JXe2gcZXQt2Y RPCbpmnpsAkhB5CbVmniif46DIn1QxCQAk6ZitnX/7zPch9+Ggi+KQWFOVLpIn3EneaR n5SmjbQE4SiFqZFZoKS9nd/Tn8Pj1Us/OeO+NSKwmmyjaIjOgr617u4wm+jIpyxvBHv+ yPwSzhXleBrkOCVcV42GxI1s1ZqWpyym2MHZKlGTGJbpyeUcuEzkxG7GrK04+YxWmxrD H+DA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id o11-20020a5d684b000000b00317e6f756casi3637726wrw.148.2023.08.21.00.29.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Aug 2023 00:29:53 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 412C487042; Mon, 21 Aug 2023 09:29:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 1C6EE8702E; Mon, 21 Aug 2023 09:29:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 7B0248695F for ; Mon, 21 Aug 2023 09:29:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B58312F4; Mon, 21 Aug 2023 00:30:12 -0700 (PDT) Received: from a076522.blr.arm.com (a076522.blr.arm.com [10.162.46.7]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B63A83F740; Mon, 21 Aug 2023 00:29:29 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Tom Rini , Sughosh Ganu Subject: [PATCH v3 2/6] scripts/Makefile.lib: Add dtsi include files as deps for building DTB Date: Mon, 21 Aug 2023 12:59:05 +0530 Message-Id: <20230821072909.2387400-3-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230821072909.2387400-1-sughosh.ganu@linaro.org> References: <20230821072909.2387400-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean At the time of building the DTB, some dtsi files can be selected for inclusion. Have these dtsi files as dependencies for the DTB target. This also ensures generation or updating the dtsi files if need be. Signed-off-by: Sughosh Ganu Acked-by: Ilias Apalodimas Reviewed-by: Tom Rini --- Changes since V2: None scripts/Makefile.lib | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 368b5a3e28..8c5e25c31c 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -334,7 +334,9 @@ cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \ ; \ sed "s:$(pre-tmp):$(<):" $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile) -$(obj)/%.dtb: $(src)/%.dts $(DTC) FORCE +dtsi_include_list_deps = $(addprefix $(obj)/,$(subst $(quote),,$(dtsi_include_list))) + +$(obj)/%.dtb: $(src)/%.dts $(DTC) $(dtsi_include_list_deps) FORCE $(call if_changed_dep,dtc) pre-tmp = $(subst $(comma),_,$(dot-target).pre.tmp)