[U-Boot] [PATCH] arm: socfpga: Guard commands with CONFIG_SPL_BUILD tests
Tom Rini
trini at konsulko.com
Sun Dec 24 02:24:51 UTC 2017
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.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171223/f3856938/attachment.sig>
More information about the U-Boot
mailing list