Skip to content

Commit

Permalink
env_nowhere: Move conditional compilation to Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  • Loading branch information
plagnioj committed Sep 10, 2008
1 parent 93f6d72 commit c0878af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions common/env_nowhere.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -61,5 +58,3 @@ int env_init(void)

return (0);
}

#endif /* CONFIG_ENV_IS_NOWHERE) */

0 comments on commit c0878af

Please sign in to comment.