blob: 90144d6caf34ba4d2ee206c569aada49febaa023 [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
Simon Glassc9d728d2017-08-03 12:22:00 -06006obj-y += common.o env.o
Simon Glass0649cd02017-08-03 12:21:49 -06007
8ifndef CONFIG_SPL_BUILD
9obj-y += attr.o
10obj-y += callback.o
11obj-y += flags.o
Simon Glass0649cd02017-08-03 12:21:49 -060012obj-$(CONFIG_ENV_IS_IN_EEPROM) += eeprom.o
13extra-$(CONFIG_ENV_IS_EMBEDDED) += embedded.o
14obj-$(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
York Sun474ecd22018-06-26 10:03:22 -070022else
23obj-$(CONFIG_$(SPL_TPL_)ENV_SUPPORT) += attr.o
24obj-$(CONFIG_$(SPL_TPL_)ENV_SUPPORT) += flags.o
25obj-$(CONFIG_$(SPL_TPL_)ENV_SUPPORT) += callback.o
Simon Glass0649cd02017-08-03 12:21:49 -060026endif
27
York Sun474ecd22018-06-26 10:03:22 -070028obj-$(CONFIG_$(SPL_TPL_)ENV_IS_NOWHERE) += nowhere.o
29obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_MMC) += mmc.o
30obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_FAT) += fat.o
31obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_EXT4) += ext4.o
32obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_NAND) += nand.o
33obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_SPI_FLASH) += sf.o
34obj-$(CONFIG_$(SPL_TPL_)ENV_IS_IN_FLASH) += flash.o
Simon Glass0649cd02017-08-03 12:21:49 -060035
36CFLAGS_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null)