env_nand: Move conditional compilation to Makefile

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2008-09-10 22:47:59 +02:00
parent 51bfee1920
commit 06f6135439
2 changed files with 1 additions and 6 deletions

View file

@ -53,7 +53,7 @@ COBJS-y += env_common.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
COBJS-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
COBJS-y += env_nvram.o
COBJS-y += env_onenand.o
COBJS-y += env_sf.o

View file

@ -33,9 +33,6 @@
/* #define DEBUG */
#include <common.h>
#if defined(CONFIG_ENV_IS_IN_NAND) /* Environment is in Nand Flash */
#include <command.h>
#include <environment.h>
#include <linux/stddef.h>
@ -366,5 +363,3 @@ static void use_default()
set_default_env();
}
#endif
#endif /* CONFIG_ENV_IS_IN_NAND */