diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2020-02-27 13:56:10 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-04-24 10:09:59 -0400 |
commit | e13df08a2685345f12ae1ec1d99ea3f599d58360 (patch) | |
tree | 52e4328b571478f445f11b40348ab5f4a24472e5 /env | |
parent | 532de8d99c754c2e514ee4a069f5d69df644c9bc (diff) | |
download | u-boot-e13df08a2685345f12ae1ec1d99ea3f599d58360.zip u-boot-e13df08a2685345f12ae1ec1d99ea3f599d58360.tar.gz u-boot-e13df08a2685345f12ae1ec1d99ea3f599d58360.tar.bz2 |
env: remove callback.o for an SPL build
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>
Diffstat (limited to 'env')
-rw-r--r-- | env/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/env/Makefile b/env/Makefile index e2a165b..c4ad654 100644 --- a/env/Makefile +++ b/env/Makefile @@ -7,9 +7,9 @@ obj-$(CONFIG_$(SPL_TPL_)ENV_SUPPORT) += common.o obj-$(CONFIG_$(SPL_TPL_)ENV_SUPPORT) += env.o obj-$(CONFIG_$(SPL_TPL_)ENV_SUPPORT) += attr.o obj-$(CONFIG_$(SPL_TPL_)ENV_SUPPORT) += flags.o -obj-$(CONFIG_$(SPL_TPL_)ENV_SUPPORT) += callback.o ifndef CONFIG_SPL_BUILD +obj-y += callback.o obj-$(CONFIG_ENV_IS_IN_EEPROM) += eeprom.o extra-$(CONFIG_ENV_IS_EMBEDDED) += embedded.o obj-$(CONFIG_ENV_IS_IN_EEPROM) += embedded.o |