Message ID | 20201228121313.16520-2-peng.fan@oss.nxp.com |
---|---|
State | New |
Headers | show |
Series | [1/3] common: Makefile: drop duplicated line | expand |
On Mon, 28 Dec 2020 at 04:44, Peng Fan (OSS) <peng.fan@oss.nxp.com> wrote: > > From: Peng Fan <peng.fan@nxp.com> > > No need to build nvedit.c when CONFIG_$(SPL_)ENV_SUPPORT is n > > Signed-off-by: Peng Fan <peng.fan@nxp.com> > --- > cmd/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass <sjg@chromium.org>
On Mon, Dec 28, 2020 at 08:13:12PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan <peng.fan@nxp.com> > > No need to build nvedit.c when CONFIG_$(SPL_)ENV_SUPPORT is n > > Signed-off-by: Peng Fan <peng.fan@nxp.com> > Reviewed-by: Simon Glass <sjg@chromium.org> This breaks a handful of PowerPC platforms that are using the original SPL/etc setup and do make use of environment. -- Tom
> Subject: Re: [PATCH 2/3] cmd: Makefile: build nvedit.c when needed > > On Mon, Dec 28, 2020 at 08:13:12PM +0800, Peng Fan (OSS) wrote: > > > From: Peng Fan <peng.fan@nxp.com> > > > > No need to build nvedit.c when CONFIG_$(SPL_)ENV_SUPPORT is n > > > > Signed-off-by: Peng Fan <peng.fan@nxp.com> > > Reviewed-by: Simon Glass <sjg@chromium.org> > > This breaks a handful of PowerPC platforms that are using the original SPL/etc > setup and do make use of environment. Ah, please drop it. Thanks, Peng. > > -- > Tom
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/