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
Quoted 6 lines · In message <[email protected]> you wrote:
all many error from
net/net.coccur . 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.
Quoted 2 lines
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
Signature · 3 lines
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)
Quoted 2 lines · --- Tomko
have set in my
board/xxx.cthat #undefCONFIG_DRIVER_CS8900but after
Well, pls check network function #undef in <board.h> _rather than_ in board/xxx.c.
Quoted 5 lines
all many error from
net/net.coccur . 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