This is the mail archive of the ecos-discuss@sourceware.org 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]

CDL and Makefile Variables


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


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