env_nowhere: 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:48:01 +02:00
parent 93f6d72544
commit c0878af6e3
2 changed files with 1 additions and 6 deletions

View File

@ -57,7 +57,7 @@ COBJS-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
COBJS-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o
COBJS-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o
COBJS-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
COBJS-y += env_nowhere.o
COBJS-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
# command
COBJS-$(CONFIG_CMD_AMBAPP) += cmd_ambapp.o

View File

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