From: Alper Nebi Yasak Date: Tue, 8 Sep 2020 20:33:00 +0300 Subject: [PATCH v4 1/3] binman: Allow selecting default FIT configuration In-Reply-To: <20200906103901.v4.1.Ie75709c8b68c270e911bba4dbd521706c966087f@changeid> References: <20200906163910.18686-1-sjg@chromium.org> <20200906103901.v4.1.Ie75709c8b68c270e911bba4dbd521706c966087f@changeid> Message-ID: <7a121628-6fbd-0006-73dc-69b3993b6c53@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06/09/2020 19:39, Simon Glass wrote: > Add a new entry argument to the fit entry which allows selection of the > default configuration to use. This is the 'default' property in the > 'configurations' node. > > Update the Makefile to pass in the value of DEVICE_TREE or > CONFIG_DEFAULT_DEVICE_TREE to provide this information. > > Signed-off-by: Simon Glass > Suggested-by: Michal Simek > --- > > Changes in v4: > - Add more documentation for DEFAULT-SEQ I might be too late to say this but the SEQ thing looks ugly to me. Maybe there could be some generic control-flow-like nodes that could generate and insert things in their own place. If it makes sense, I'm imagining something like: fit { images { __for__ { for,variable = "name"; for,in-args = "of-list"; fdt-#name { description = "fdt-$name.dtb"; type = "flat_dt"; compression = "none"; }; }; }; configurations { __for__ { for,variable = "name" for,in-args = "of-list"; __if__ { if,arg-equals = "default-dt", "$name"; default = "config-#name"; }; config-#name { description = "conf-$name.dtb"; fdt = "fdt-#name"; }; }; }; };