[U-Boot] SPL framework re-design

Aneesh V aneesh at ti.com
Fri Jun 17 09:02:38 CEST 2011


On Friday 17 June 2011 03:39 AM, Wolfgang Denk wrote:
> Dear Scott Wood,
>
> In message<20110616114556.7d3c2a78 at schlenkerla.am.freescale.net>  you wrote:
>>
>> What is a "generic SPL library", or even a "generic NAND SPL library"?
>>
>> There is no code that is shared by all NAND SPLs.  The files directly under
>> "nand_spl/" are alternatives that the board makefile can choose.
>
> I think there is tons of duplicated code that could and should be
> extraced into common directories.
>
>> Counterproposal: keep the basic structure the same, but refactor the
>> makefiles so that they use a common template but supply their own policy.
>>
>> That is, the board makefile would just set some variables to be lists of
>> objects it's interested in (and any other relevant tunables, or special
>> rules), and then include the common SPL makefile that will do all the
>> symlinking and building.
>
> Or put this from the head on it's feet and use a board specific
> config.mk which gets included by the SPL makefile?

And also 'config.mk's that are SoC specific, CPU specific etc?
Otherwise the board specific config.mk will still duplicate SoC and CPU
content.

best regards,
Aneesh


More information about the U-Boot mailing list