]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
env_nand: Move conditional compilation to Makefile
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Wed, 10 Sep 2008 20:47:59 +0000 (22:47 +0200)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Wed, 10 Sep 2008 20:47:59 +0000 (22:47 +0200)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
common/Makefile
common/env_nand.c

index 27f515b0676fc7c85994a4f5e653424fa1fbb9b6..2e0fa262dc8c4893c5fe9049c8c51ee3501a6365 100644 (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
index 53e31834c7a8ad52a9b2fb9051c7e60812aede27..9d01d7c7265cbfcd141d236758da808de392d9ea 100644 (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 */