From patchwork Tue Jan 25 00:28:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 80297 X-Patchwork-Delegate: wd@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id E15F1B7128 for ; Tue, 25 Jan 2011 11:28:37 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3CB0728077; Tue, 25 Jan 2011 01:28:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bdqMKn-4nvL7; Tue, 25 Jan 2011 01:28:36 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 58D862807B; Tue, 25 Jan 2011 01:28:34 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4FE2C2807B for ; Tue, 25 Jan 2011 01:28:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MPQoDu5b8Z-A for ; Tue, 25 Jan 2011 01:28:30 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from relmlor1.renesas.com (relmlor1.renesas.com [210.160.252.171]) by theia.denx.de (Postfix) with ESMTP id 069A828077 for ; Tue, 25 Jan 2011 01:28:28 +0100 (CET) Received: from relmlir4.idc.renesas.com ([10.200.68.154]) by relmlor1.idc.renesas.com ( SJSMS) with ESMTP id <0LFJ0021IYNDA050@relmlor1.idc.renesas.com> for u-boot@lists.denx.de; Tue, 25 Jan 2011 09:28:25 +0900 (JST) Received: from relmlac4.idc.renesas.com ([10.200.69.24]) by relmlir4.idc.renesas.com ( SJSMS) with ESMTP id <0LFJ00D4WYNDH400@relmlir4.idc.renesas.com> for u-boot@lists.denx.de; Tue, 25 Jan 2011 09:28:25 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id 856C048087; Tue, 25 Jan 2011 09:28:24 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id 83D5B48096 for ; Tue, 25 Jan 2011 09:28:24 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac4.idc.renesas.com with ESMTP id KAF15979; Tue, 25 Jan 2011 09:28:24 +0900 X-IronPort-AV: E=Sophos;i="4.60,372,1291561200"; d="scan'208";a="7862417" Received: from unknown (HELO [172.30.8.157]) ([172.30.8.157]) by relmlii2.idc.renesas.com with ESMTP; Tue, 25 Jan 2011 09:28:18 +0900 Message-id: <4D3E1923.3060401@renesas.com> Date: Tue, 25 Jan 2011 09:28:19 +0900 From: Yoshihiro Shimoda User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-version: 1.0 To: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2] add checking the CONFIG_ENV_IS_IN_SPI_FLASH in Enbedded env X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 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 Acked-by: Nobuhiro Iwamatsu --- 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