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


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to