qca: Modified board spcific Makefile to support CONFIG_ENV_IS_NOWHERE.
Modified board Makefile to avoid compilation of env.c when
"CONFIG_ENV_IS_NOWHERE" is enabled.
Change-Id: Ie694276c9071ad17f378a9926d78aa5a6e39a449
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
diff --git a/board/qca/common/Makefile b/board/qca/common/Makefile
index 6349717..34b5ada 100644
--- a/board/qca/common/Makefile
+++ b/board/qca/common/Makefile
@@ -1,6 +1,8 @@
obj-y := cmd_bootqca.o
obj-y += fdt_info.o
obj-y += board_init.o
+ifndef CONFIG_ENV_IS_NOWHERE
obj-y += env.o
+endif
obj-y += fdt_fixup.o
obj-y += ethaddr.o
diff --git a/common/env_nowhere.c b/common/env_nowhere.c
index bdc1ed5..330a1d0 100644
--- a/common/env_nowhere.c
+++ b/common/env_nowhere.c
@@ -15,7 +15,7 @@
DECLARE_GLOBAL_DATA_PTR;
-env_t *env_ptr;
+extern env_t *env_ptr;
void env_relocate_spec(void)
{