From patchwork Tue Aug 22 17:40:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 715778 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp393305wrp; Tue, 22 Aug 2023 10:42:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGGFi3IVMdp1pWaHhYG3qFRqgtkdY8NI5Bz0NI1J62kREBy/o+FUC9jzmGo7xSkmHAs2YMc X-Received: by 2002:a05:600c:3646:b0:3fe:d45a:5bfd with SMTP id y6-20020a05600c364600b003fed45a5bfdmr7531483wmq.13.1692726161447; Tue, 22 Aug 2023 10:42:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692726161; cv=none; d=google.com; s=arc-20160816; b=QTbRXXhLJ+Emg6BDixm32dAilWQX2T29SX8UznS+glOpyUlE5dJQss4Ms8WxXwk38h mKqnoSug1H4ckMVQ0etBoNkLdxs2ONdfy8RY2nMW5qh7O25N8go49QFlmUxcIQNgPKFO kXvY5BvK54XnWWPdUJLbEj/StffD+wG7fefp2N9cMKMD5XSVXAiI9H6ivyLGEe15sWYp 8QQgMdudi2usszsAwnu+WHH7psJ6Xgx/e7/ZKCTmXhf+G4UHGMg+82n8HbtPJ9vKLXzG uv0i6c+6Rk6Nx1b8pyHYD608ZRGfVqMZGqu7xPCCuSTUl9keW8v1N1O/ZR7Fp62/UuYt 1Ovw== 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=PA7aNoD2aBfwmynJXtwoyha9VDjZW2J16qPfkL22rCw=; fh=ikJSK2WVWLZPtKfyjzYjMbDKcRMYT5CY2x/iGdlGnWY=; b=p+382W7l1wMdCX9yK5bewO6ICmMRawCicKVPy80MipfPYdvv0t29lP5mG+BMSJIiqR tlB6qCKE3tXtY+9NahAMqZcovoRSQxdfylfEAKVnDXLX9LBhp5ZVFnO4OEozL98OZud/ OmDMEssNETcXKmLx84lma9wQ8j6v+EzMzOPODdd8mDSXiOqGQaI0m+Jy76t0Vr4Shcz7 BuCMmm37EUoVFaWiE7T6JMNcbX/F3WyT5tO9GW7lebhmRtZxF92PSKY87R26iu9gdeQG Uitmvv5vW3NYpDc2nV3/tjtiRZMM0vJvyMw2kk3vZtOp61JNKScITeV7MOuhqVz7keJe 58zA== 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 c1-20020a05600c0a4100b003fe1ca75380si5933653wmq.176.2023.08.22.10.42.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 10:42:41 -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 8BA2B864D4; Tue, 22 Aug 2023 19:41:09 +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 2FF7F86502; Tue, 22 Aug 2023 19:41:08 +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 8570A864FA for ; Tue, 22 Aug 2023 19:41:05 +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 C8A3D11FB; Tue, 22 Aug 2023 10:41:45 -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 B2EF63F762; Tue, 22 Aug 2023 10:41:02 -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 v11 11/15] scripts/Makefile.lib: Add dtsi include files as deps for building DTB Date: Tue, 22 Aug 2023 23:10:04 +0530 Message-Id: <20230822174008.626239-12-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230822174008.626239-1-sughosh.ganu@linaro.org> References: <20230822174008.626239-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 V10: 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)