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

index fea0cafbe934855db66178e2fa105a7d50c4327b..27f515b0676fc7c85994a4f5e653424fa1fbb9b6 100644 (file)
@@ -50,7 +50,7 @@ COBJS-y += cmd_nvedit.o
 # environment
 COBJS-y += environment.o
 COBJS-y += env_common.o
-COBJS-y += env_dataflash.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
index 1d55a279c926f99a8597c65624b72b93a77c6c64..2254b9b491a5adc49556094b239a01bd61ecf107 100644 (file)
@@ -18,9 +18,6 @@
  *
  */
 #include <common.h>
-
-#if defined(CONFIG_ENV_IS_IN_DATAFLASH) /* Environment is in DataFlash */
-
 #include <command.h>
 #include <environment.h>
 #include <linux/stddef.h>
@@ -100,5 +97,3 @@ int env_init(void)
 
        return (0);
 }
-
-#endif /* CONFIG_ENV_IS_IN_DATAFLASH */