From: Jean-Jacques Hiblot Date: Wed, 9 Oct 2019 12:10:03 +0200 Subject: [U-Boot] [PATCH v5 10/15] Makefile: Query the SPL Fit Generator for its dependencies In-Reply-To: <20191007160207.GK6716@bill-the-cat> References: <20190920152824.18958-1-jjhiblot@ti.com> <20190920152824.18958-11-jjhiblot@ti.com> <20191006171253.GW15735@bill-the-cat> <8bb55728-4f27-766c-caac-15813e0c8266@ti.com> <20191007160207.GK6716@bill-the-cat> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/10/2019 18:02, Tom Rini wrote: > On Mon, Oct 07, 2019 at 11:43:07AM +0200, Jean-Jacques Hiblot wrote: >> On 06/10/2019 19:12, Tom Rini wrote: >>> On Sun, Oct 06, 2019 at 04:57:29PM +0000, Auer, Lukas wrote: >>>> Hi Jean-Jacques, >>>> >>>> On Fri, 2019-09-20 at 17:28 +0200, Jean-Jacques Hiblot wrote: >>>>> To reduce the complexity of the Makefile, let the generator tell what its >>>>> dependencies are. For this purpose use the "--deps" option. >>>>> >>>> We recently added a generic FIT generator script for RISC-V, located at >>>> arch/riscv/lib/mkimage_fit_opensbi.sh . Can you add the --deps option >>>> to that script as well? It does not have any dependencies, so it can be >>>> handled the same way as in the i.MX and sunxi FIT generator scripts. >>> Can we please work on generalizing these scripts and either using >>> binman, updating binman as needed or coming up with a POSIX SH tool that >>> can do what needs doing? Thanks! >> Maybe it can be done. But we would need to know first what the needs are. >> >> In may case, all I need is to bundle at build time a set of DTB overlays >> with u-boot.bin and some DTBs. >> >> For this binman is overkill, using dtc is enough, though I guess binman can >> be used instead. > OK, and in this case we're talking about tools/k3_fit_atf.sh which is > based on board/sunxi/mksunxi_fit_atf.sh ? That's two similar but not > quite just mergable POSIX SH tools. If we end up with an intermediate > state of having tools/generators/ with a number of $(soc)_fit_atf.sh > scripts that'll start to make it clearer what is/isn't the same. Maybe > we won't have a single tool, but if it's at least make it clearer where > things belong and we can get consistency. Thanks! I see your point. This patch is not essential for this series, so I'll drop this for the time being and try to come up with a better solution when adding SPL overlay support for AM6/J7. JJ >