From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 24 Apr 2020 13:08:45 -0400 Subject: [PATCH 1/4] env: remove callback.o for an SPL build In-Reply-To: <20200227135600.28853-2-rasmus.villemoes@prevas.dk> References: <20200227135600.28853-1-rasmus.villemoes@prevas.dk> <20200227135600.28853-2-rasmus.villemoes@prevas.dk> Message-ID: <20200424170845.GA4555@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Feb 27, 2020 at 01:56:10PM +0000, Rasmus Villemoes wrote: > env.h says this about about callback declarations (U_BOOT_ENV_CALLBACK): > > * For SPL these are silently dropped to reduce code size, since environment > * callbacks are not supported with SPL. > > So env_callback_init() does a lot of work to not find anything in the > guaranteed empty env_clbk list. Drop callback.o entirely from the link > and stub out the only public function defined in callback.o. This cuts > about 600 bytes from the SPL on my ppc build. > > Signed-off-by: Rasmus Villemoes > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: