public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Nathan Rossi <nathan@nathanrossi.com>
To: u-boot@lists.denx.de
Subject: [PATCH] net: Handle disabling of compilation for SPL builds
Date: Mon, 27 Jan 2020 12:40:17 +0000	[thread overview]
Message-ID: <20200127124017.417345-1-nathan@nathanrossi.com> (raw)

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 <nathan@nathanrossi.com>
---
 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
---
2.24.1

             reply	other threads:[~2020-01-27 12:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-27 12:40 Nathan Rossi [this message]
2020-01-27 16:51 ` [PATCH] net: Handle disabling of compilation for SPL builds Tom Rini
2020-01-28  7:51   ` Nathan Rossi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200127124017.417345-1-nathan@nathanrossi.com \
    --to=nathan@nathanrossi.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox