Re: [U-Boot] [PATCH] env: Properly check for BLK support

2018-03-30 Thread Simon Glass
On 23 March 2018 at 05:53, Sjoerd Simons wrote: > 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

[U-Boot] [PATCH] env: Properly check for BLK support

2018-03-22 Thread Sjoerd Simons
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’;