From 84d2f385fbc2a4281df9060236141c434d9bd8d1 Mon Sep 17 00:00:00 2001 From: Aditya Kumar Patra S Date: Tue, 20 Sep 2016 19:06:41 +0530 Subject: [PATCH] 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 --- board/qca/common/Makefile | 2 ++ common/env_nowhere.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/board/qca/common/Makefile b/board/qca/common/Makefile index 6349717de9..34b5adada3 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 bdc1ed5e67..330a1d0f46 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) {