
17 Sep
2012
17 Sep
'12
8:10 p.m.
On Mon, Sep 17, 2012 at 10:07 PM, Tom Rini trini@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.