env_nvram: Move conditional compilation to Makefile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
9314cee691
commit
957a0e6957
@ -54,7 +54,7 @@ COBJS-$(CONFIG_ENV_IS_IN_DATAFLASH) += env_dataflash.o
|
||||
COBJS-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o
|
||||
COBJS-y += env_flash.o
|
||||
COBJS-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
|
||||
COBJS-y += env_nvram.o
|
||||
COBJS-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o
|
||||
COBJS-y += env_onenand.o
|
||||
COBJS-y += env_sf.o
|
||||
COBJS-y += env_nowhere.o
|
||||
|
@ -41,15 +41,12 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#ifdef CONFIG_ENV_IS_IN_NVRAM /* Environment is in NVRAM */
|
||||
|
||||
#include <command.h>
|
||||
#include <environment.h>
|
||||
#include <linux/stddef.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#ifdef CFG_NVRAM_ACCESS_ROUTINE
|
||||
extern void *nvram_read(void *dest, const long src, size_t count);
|
||||
extern void nvram_write(long dest, const void *src, size_t count);
|
||||
@ -156,5 +153,3 @@ int env_init (void)
|
||||
#endif
|
||||
return (0);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_ENV_IS_IN_NVRAM */
|
||||
|
Loading…
Reference in New Issue
Block a user