[U-Boot-Users] question : How to get rid of compiling the network part

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

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

--- 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
participants (3)
-
Sam Song
-
Tomko
-
Wolfgang Denk