u-boot/env
Sjoerd Simons d48b8d1138 env: Properly check for BLK support
Use CONFIG_IS_ENABLED to see if CONFIG_BLK is enabled. Otherwise
SPL compilation breaks on boards which do have CONFIG_BLK enabled but
not DM_MMC for the SPL as follows:

env/mmc.c: In function ‘init_mmc_for_env’:
env/mmc.c:164:6: warning: implicit declaration of function ‘blk_get_from_parent’; did you mean ‘efi_get_ram_base’? [-Wimplicit-function-declaration]
  if (blk_get_from_parent(mmc->dev, &dev))
      ^~~~~~~~~~~~~~~~~~~
      efi_get_ram_base
env/mmc.c:164:29: error: ‘struct mmc’ has no member named ‘dev’
  if (blk_get_from_parent(mmc->dev, &dev))
                             ^~

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: Simon Glass <sjg@chromium.org>
2018-04-06 20:45:44 -04:00
..
attr.c Move environment files from common/ to env/ 2017-08-15 08:18:45 -04:00
callback.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
common.c env: move more common code to env_import_redund 2018-02-01 08:05:49 -05:00
eeprom.c env: restore old env_get_char() behaviour 2018-02-16 11:12:42 -05:00
embedded.c common: env_embedded: allow fine placement of environment object 2018-04-06 16:30:37 -04:00
env.c env: restore old env_get_char() behaviour 2018-02-16 11:12:42 -05:00
ext4.c env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it 2018-02-20 08:21:30 -05:00
fat.c env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it 2018-02-20 08:21:30 -05:00
flags.c env: Rename some other getenv()-related functions 2017-08-16 08:31:11 -04:00
flash.c env: make env drivers propagate env_import return value 2018-02-01 08:05:53 -05:00
Kconfig Allow providing default environment from file 2018-04-06 20:45:28 -04:00
Makefile env: Drop CONFIG_ENV_IS_IN_DATAFLASH 2017-10-16 09:42:51 -04:00
mmc.c env: Properly check for BLK support 2018-04-06 20:45:44 -04:00
nand.c env: make env drivers propagate env_import return value 2018-02-01 08:05:53 -05:00
nowhere.c env: Correct case of no sub-init function 2017-08-20 19:27:28 -04:00
nvram.c env: restore old env_get_char() behaviour 2018-02-16 11:12:42 -05:00
onenand.c env: make env_import(_redund) return 0 on success, not 1 2018-01-31 18:45:10 -05:00
remote.c env: make env drivers propagate env_import return value 2018-02-01 08:05:53 -05:00
sata.c env: make env drivers propagate env_import return value 2018-02-01 08:05:53 -05:00
sf.c env: sf: use env_import_redund to simplify env_sf_load 2018-02-01 08:05:53 -05:00
ubi.c env: make env drivers propagate env_import return value 2018-02-01 08:05:53 -05:00