From: Jean-Christophe PLAGNIOL-VILLARD Date: Sun, 31 Aug 2008 03:38:58 +0200 Subject: [U-Boot] [PATCH 09/25] env_dataflash: Move conditional compilation to Makefile In-Reply-To: <1220146754-29407-8-git-send-email-plagnioj@jcrosoft.com> References: <20080831013605.GA12819@game.jcrosoft.org> <1220146754-29407-1-git-send-email-plagnioj@jcrosoft.com> <1220146754-29407-2-git-send-email-plagnioj@jcrosoft.com> <1220146754-29407-3-git-send-email-plagnioj@jcrosoft.com> <1220146754-29407-4-git-send-email-plagnioj@jcrosoft.com> <1220146754-29407-5-git-send-email-plagnioj@jcrosoft.com> <1220146754-29407-6-git-send-email-plagnioj@jcrosoft.com> <1220146754-29407-7-git-send-email-plagnioj@jcrosoft.com> <1220146754-29407-8-git-send-email-plagnioj@jcrosoft.com> Message-ID: <1220146754-29407-9-git-send-email-plagnioj@jcrosoft.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/Makefile | 2 +- common/env_dataflash.c | 5 ----- 2 files changed, 1 insertions(+), 6 deletions(-) diff --git a/common/Makefile b/common/Makefile index a7d5b59..53e20e6 100644 --- a/common/Makefile +++ b/common/Makefile @@ -50,7 +50,7 @@ COBJS-y += cmd_nvedit.o # environment COBJS-y += environment.o COBJS-y += env_common.o -COBJS-y += env_dataflash.o +COBJS-$(CONFIG_ENV_IS_IN_DATAFLASH) += env_dataflash.o COBJS-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o COBJS-y += env_flash.o COBJS-y += env_nand.o diff --git a/common/env_dataflash.c b/common/env_dataflash.c index 1d55a27..2254b9b 100644 --- a/common/env_dataflash.c +++ b/common/env_dataflash.c @@ -18,9 +18,6 @@ * */ #include - -#if defined(CONFIG_ENV_IS_IN_DATAFLASH) /* Environment is in DataFlash */ - #include #include #include @@ -100,5 +97,3 @@ int env_init(void) return (0); } - -#endif /* CONFIG_ENV_IS_IN_DATAFLASH */ -- 1.5.6.3