From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peng Fan (OSS) Date: Mon, 28 Dec 2020 20:13:12 +0800 Subject: [PATCH 2/3] cmd: Makefile: build nvedit.c when needed In-Reply-To: <20201228121313.16520-1-peng.fan@oss.nxp.com> References: <20201228121313.16520-1-peng.fan@oss.nxp.com> Message-ID: <20201228121313.16520-2-peng.fan@oss.nxp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Peng Fan No need to build nvedit.c when CONFIG_$(SPL_)ENV_SUPPORT is n Signed-off-by: Peng Fan --- 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