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