blob: bb6e24b396df9b0a6db9e843817c5b95e88c850b [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Simon Glass0649cd02017-08-03 12:21:49 -06002#
3# (C) Copyright 2004-2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Simon Glass0649cd02017-08-03 12:21:49 -06005
Rasmus Villemoesc8221682019-12-15 22:29:39 +00006obj-$(CONFIG_$(SPL_TPL_)ENV_SUPPORT) += common.o
7obj-$(CONFIG_$(SPL_TPL_)ENV_SUPPORT) += env.o
8obj-$(CONFIG_$(SPL_TPL_)ENV_SUPPORT) += attr.o
9obj-$(CONFIG_$(SPL_TPL_)ENV_SUPPORT) += flags.o
Simon Glass0649cd02017-08-03 12:21:49 -060010
11ifndef CONFIG_SPL_BUILD
Rasmus Villemoese13df082020-02-27 13:56:10 +000012obj-y += callback.o
Simon Glass0649cd02017-08-03 12:21:49 -060013obj-$(CONFIG_ENV_IS_IN_EEPROM) += eeprom.o
Simon Glass0649cd02017-08-03 12:21:49 -060014obj-$(CONFIG_ENV_IS_IN_EEPROM) += embedded.o
15extra-$(CONFIG_ENV_IS_IN_FLASH) += embedded.o
16obj-$(CONFIG_ENV_IS_IN_NVRAM) += embedded.o
Simon Glass0649cd02017-08-03 12:21:49 -060017obj-$(CONFIG_ENV_IS_IN_NVRAM) += nvram.o
18obj-$(CONFIG_ENV_IS_IN_ONENAND) += onenand.o
19obj-$(CONFIG_ENV_IS_IN_SATA) += sata.o
Simon Glass0649cd02017-08-03 12:21:49 -060020obj-$(CONFIG_ENV_IS_IN_REMOTE) += remote.o
21obj-$(CONFIG_ENV_IS_IN_UBI) += ubi.o
Simon Glass0649cd02017-08-03 12:21:49 -060022endif
23
York Sun474ecd22018-06-26 10:03:22 -070024obj-$(CONFIG_$(SPL_TPL_)ENV_IS_NOWHERE) += nowhere.o
25obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_MMC) += mmc.o
26obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_FAT) += fat.o
27obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_EXT4) += ext4.o
28obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_NAND) += nand.o
29obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_SPI_FLASH) += sf.o
30obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_FLASH) += flash.o
Simon Glass0649cd02017-08-03 12:21:49 -060031
32CFLAGS_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null)