[U-Boot] about CONFIG_SYS_GENERIC_BOARD

Scott Wood scottwood at freescale.com
Fri Aug 16 21:19:15 CEST 2013


On Fri, 2013-08-16 at 13:02 +0800, FengHua wrote:
> hi Simon,
>         I have worked on generic board for a few days, but something confuse me.
>         Why it is needed?
>         Each processor architecture has different features, this will
> affect processor specific and board specific code. Putting board_init_*
> code of each platform into one file with many macro switch make things
> messy, the board_f.c and board_r.c become very complicated and less
> readable. Is it really needed?

Most of the stuff in arch/arm/lib/board.c is not processor specific (and
certainly not board specific).  It's poorly named and should have been
called something like "init.c".

-Scott





More information about the U-Boot mailing list