[U-Boot] [PATCH v2] env: don't generate callback list entries for SPL

Kim Phillips kim.phillips at freescale.com
Thu Dec 20 23:49:51 CET 2012


On Thu, 20 Dec 2012 15:51:05 -0600
Scott Wood <scottwood at freescale.com> wrote:

> SPL doesn't write to the environment.  These list entries prevent the
> functions from being garbage-collected, even though nothing will look at
> the list.  This caused several SPL builds (e.g.  P2020RDB-PC_NAND) to
> break due to size limitations and/or unresolved symbols.
> 
> A static inline function is used to provide a context in which we
> can consume the callback, and thus avoid unused function warnings.
> 
> Signed-off-by: Scott Wood <scottwood at freescale.com>
> Acked-by: Joe Hershberger <joe.hershberger at gmail.com>
> ---

Acked-by: Kim Phillips <kim.phillips at freescale.com>

Thanks,

Kim



More information about the U-Boot mailing list