From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 27 Jan 2020 11:51:24 -0500 Subject: [PATCH] net: Handle disabling of compilation for SPL builds In-Reply-To: <20200127124017.417345-1-nathan@nathanrossi.com> References: <20200127124017.417345-1-nathan@nathanrossi.com> Message-ID: <20200127165124.GS9259@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jan 27, 2020 at 12:40:17PM +0000, Nathan Rossi wrote: > Whilst the net/ directory is excluded from libs-y when > CONFIG_SPL_NET_SUPPORT is disabled, this does not prevent SPL builds > trying to compile net/ objects. During SPL builds overwrite the value of > CONFIG_NET with CONFIG_SPL_NET_SUPPORT to exclude compilation during SPL > builds. > > Signed-off-by: Nathan Rossi > --- > net/Makefile | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/net/Makefile b/net/Makefile > index fef71b940a..0f57244015 100644 > --- a/net/Makefile > +++ b/net/Makefile > @@ -5,6 +5,10 @@ > > #ccflags-y += -DDEBUG > > +ifdef CONFIG_SPL_BUILD > +CONFIG_NET = $(CONFIG_SPL_NET_SUPPORT) > +endif > + > obj-$(CONFIG_NET) += arp.o > obj-$(CONFIG_CMD_BOOTP) += bootp.o > obj-$(CONFIG_CMD_CDP) += cdp.o This needs to be fixed the same way we have in other cases and that is for CONFIG_SPL_NET_SUPPORT to become CONFIG_SPL_NET and then Makefiles use 'obj-$(CONFIG_$(SPL_)NET) += ...' and so forth. Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: