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]

libcdl : refactoring proposal


Hi,

As I posted earlier, I needed an option 

 ecosconfig tree -s

which would generate symbolic links to headers instead of the default. I 
wanted to present a patch, but digging into the code revealed that there is 
no class to encapsulate the makefile generation. All is done in the C 
functions in libcdl. Therefore, I think there is need for a CdlMakeConfig 
base class which defines the methods and options to encapsulate how the build 
tree is made. this would also contain the specification of the 
headerfile/sourcefile extensions, build-dir prefixes, and all 
'configuration-wide' stuff. For example, a specialisation could generate 
'ant' scripts for compiling java code.

I do not think it is a dificult step to abstract away the build tree 
generation since the existing libcdl interface was designed to do that.  The 
CdlMakeConfig would be tied to a specific configuration.

My contribution would be to present the CdlMakeConfig base class together with 
one specialisation ( which contains the current makefile generation code ). I 
would then add the optional feature to symbolic link headers instead of copy.

Reading the cdl manual reveals that many 'wishlist/todo' comments need such an 
underlying class support.

Please specify the conditions under which this patch would be allowed in the 
main tree.

with kind regards,
Peter

-- 
------------------------------------------------------------------------
Peter Soetens                                      http://www.orocos.org
Katholieke Universiteit Leuven
Division Production Engineering,                      tel. +32 16 322773
Machine Design and Automation                         fax. +32 16 322987
Celestijnenlaan 300B                   peter.soetens@mech.kuleuven.ac.be
B-3001 Leuven Belgium                 http://www.mech.kuleuven.ac.be/pma
------------------------------------------------------------------------


-- 
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]