[okl4-developer] adding a file in the image using weaver.xml

Gabi Voiculescu boy3dfx2 at yahoo.com
Tue Oct 28 07:30:31 EST 2008


Hello again.


I did try the following changes in teh implicit weaver.xml: 

116         <program name="myEmpty_example" file="/home/vlad/trunk/build_myEmpty/iguana/bin/myEmpty_example" >
117                 <commandline>
118                       <arg value="test"/>
119                       <arg value="test_file"/>
120                 </commandline>
121         </program>
122 
123         <program name="test_file" file="/home/vlad/trunk/h263.3gp">
124         </program>


I get the output presented below.

Does weaver xml check all files (programs) to be elf images/object files?


Thank you,
Gabi Voiculescu

......
[ELF ] build_myEmpty/images/image.elf
An error occurred: ElfIdentification doesn't match. [0,0,0,1c]
Now printing a traceback.

Traceback (most recent call last):
  File "tools/pyelf/elfweaver", line 74, in ?
    main(sys.argv)
  File "/home/vlad/trunk/tools/pyelf/weaver/main.py", line 94, in main
    commands[args[1]](args[2:])
  File "/home/vlad/trunk/tools/pyelf/weaver/merge.py", line 187, in merge_cmd
    merge(spec_file, options)
  File "/home/vlad/trunk/tools/pyelf/weaver/merge.py", line 119, in merge
    namespace, image, machine, pools, bootinfo)
  File "/home/vlad/trunk/tools/pyelf/weaver/merge.py", line 97, in collect_image_objects
    collect_program_pd_elements(parsed, ignore_name, namespace, image, machine, bootinfo, pools)
  File "/home/vlad/trunk/tools/pyelf/weaver/prog_pd_xml.py", line 583, in collect_program_pd_elements
    collect_program_element(el, ignore_name, namespace, image, machine, bootinfo, pools)
  File "/home/vlad/trunk/tools/pyelf/weaver/prog_pd_xml.py", line 305, in collect_program_element
    elf = UnpreparedElfFile(filename=program_el.file)
  File "tools/pyelf/elf/core.py", line 660, in __init__
    self.init_and_prepare_from_filename(filename)
  File "tools/pyelf/elf/core.py", line 943, in init_and_prepare_from_filename
    return self.init_and_prepare_from_file(File(filename, "rb"))
  File "tools/pyelf/elf/core.py", line 937, in init_and_prepare_from_file
    BaseElfFile.init_and_prepare_from_file(self, f)
  File "tools/pyelf/elf/core.py", line 344, in init_and_prepare_from_file
    ident.fromdata(f.get_data(0, ident.get_size()))
  File "tools/pyelf/elf/structures.py", line 170, in fromdata
    raise ElfFormatError, \
ElfFormatError: ElfIdentification doesn't match. [0,0,0,1c]




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20081027/1ec6e4ab/attachment.htm 


More information about the Developer mailing list