This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
CDL and Makefile Variables
- From: Fabian Scheler <fabian dot scheler at gmail dot com>
- To: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 19 Sep 2005 14:54:31 +0200
- Subject: [ECOS] CDL and Makefile Variables
- Reply-to: fabian dot scheler at gmail dot com
Hello,
within cdl-files on has the oportunity to influence the process of
makefile-generation by using make-statements. Some special variables
like '<PACKAGE>' are accessible within these user-defined rules. But
is there a possiblity to introduce user-defined variables into a
make-file? Currently I'm tricking a bit, I do the following:
cdl_component SOME_COMP {
display "..."
flavor bool
default_value 0
make -priority=xx {
my_dummy_target : my_dummy_prerequisite
my_var = my_val
}
}
This way I can switch between different values of the variable
'my_var'. Nevertheless is neither a comfortable nor a clean solution
and more or less works by accident only. Is there a better solution?
Ciao, Fabian
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss