[U-Boot] [PATCH 2/2] config: Move CONFIG_BOARD_LATE_INIT to defconfigs

Masahiro Yamada yamada.masahiro at socionext.com
Sun Jan 22 04:45:44 CET 2017


Hi.


2017-01-22 8:02 GMT+09:00 Tom Rini <trini at konsulko.com>:
> On Sat, Jan 21, 2017 at 11:48:33AM +0100, Jagan Teki wrote:
>
>> Cc: Tom Rini <trini at konsulko.com>
>> Signed-off-by: Jagan Teki <jagan at openedev.com>
>
> Note: theadorable_debug grows by ~161 bytes in SPL as it had been
> enabling BOARD_LATE_INIT only for non-SPL which is now not allowed.
>
> Applied to u-boot/master, thanks!
>
> --


Now, CONFIG_BOARD_LATE_INIT can be enabled/disabled
from menuconfig, but generally this is not user-configurable
because disabling it will skip needed init procedure.

I thought the right thing to do was
  [1] Make each board "select BOARD_LATE_INIT"

        or

  [2] Change board_late_init() into a weak function so that
       each board file can overrides it, then deprecate
       CONFIG_BOARD_LATE_INIT.



-- 
Best Regards
Masahiro Yamada


More information about the U-Boot mailing list