[U-Boot] [PATCH] sunxi: Remove some unnecessary #ifdefs

Ian Campbell ijc+uboot at hellion.org.uk
Sun Jul 10 10:12:52 CEST 2016


On Sat, 2016-07-09 at 15:05 +0200, Hans de Goede wrote:
> We always define CONFIG_MISC_INIT_R on sunxi and misc_init_r is never
> called in the spl, so the linker will optimize it and
> parse_spl_header(),
> of which it is the only caller, away.
> 
> On the tests I've done (Orange Pi PC build) the SPL actually becomes
> 8 bytes smaller with this patch.
> 
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>

Acked-by: Ian Campbell <ijc at hellion.org.uk>



More information about the U-Boot mailing list