[PATCH 2/3] cmd: Makefile: build nvedit.c when needed

Peng Fan (OSS) peng.fan at oss.nxp.com
Mon Dec 28 13:13:12 CET 2020


From: Peng Fan <peng.fan at nxp.com>

No need to build nvedit.c when CONFIG_$(SPL_)ENV_SUPPORT is n

Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
 cmd/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/Makefile b/cmd/Makefile
index dd86675bf2..2b2a0c26a6 100644
--- a/cmd/Makefile
+++ b/cmd/Makefile
@@ -201,7 +201,7 @@ endif # !CONFIG_SPL_BUILD
 obj-$(CONFIG_$(SPL_)CMD_TLV_EEPROM) += tlv_eeprom.o
 
 # core command
-obj-y += nvedit.o
+obj-$(CONFIG_$(SPL_)ENV_SUPPORT)+= nvedit.o
 
 obj-$(CONFIG_CMD_BCM_EXT_UTILS) += broadcom/
 
-- 
2.28.0



More information about the U-Boot mailing list