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