[U-Boot] [PATCH] arm: socfpga: Guard commands with CONFIG_SPL_BUILD tests

Marek Vasut marex at denx.de
Sun Dec 24 13:55:44 UTC 2017


On 12/24/2017 03:24 AM, Tom Rini wrote:
> On Sun, Dec 24, 2017 at 01:40:31AM +0100, Marek Vasut wrote:
>> On 12/22/2017 06:19 PM, Tom Rini wrote:
>>> In order for these commands to not be included in SPL we need to guard
>>> compilation with CONFIG_SPL_BUILD checks.  Reorganize some sections of
>>> code slightly in order to avoid new warnings and mark the command
>>> functions as static as they should have been before.
>>
>> I'd expect the gc sections to collect those, is that no longer the case?
> 
> It collects things in the general case, yes, gc sections collects
> things.  In the case of linker lists, since we include them, no, they
> don't get discarded.
> 
>> Do these commands actually land in the SPL and does this patch make any
>> size difference ?
> 
> Yes, they're included in SPL today and this patch causes them to not be.
> 

OK, I'll pick it and push it as part of the socfpga PR.

-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list