Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 02FC0EB64DC for ; Fri, 21 Jul 2023 16:47:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A3A1786258; Fri, 21 Jul 2023 18:47:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="RxOpke5C"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AB34286272; Fri, 21 Jul 2023 18:47:52 +0200 (CEST) Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 50123861DA for ; Fri, 21 Jul 2023 18:47:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=n-francis@ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36LGlYgN112861; Fri, 21 Jul 2023 11:47:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1689958054; bh=dPEYWsNkFeRJiRJ3Cx0edYzF9o45A+jOgYUAEo+LKmI=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=RxOpke5CnKWCs9iO+ze7d23OUNCkMIUhx7w+BIMdKSWgQY3asAy2ex3cJVJUPhh3R FCKkuEBfXCr1v8acH4qCrMWtfRU6/2ktgrfOvJgz7q/jcaRm0y9zG+R2l0GV964F0p GNfrEI0mQpdo3UJ2x7ARTdRoJoumvaay4o6ShfJs= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36LGlYwP001796 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 21 Jul 2023 11:47:34 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 21 Jul 2023 11:47:34 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 21 Jul 2023 11:47:34 -0500 Received: from [10.24.69.126] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36LGlVQc026732; Fri, 21 Jul 2023 11:47:32 -0500 Message-ID: <225127b8-3cb5-e121-c570-c60adf2de70a@ti.com> Date: Fri, 21 Jul 2023 22:17:30 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 0/6] binman: Template fixes and improvements To: Simon Glass , U-Boot Mailing List CC: Alper Nebi Yasak , Stefan Herbrechtsmeier , Philippe Reynes , Peng Fan , Heinrich Schuchardt , Jerry Van Baren References: <20230721160710.968748-1-sjg@chromium.org> Content-Language: en-US From: Neha Malcom Francis In-Reply-To: <20230721160710.968748-1-sjg@chromium.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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 Hi Simon On 21/07/23 21:37, Simon Glass wrote: > With the basic template feature in place, some problems have come to > light. > > Firstly, keeping the template around while processing entries seems > unnecessary and perhaps confusing, so this is removed. > > Secondly this series aims to support phandles in a more intuitive way, > rather than just ignoring them in templates. It includes an experimental > patch to copy phandles from template so that it is possible to so > something like: > > template { > some_node: some-node { > }; > }; > > image { > insert-template = <&template>; > }; > > with the some_node phandle being copied to the 'image' node, to result in: > > image { > insert-template = <&template>; > > some_node: some-node { > }; > }; > > Thanks for this patch series! I will try using this. > > Simon Glass (6): > binman: Produce a template-file after processing > dtoc: Make properties dirty when purging them > dtoc: Add some debugging when copying nodes > fdt: Allow copying phandles into templates > binman: Remove templates after use > WIP: binman: Support templates containing phandles > > tools/binman/binman.rst | 8 +++- > tools/binman/control.py | 32 ++++++++++++-- > tools/binman/ftest.py | 31 +++++++++++++ > tools/binman/test/291_template_phandle.dts | 51 ++++++++++++++++++++++ > tools/dtoc/fdt.py | 9 +++- > tools/dtoc/test/dtoc_test_copy.dts | 6 ++- > tools/dtoc/test_fdt.py | 34 ++++++++++----- > 7 files changed, 153 insertions(+), 18 deletions(-) > create mode 100644 tools/binman/test/291_template_phandle.dts > -- Thanking You Neha Malcom Francis