env_eeprom: 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-05 09:19:54 +02:00
parent bb1f8b4f8b
commit bf5a7710ec
2 changed files with 1 additions and 6 deletions

View file

@ -51,7 +51,7 @@ COBJS-y += cmd_nvedit.o
COBJS-y += environment.o
COBJS-y += env_common.o
COBJS-y += env_dataflash.o
COBJS-y += env_eeprom.o
COBJS-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o
COBJS-y += env_flash.o
COBJS-y += env_nand.o
COBJS-y += env_nvram.o

View file

@ -25,9 +25,6 @@
*/
#include <common.h>
#if defined(CONFIG_ENV_IS_IN_EEPROM) /* Environment is in EEPROM */
#include <command.h>
#include <environment.h>
#include <linux/stddef.h>
@ -106,5 +103,3 @@ int env_init(void)
return (0);
}
#endif /* CONFIG_ENV_IS_IN_EEPROM */