1# 2# (C) Copyright 2004-2006 3# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4# 5# SPDX-License-Identifier: GPL-2.0+ 6# 7 8obj-y += common.o env.o 9 10ifndef CONFIG_SPL_BUILD 11obj-y += attr.o 12obj-y += callback.o 13obj-y += flags.o 14obj-$(CONFIG_ENV_IS_IN_DATAFLASH) += dataflash.o 15obj-$(CONFIG_ENV_IS_IN_EEPROM) += eeprom.o 16extra-$(CONFIG_ENV_IS_EMBEDDED) += embedded.o 17obj-$(CONFIG_ENV_IS_IN_EEPROM) += embedded.o 18extra-$(CONFIG_ENV_IS_IN_FLASH) += embedded.o 19obj-$(CONFIG_ENV_IS_IN_NVRAM) += embedded.o 20obj-$(CONFIG_ENV_IS_IN_FLASH) += flash.o 21obj-$(CONFIG_ENV_IS_IN_MMC) += mmc.o 22obj-$(CONFIG_ENV_IS_IN_FAT) += fat.o 23obj-$(CONFIG_ENV_IS_IN_EXT4) += ext4.o 24obj-$(CONFIG_ENV_IS_IN_NAND) += nand.o 25obj-$(CONFIG_ENV_IS_IN_NVRAM) += nvram.o 26obj-$(CONFIG_ENV_IS_IN_ONENAND) += onenand.o 27obj-$(CONFIG_ENV_IS_IN_SATA) += sata.o 28obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += sf.o 29obj-$(CONFIG_ENV_IS_IN_REMOTE) += remote.o 30obj-$(CONFIG_ENV_IS_IN_UBI) += ubi.o 31obj-$(CONFIG_ENV_IS_NOWHERE) += nowhere.o 32endif 33 34ifdef CONFIG_SPL_BUILD 35obj-$(CONFIG_ENV_IS_IN_FLASH) += flash.o 36# environment 37ifdef CONFIG_TPL_BUILD 38obj-$(CONFIG_TPL_ENV_SUPPORT) += attr.o 39obj-$(CONFIG_TPL_ENV_SUPPORT) += flags.o 40obj-$(CONFIG_TPL_ENV_SUPPORT) += callback.o 41else 42obj-$(CONFIG_SPL_ENV_SUPPORT) += attr.o 43obj-$(CONFIG_SPL_ENV_SUPPORT) += flags.o 44obj-$(CONFIG_SPL_ENV_SUPPORT) += callback.o 45endif 46ifneq ($(CONFIG_TPL_ENV_SUPPORT)$(CONFIG_SPL_ENV_SUPPORT),) 47obj-$(CONFIG_ENV_IS_NOWHERE) += nowhere.o 48obj-$(CONFIG_ENV_IS_IN_MMC) += mmc.o 49obj-$(CONFIG_ENV_IS_IN_FAT) += fat.o 50obj-$(CONFIG_ENV_IS_IN_EXT4) += ext4.o 51obj-$(CONFIG_ENV_IS_IN_NAND) += nand.o 52obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += sf.o 53obj-$(CONFIG_ENV_IS_IN_FLASH) += flash.o 54endif 55endif 56 57CFLAGS_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null) 58