Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 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 | |
Simon Glass | 15e5a1a | 2017-08-03 12:22:00 -0600 | [diff] [blame] | 8 | obj-y += common.o env.o |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 9 | |
| 10 | ifndef CONFIG_SPL_BUILD |
| 11 | obj-y += attr.o |
| 12 | obj-y += callback.o |
| 13 | obj-y += flags.o |
Simon Glass | 547cb40 | 2017-08-03 12:21:49 -0600 | [diff] [blame] | 14 | obj-$(CONFIG_ENV_IS_IN_EEPROM) += eeprom.o |
| 15 | extra-$(CONFIG_ENV_IS_EMBEDDED) += embedded.o |
| 16 | obj-$(CONFIG_ENV_IS_IN_EEPROM) += embedded.o |
| 17 | extra-$(CONFIG_ENV_IS_IN_FLASH) += embedded.o |
| 18 | obj-$(CONFIG_ENV_IS_IN_NVRAM) += embedded.o |
| 19 | obj-$(CONFIG_ENV_IS_IN_FLASH) += flash.o |
| 20 | obj-$(CONFIG_ENV_IS_IN_MMC) += mmc.o |
| 21 | obj-$(CONFIG_ENV_IS_IN_FAT) += fat.o |
| 22 | obj-$(CONFIG_ENV_IS_IN_EXT4) += ext4.o |
| 23 | obj-$(CONFIG_ENV_IS_IN_NAND) += nand.o |
| 24 | obj-$(CONFIG_ENV_IS_IN_NVRAM) += nvram.o |
| 25 | obj-$(CONFIG_ENV_IS_IN_ONENAND) += onenand.o |
| 26 | obj-$(CONFIG_ENV_IS_IN_SATA) += sata.o |
| 27 | obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += sf.o |
| 28 | obj-$(CONFIG_ENV_IS_IN_REMOTE) += remote.o |
| 29 | obj-$(CONFIG_ENV_IS_IN_UBI) += ubi.o |
| 30 | obj-$(CONFIG_ENV_IS_NOWHERE) += nowhere.o |
| 31 | endif |
| 32 | |
| 33 | ifdef CONFIG_SPL_BUILD |
| 34 | obj-$(CONFIG_ENV_IS_IN_FLASH) += flash.o |
| 35 | # environment |
| 36 | ifdef CONFIG_TPL_BUILD |
| 37 | obj-$(CONFIG_TPL_ENV_SUPPORT) += attr.o |
| 38 | obj-$(CONFIG_TPL_ENV_SUPPORT) += flags.o |
| 39 | obj-$(CONFIG_TPL_ENV_SUPPORT) += callback.o |
| 40 | else |
| 41 | obj-$(CONFIG_SPL_ENV_SUPPORT) += attr.o |
| 42 | obj-$(CONFIG_SPL_ENV_SUPPORT) += flags.o |
| 43 | obj-$(CONFIG_SPL_ENV_SUPPORT) += callback.o |
| 44 | endif |
| 45 | ifneq ($(CONFIG_TPL_ENV_SUPPORT)$(CONFIG_SPL_ENV_SUPPORT),) |
| 46 | obj-$(CONFIG_ENV_IS_NOWHERE) += nowhere.o |
| 47 | obj-$(CONFIG_ENV_IS_IN_MMC) += mmc.o |
| 48 | obj-$(CONFIG_ENV_IS_IN_FAT) += fat.o |
| 49 | obj-$(CONFIG_ENV_IS_IN_EXT4) += ext4.o |
| 50 | obj-$(CONFIG_ENV_IS_IN_NAND) += nand.o |
| 51 | obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += sf.o |
| 52 | obj-$(CONFIG_ENV_IS_IN_FLASH) += flash.o |
| 53 | endif |
| 54 | endif |
| 55 | |
| 56 | CFLAGS_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null) |