El Sat, Jul 23, 2022 at 02:07:30PM +0200, Johan Jonker deia:
> 
> > +           mkimage {
> > +                   args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
> 
> > +#ifndef CONFIG_TPL
> > +                   u-boot-spl {
> > +                   };
> >             };
> > +#else
> > +                   u-boot-tpl {
> > +                   };
> > +           };
> > +
> 
> u-boot-spl is the input for mkimage and should be a subnode.
>
> > +           u-boot-spl {
> > +           };
> > +#endif
>

The input for mkimage can be tpl alone. 
I think this case is for rksd. For rksd one can simply concatenate 
the output of mkimage -n rk... -T rksd tpl  with the spl binary. 
That's why u-boot-spl is out of mkimage when there's u-boot-tpl.
for rksd I think mkimage just adds a header in front of the binary, 
so you can put the next binary right behind. You don't have to give spl 
to mkimage if you give it tpl.

Reply via email to