From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH 1/4] env: remove callback.o for an SPL build
Date: Fri, 24 Apr 2020 13:08:45 -0400 [thread overview]
Message-ID: <20200424170845.GA4555@bill-the-cat> (raw)
In-Reply-To: <20200227135600.28853-2-rasmus.villemoes@prevas.dk>
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 <rasmus.villemoes@prevas.dk>
> Reviewed-by: Simon Glass <sjg@chromium.org>
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: <https://lists.denx.de/pipermail/u-boot/attachments/20200424/d05d8301/attachment.sig>
next prev parent reply other threads:[~2020-04-24 17:08 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-27 13:56 [PATCH 0/4] remove (more) env callback code for SPL Rasmus Villemoes
2020-02-27 13:56 ` [PATCH 1/4] env: remove callback.o for an SPL build Rasmus Villemoes
2020-02-27 23:40 ` Simon Glass
2020-04-24 17:08 ` Tom Rini [this message]
2020-02-27 13:56 ` [PATCH 3/4] lib/hashtable.c: don't test ->callback in SPL Rasmus Villemoes
2020-02-27 23:40 ` Simon Glass
2020-04-24 17:08 ` Tom Rini
2020-02-27 13:56 ` [PATCH 2/4] lib/hashtable.c: create helper for calling env_entry::callback Rasmus Villemoes
2020-02-27 23:40 ` Simon Glass
2020-04-24 17:08 ` Tom Rini
2020-02-27 13:56 ` [PATCH 4/4] make env_entry::callback conditional on !CONFIG_SPL_BUILD Rasmus Villemoes
2020-02-27 23:40 ` Simon Glass
2020-04-24 17:09 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200424170845.GA4555@bill-the-cat \
--to=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox