From: Alex <mailinglist@miromico.ch>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] CONFIG_NET_MULTI
Date: Mon, 10 Mar 2008 11:37:57 +0100 [thread overview]
Message-ID: <47D50F85.8050108@miromico.ch> (raw)
Hi
I don't understand CONFIG_CMD_NET and CONFIG_NET_MULTI.
I would expect CONFIG_CMD_NET to be defined whenever I want to have
network support in U-Boot, right?
And CONFIG_NET_MULTI is defined when I have more then one network interface?
I try to adapt U-Boot to our new AVR32 based board. AVR32 has two
interfaces, but only one is actually implemented on our board.
CONFIG_CMD_NET is defined per default. If I undefine CONFIG_NET_MULTI I
get linker error about missing functions.
With CONFIG_NET_MULTI defined everything works fine. Should this be like
this?
Looking for a solution and/or the cause of my problem I found that in
net/etc.c there is something like this
#if defined(CONFIG_CMD_NET) && defined(CONFIG_NET_MULTI)
.... some code ..
#ifdef CONFIG_NET_MULTI
... code ...
#endif Ale
... code ....
#elif defined(CONFIG_CMD_NET) && !defined(CONFIG_NET_MULTI)
....
#endif
In the if-branch CONFIG_NET_MULTI is defined per condition of this
branch. Why some additional ifdef CONFIG_NET_MULTI?
Alex
next reply other threads:[~2008-03-10 10:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-10 10:37 Alex [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-03-10 10:37 [U-Boot-Users] CONFIG_NET_MULTI Alex Raimondi
2008-03-10 11:17 ` Ben Warren
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=47D50F85.8050108@miromico.ch \
--to=mailinglist@miromico.ch \
--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