2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2017-08-03 18:21:49 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2004-2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
|
2017-08-03 18:22:00 +00:00
|
|
|
obj-y += common.o env.o
|
2017-08-03 18:21:49 +00:00
|
|
|
|
|
|
|
ifndef CONFIG_SPL_BUILD
|
|
|
|
obj-y += attr.o
|
|
|
|
obj-y += callback.o
|
|
|
|
obj-y += flags.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
|
|
|
|
else
|
2018-06-26 17:03:22 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)ENV_SUPPORT) += attr.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)ENV_SUPPORT) += flags.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)ENV_SUPPORT) += callback.o
|
2017-08-03 18:21:49 +00:00
|
|
|
endif
|
|
|
|
|
2018-06-26 17:03:22 +00:00
|
|
|
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
|
|
|
|
|
2017-08-03 18:21:49 +00:00
|
|
|
CFLAGS_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null)
|