env_onenand: Move conditional compilation to Makefile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
9656138ff1
commit
55c5f49910
|
@ -55,7 +55,7 @@ COBJS-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o
|
||||||
COBJS-y += env_flash.o
|
COBJS-y += env_flash.o
|
||||||
COBJS-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
|
COBJS-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
|
||||||
COBJS-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o
|
COBJS-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o
|
||||||
COBJS-y += env_onenand.o
|
COBJS-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o
|
||||||
COBJS-y += env_sf.o
|
COBJS-y += env_sf.o
|
||||||
COBJS-y += env_nowhere.o
|
COBJS-y += env_nowhere.o
|
||||||
|
|
||||||
|
|
|
@ -22,9 +22,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
|
||||||
#if defined(CONFIG_ENV_IS_IN_ONENAND) /* Environment is in OneNAND */
|
|
||||||
|
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
#include <environment.h>
|
#include <environment.h>
|
||||||
#include <linux/stddef.h>
|
#include <linux/stddef.h>
|
||||||
|
@ -126,5 +123,3 @@ int env_init(void)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_ENV_IS_IN_ONENAND */
|
|
||||||
|
|
Loading…
Reference in New Issue