common/Makefile: Conditionally compile env_embedded.o

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
diff --git a/common/Makefile b/common/Makefile
index 9a71302..0a93462 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -51,7 +51,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_embedded.o
+COBJS-$(CONFIG_ENV_IS_EMBEDDED) += env_embedded.o
 COBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
 COBJS-$(CONFIG_ENV_IS_IN_MG_DISK) += env_mgdisk.o
 COBJS-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o