[U-Boot,v2] add checking the CONFIG_ENV_IS_IN_SPI_FLASH in Enbedded env

Submitted by Yoshihiro Shimoda on Jan. 25, 2011, 12:28 a.m.

Details

Message ID 4D3E1923.3060401@renesas.com
State Accepted
Commit efb063390d2d1e712c2c8110911616244d562c4b
Delegated to: Wolfgang Denk
Headers show

Commit Message

Yoshihiro Shimoda Jan. 25, 2011, 12:28 a.m.
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>
---
 about V2:
  - list sorted

 include/environment.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Comments

Nobuhiro Iwamatsu Jan. 31, 2011, 1:18 a.m.
Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>

Best regards,
  Nobuhiro

On Tue, Jan 25, 2011 at 09:28:19AM +0900, Yoshihiro Shimoda wrote:
> 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>
> ---
>  about V2:
>   - list sorted
> 
>  include/environment.h |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/include/environment.h b/include/environment.h
> index 082b3e1..53d92df 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
> -- 
> 1.7.1
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
Wolfgang Denk Feb. 15, 2011, 9:09 p.m.
Dear Yoshihiro Shimoda,

In message <4D3E1923.3060401@renesas.com> you wrote:
> 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>
> ---
>  about V2:
>   - list sorted
> 
>  include/environment.h |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch hide | download patch | download mbox

diff --git a/include/environment.h b/include/environment.h
index 082b3e1..53d92df 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