On Mon, Apr 19, 2010 at 10:55 AM, Bahadir Balban <baha...@l4dev.org> wrote:
> > This is due to the configuration file. We use an ARM configuration file > which we created, and the build logic generates these flags based on the > architecture it has parsed in the cml file. cml files are under > config/cml/ and have a syntax of their own. Please google for cml2 for > this. > > Here you go, from config/configuration.py > > 121 # Extract cpu from a name value pair > 122 def get_cpu(self, name, val): > 123 if name[:len("CONFIG_CPU_")] == "CONFIG_CPU_": > 124 parts = name.split("_", 3) > 125 self.cpu = parts[2].lower() > 126 > 127 # derive gcc "-march" flag > 128 for cputype, archflag in self.arch_to_gcc_flag: > 129 if cputype == parts[2]: > 130 self.gcc_arch_flag = archflag > > You need to create a basic configuration file for your core, and there > are bits like this that you will need to change. > <http://lists.l4dev.org/mailman/listinfo/codezero-devel> Hi all, I have been looking at CML2 configuration process and I can not say that I understand much of the things. Can anybody point me to some tutorial or resources, apart from the http://www.catb.org/~esr/cml2/ ? 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: [draskod1]~/cml2/cml2-2.3.0 > ./cmlcompile.py torture.test Compiling rules, please wait...- "torture.test", line 4: syntax error, unknown statement word='l' and [draskod1]~/cml2/cml2-2.3.0 > ./cmlconfigure.py torture.test Can't find tkinter support, falling back to curses mode... ./cmlconfigure.py:3318: DeprecationWarning: catching of string exceptions is deprecated except "UNSATISFIABLE": Traceback (most recent call last): File "./cmlconfigure.py", line 3312, in <module> main(options, arguments) File "./cmlconfigure.py", line 3186, in main configuration = load_system(options, arguments) File "./cmlconfigure.py", line 3078, in load_system configuration = cmlsystem.CMLSystem(rulebase) File "/home/draskod1/cml2/cml2-2.3.0/cmlsystem.py", line 105, in __init__ rules = cPickle.load(open(rules, "rb")) cPickle.UnpicklingError: invalid load key, '#'. I have no idea how this works and what has to be done. [draskod1]~/cml2/cml2-2.3.0 > ./autoconfigure.py autoconfigure: rulebase ./rules.out does not exist! <--- What rules? How do we generate them? [draskod1]~/cml2/cml2-2.3.0 > ./autoconfigure.rules ./autoconfigure.rules: line 38: syntax error near unexpected token `"autoconfigure.rules: CPU (processor type)"' ./autoconfigure.rules: line 38: `DEBUG("autoconfigure.rules: CPU (processor type)")' 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
_______________________________________________ codezero-devel mailing list codezero-devel@lists.l4dev.org http://lists.l4dev.org/mailman/listinfo/codezero-devel