Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
COBJS-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
COBJS-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o
COBJS-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o
-COBJS-y += env_sf.o
+COBJS-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
COBJS-y += env_nowhere.o
# command
* MA 02111-1307 USA
*/
#include <common.h>
-
-#ifdef CONFIG_ENV_IS_IN_SPI_FLASH
-
#include <environment.h>
#include <spi_flash.h>
return 0;
}
-
-#endif /* CONFIG_ENV_IS_IN_SPI_FLASH */