mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-21 10:43:06 +00:00
e13df08a26
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>
33 lines
1.2 KiB
Makefile
33 lines
1.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2004-2006
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
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
|
|
|
|
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
|
|
extra-$(CONFIG_ENV_IS_IN_FLASH) += embedded.o
|
|
obj-$(CONFIG_ENV_IS_IN_NVRAM) += embedded.o
|
|
obj-$(CONFIG_ENV_IS_IN_NVRAM) += nvram.o
|
|
obj-$(CONFIG_ENV_IS_IN_ONENAND) += onenand.o
|
|
obj-$(CONFIG_ENV_IS_IN_SATA) += sata.o
|
|
obj-$(CONFIG_ENV_IS_IN_REMOTE) += remote.o
|
|
obj-$(CONFIG_ENV_IS_IN_UBI) += ubi.o
|
|
endif
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)ENV_IS_NOWHERE) += nowhere.o
|
|
obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_MMC) += mmc.o
|
|
obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_FAT) += fat.o
|
|
obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_EXT4) += ext4.o
|
|
obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_NAND) += nand.o
|
|
obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_SPI_FLASH) += sf.o
|
|
obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_FLASH) += flash.o
|
|
|
|
CFLAGS_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null)
|