[U-Boot] [PATCH v5 4/5] OMAP: networking support for SPL

Ilya Yanok ilya.yanok at cogentembedded.com
Mon Sep 17 20:10:46 CEST 2012


On Mon, Sep 17, 2012 at 10:07 PM, Tom Rini <trini at ti.com> wrote:

> > That's not really about garbage collection in this case (net-spl).
> > I want to disable some functionality of generic net code not some
> > stuff used only by commands implementation. The confusion comes
> > from the fact that this code is protected by CONFIG_CMD_* defines.
>
> So I guess the code construct is roughly:
> function_we_need(...) {
> #ifdef CONFIG_CMD_A
>   ... stuff_spl_does_not_need();
> #endif
> ...
> }
>
> ?  Otherwise we would end up building files we don't use, but then all
> of the un-used code gets garbage collected.
>

Exactly.

Regards, Ilya.


More information about the U-Boot mailing list