This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
CDL question
- From: Grant Edwards <grante at visi dot com>
- To: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 31 Jul 2006 21:36:58 -0500
- Subject: [ECOS] CDL question
I've read through the CDL sections of the component developer's
guide, but I can't figure out what the command is to set a data
flavored option to an expression involving it's default value
or it's current value.
Assume I've got an ecos.ecc file that I generated via an
"ecosconfig new whatever" command. Now I want to change the
value of CYGBLD_GLOBAL_CFLAGS (which has its default value) to
add "-DFooBar". This needs to be done in a shell script so
that I can automate the entire build process. Usually when I
need to make automated changes to ecos.ecc I create a .cdl file
and import it like this:
cat >.tmp$$.cdl <<EOF
cdl_option CYGBLD_BUILD_REDBOOT_WITH_GDB {user_value 0}
cdl_option CYGBLD_BUILD_REDBOOT_WITH_ZLIB {user_value 0}
EOF
ecosconfig import .tmp$$.cdl
However, I can't figure out what the TCL expression is for "the
current value of option CYG_WHATEVER". I thought perhaps something like
option CYGBLD_GLOBAL_CFLAGS {user_value "$CYGBLD_GLOBAL_CFLAGS -DFooBar"}
But that doesn't work. I'm sure it's something obvious, but
I've never been able to grok TCL no matter how hard I try...
--
Grant Edwards
grante@visi.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss