summaryrefslogtreecommitdiff
path: root/include/environment.h
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2011-01-25 09:28:19 +0900
committerWolfgang Denk <wd@denx.de>2011-02-15 22:09:50 +0100
commitefb063390d2d1e712c2c8110911616244d562c4b (patch)
tree13195247dfd5644b9ca8b9fd65984f1db0382df1 /include/environment.h
parent327f55c6da12812050db491df708605fb4a13ed9 (diff)
add checking the CONFIG_ENV_IS_IN_SPI_FLASH in Enbedded env
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>
Diffstat (limited to 'include/environment.h')
-rw-r--r--include/environment.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/environment.h b/include/environment.h
index 082b3e15b9..53d92df1f2 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -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