This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: additional compiler options in cdl script
[Thanks Gary for your prompt response.]
I have yet another question. The package I am adding belongs to two
templates, net as well as old_net. But I want different kind of activation
(using active_if <expression> in my package) depending on the current
selected template. So how can differentiate between net and old_net. I mean,
is some flag or variable defined, when a particular template is selected?
Regards
Mohanlal
> All you need is to add the appropriate define when
> "CYGPKG_MY_PKG_MODULE" is selected.
>
> > cdl_component CYGPKG_MY_PKG_MODULE {
> > active_if CYGPKG_MY_PKG
> > define MODULE_FLAG
> > compile x.c y.c z.c
> > }
> > }
>
> Be sure that your source files include <pkgconf/XYZ.h>, where XYZ is the
> name of your CDL package.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss