From patchwork Mon Jan 27 12:40:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Rossi X-Patchwork-Id: 240285 List-Id: U-Boot discussion From: nathan at nathanrossi.com (Nathan Rossi) Date: Mon, 27 Jan 2020 12:40:17 +0000 Subject: [PATCH] net: Handle disabling of compilation for SPL builds Message-ID: <20200127124017.417345-1-nathan@nathanrossi.com> 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(+) --- 2.24.1 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