Drasko DRASKOVIC wrote:
> I downloaded cml2-2.3.0.tar.gz from Eric's website, I do not even know how
> to compile torture.test example that comes with it. I can see that there are
> cmlcompile.py and cmlconfigure.py, but I am getting:
> 

Unless you want to learn the deep internals I wouldn't recommend you to
try to instantiate sources from scratch like this.

> 
> Bahadir,
> can you please explain us c0 project configuration process and CML2 usage. I
> am personally used to GNU make so this is quite a mistery for me.
> 
> Many thanks and best regards,
> Drasko
> 

In a nutshell CML2 first compiles rules from a rule file, and then
instantiates a configuration file, allowing menu-based editing of the
configuration based on the rule file generated earlier. Its a 2 step
process.

As a result of the configuration, a config.out and config.h file is
created that contains the symbols for that configuration. Some of these
symbols have special meaning for the build system, but most of them are
used directly from the sources as part of headers.

Linux kernel has a similar configuration system, though theirs is not
python based.

I suggest you simply look at the ./configure.py script to see how cml is
called, then also look at ./config/configuration.py on how we parse some
special symbols (it's ugly and going to change)

-- 
Bahadir
_______________________________________________
codezero-devel mailing list
codezero-devel@lists.l4dev.org
http://lists.l4dev.org/mailman/listinfo/codezero-devel

Reply via email to