This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to add a source file into a configuration


On Wed, Oct 23, 2002 at 04:06:43PM +0800, Yao-Lu Tsai wrote:
> Hi,
> 
> If I choose Samsung SNDS platform with new_net template, everything
> when compiling & linking is OK. However, if I add "Samsung KS32C5000
> ethernet driver" package into this configuration, linking is failed due to
> "setdomainname" undefined. This function is declared in dns.c. I don't know
> why this file is not compiled after I add an additional package. My question
> is,
> how to add dns.c into the configuration to solve the linking error ?

The DNS package is automatically added as part of the new_net
template. 

Here is what i did:

$ ecosconfig new snds new_net
U CYGPKG_KERNEL_THREADS_DESTRUCTORS, new inferred value 1
U CYGBLD_ISO_POSIX_CLOCK_TYPES_HEADER, new inferred value <cyg/posix/time.h>
U CYGBLD_ISO_POSIX_CLOCKS_HEADER, new inferred value <cyg/posix/time.h>
U CYGBLD_ISO_PTHREAD_MUTEX_HEADER, new inferred value <cyg/posix/mutex.h>
U CYGBLD_ISO_NAME_MAX_HEADER, new inferred value <cyg/fileio/limits.h>
U CYGBLD_ISO_NETDB_PROTO_HEADER, new inferred value <net/netdb.h>
U CYGBLD_ISO_NETDB_SERV_HEADER, new inferred value <net/netdb.h>
$ ecosconfig add eth_ks32c5000
$ ecosconfig tree
$ make

and then dns.c is getting compiled.

Try doing it again and make sure you are start in an empty directory.

    Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]