All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] question : How to get rid of compiling the network part
@ 2005-06-21 10:28 Tomko
  2005-06-21 11:33 ` Wolfgang Denk
  2005-06-21 12:31 ` Sam Song
  0 siblings, 2 replies; 3+ messages in thread
From: Tomko @ 2005-06-21 10:28 UTC (permalink / raw)
  To: u-boot

Hi all,

I am porting the uboot and i want to get  rid of the network component 
at this moment, there is a function cs8900_get_enetaddr () at the 
start_armboot() of lib_arm/board.c (my program often hangs inside), i 
have set in my board/xxx.c that #undef CONFIG_DRIVER_CS8900 but after 
all many error from net/net.c occur . I there therefore set :
#define CONFIG_COMMANDS \
           (            & ~CFG_CMD_NET \
            )
in order to get rid of the comilation of the network part, but the 
compiler keep on compiling the network part and many errors occur, do 
anyone know how to solve this problem ?

Regards,
TOM

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] question : How to get rid of compiling the network part
  2005-06-21 10:28 [U-Boot-Users] question : How to get rid of compiling the network part Tomko
@ 2005-06-21 11:33 ` Wolfgang Denk
  2005-06-21 12:31 ` Sam Song
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2005-06-21 11:33 UTC (permalink / raw)
  To: u-boot

In message <42B7EBD9.2070507@avantwave.com> you wrote:
> 
> all many error from net/net.c occur . I there therefore set :
> #define CONFIG_COMMANDS \
>            (            & ~CFG_CMD_NET \
>             )
> in order to get rid of the comilation of the network part, but the 

This should work.

> compiler keep on compiling the network part and many errors occur, do 
> anyone know how to solve this problem ?

You must obviously also make sure not to include any ethernet  device
drivers in your board config file.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
panic: kernel trap (ignored)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] question : How to get rid of compiling the network part
  2005-06-21 10:28 [U-Boot-Users] question : How to get rid of compiling the network part Tomko
  2005-06-21 11:33 ` Wolfgang Denk
@ 2005-06-21 12:31 ` Sam Song
  1 sibling, 0 replies; 3+ messages in thread
From: Sam Song @ 2005-06-21 12:31 UTC (permalink / raw)
  To: u-boot

--- Tomko <tomko@avantwave.com> wrote:
> have set in my board/xxx.c that #undef
> CONFIG_DRIVER_CS8900 but after 

Well, pls check network function #undef in <board.h>
_rather than_ in board/xxx.c.

> all many error from net/net.c occur . I there
> therefore set :
> #define CONFIG_COMMANDS \
>            (            & ~CFG_CMD_NET \
>             )

Why not use 
#define CONFIG_COMMANDS   ( CONFIG_CMD_DFL| 
                CFG_CMD_DIAG )& ~CFG_CMD_NET
to make it more clear?

__________________________________________________
???????????????
http://cn.mail.yahoo.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-21 12:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-21 10:28 [U-Boot-Users] question : How to get rid of compiling the network part Tomko
2005-06-21 11:33 ` Wolfgang Denk
2005-06-21 12:31 ` Sam Song

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.