From patchwork Thu Aug 17 05:48:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 714384 Delivered-To: patch@linaro.org Received: by 2002:a5d:4012:0:b0:317:ecd7:513f with SMTP id n18csp2739793wrp; Wed, 16 Aug 2023 22:49:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXQswG3pwVBUej9P2JAS8WeXAFDu/q6ViJ7C8Ov86t5+mTWghHkOpB6MwfTT/FBnSBPtKD X-Received: by 2002:adf:ee84:0:b0:317:606d:c767 with SMTP id b4-20020adfee84000000b00317606dc767mr2865797wro.44.1692251372991; Wed, 16 Aug 2023 22:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692251372; cv=none; d=google.com; s=arc-20160816; b=wuYnNABp3vA8kX5fJHk70LPkEqf/SeAak28lDZAbUjDaOd9MB9+nh6IZXJuzUOelUt uS83d6RUj6h/IMOxJFDkagbvPuaPalviBL6OJQ7L1V0vKirOrJ4NGpHD4zJX6//dgVNs hNrE1YgOv4XrvT1scGzKDY5In9j5xdNqTux3he/i4eNYJ1D2RbivBVwfrUrREmK1yvoJ bIsN8HfzrZMS6t/7+G6zald/V805oM9SeOeS18AI6w1XmvaAcOPKHazI6LuouK5R1rfT TCRxfKba0E8ew0Ng1Vff95VNB5XwfN8vx1aSuDzimpkl1fb6UUquFWqBz7YSrIxnpw+U gODQ== 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=eUd+5IbIEyhOxFgd84rZLX8d34d7ENmrPtyfTPhN8/c=; fh=ikJSK2WVWLZPtKfyjzYjMbDKcRMYT5CY2x/iGdlGnWY=; b=mbmI9aDFpuSfNDPKkRJxhdOoo7sEJab/pdPu52zirCp2eWYVtBUxmamv460SAhG5N5 Jh10WtmrxloADv6IXRXQfA062FVkEl+xxRUOLcnXhIQJW4i2D1Hzt3kOkv55uWnd/vQ2 OAaZjbe73WUbA0zHvFHp+n6pfMKtQ4oPTgGuB7BRhpqYhzIVIdirR0GaV2ZVv8E3rtOt ihOEOPdVQooOkYY3NYL9lNYijV3PCqWqV/B84qCL0t0qcD6PN7XNuWujO8ulu5UiJc8X CB8Jrlfngx0ZDbUvRoxLaIiW/ZK710lJ9sZ3cy4hAenOAcEk038c/yNoutC1dL+oFIZk Yt8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id k5-20020a5d66c5000000b00317f3fd21b6si8006159wrw.477.2023.08.16.22.49.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 22:49:32 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 DD66F86A77; Thu, 17 Aug 2023 07:49:20 +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 753DB86979; Thu, 17 Aug 2023 07:49:19 +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 D4B5386979 for ; Thu, 17 Aug 2023 07:49:16 +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 34599D75; Wed, 16 Aug 2023 22:49:57 -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 08D263F762; Wed, 16 Aug 2023 22:49:13 -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 v2 2/6] scripts/Makefile.lib: Add dtsi include files as deps for building DTB Date: Thu, 17 Aug 2023 11:18:52 +0530 Message-Id: <20230817054856.2019253-3-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230817054856.2019253-1-sughosh.ganu@linaro.org> References: <20230817054856.2019253-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 V1: * New patch which only sets the dependencies for the dtb build. 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)