summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2012-09-26 13:01:00 +0200
committerStefan Roese <sr@denx.de>2012-12-05 17:30:27 +0100
commitd3aa8b8be2204e709fe307787dfbd8234316b41b (patch)
tree8190d3158180814360b5bac6b06d07c70326209a /common
parentea8256f072ccc04c83fa10030673cdd4cd01cbd9 (diff)
downloadu-boot-imx-d3aa8b8be2204e709fe307787dfbd8234316b41b.zip
u-boot-imx-d3aa8b8be2204e709fe307787dfbd8234316b41b.tar.gz
u-boot-imx-d3aa8b8be2204e709fe307787dfbd8234316b41b.tar.bz2
env: Enable getenv_f() for SPL_BUILD
With this patch, getenv_f() can be included easily into the SPL binary. With this, SPL boards can now use getenv_f() to read environment variables (e.g. to detect if the OS or U-Boot shall be executed). In the approach this is done for env stored in NOR flash, as this will be used by an upcoming MPC5200 board port. Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'common')
-rw-r--r--common/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile
index 9e43322..c29a7d8 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -195,6 +195,9 @@ COBJS-$(CONFIG_CMD_DFU) += cmd_dfu.o
endif
ifdef CONFIG_SPL_BUILD
+COBJS-y += cmd_nvedit.o
+COBJS-y += env_common.o
+COBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o
COBJS-$(CONFIG_SPL_NET_SUPPORT) += cmd_nvedit.o
COBJS-$(CONFIG_SPL_NET_SUPPORT) += env_common.o