]> git.sur5r.net Git - u-boot/commitdiff
add checking the CONFIG_ENV_IS_IN_SPI_FLASH in Enbedded env
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tue, 25 Jan 2011 00:28:19 +0000 (09:28 +0900)
committerWolfgang Denk <wd@denx.de>
Tue, 15 Feb 2011 21:09:50 +0000 (22:09 +0100)
Fix the problem which cannot build the U-boot, if we only set
the CONFIG_ENV_IS_IN_SPI_FLASH.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
include/environment.h

index 082b3e15b954ac06fd9f4068614944b9e16c0add..53d92df1f29475174ece0b5d2728531f8c4f26b5 100644 (file)
@@ -107,7 +107,8 @@ extern unsigned long nand_env_oob_offset;
 #ifdef CONFIG_ENV_IS_EMBEDDED
 # if !defined(CONFIG_ENV_IS_IN_FLASH) && \
      !defined(CONFIG_ENV_IS_IN_NAND) && \
-     !defined(CONFIG_ENV_IS_IN_ONENAND)
+     !defined(CONFIG_ENV_IS_IN_ONENAND) && \
+     !defined(CONFIG_ENV_IS_IN_SPI_FLASH)
 #  error "CONFIG_ENV_IS_EMBEDDED not supported for your flash type"
 # endif
 #endif