This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: ecos kernel build flag
- From: "Lu Chih Wen" <rudolph at jmicron dot com>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 17 Dec 2009 00:38:21 +0800
- Subject: [ECOS] RE: ecos kernel build flag
Hi
?I have done the ecos-3.0 porting that include bsd-tcpip stack and ftp
server (http://www.meduna.org/sw_ecosftpserver_en.html).
But I got the problem on ftp client connection, when I try to set
optimization flag to -O2 with kernel build the bug was fixed!
?When I trace the code i found FILE IO API ?getsockname? always sent wrong
IP address (0.0.0.0) and this was reason make connection
?fail.
?Is anyone get the same question?
cdl_option CYGPKG_KERNEL_CFLAGS_ADD {
??? # Flavor: data
??? # No user value, uncomment the following line to provide one.
??? # user_value -O2
??? # value_source default
??? # Default value: -O2
Yours sincerely
Rudolph.Lu
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss