[okl4-developer] importing external object files in okl4 image okl4 2.1.

Gabi Voiculescu boy3dfx2 at yahoo.com
Tue Jan 13 07:46:08 EST 2009


I managed to add object files in okl4 by encapsulating them in a library and adding the new library in the application SConscript    env.KengeProgram LIBS list.

Then I created a new class in tools/toolchains.py

class custom_generic_gcc_3_4_libgcc(generic_gcc_3_4_libgcc):
     def  __init__(self, *args):
          generic_gcc_3_4_libgcc.__init__(self, *args)
          self.dict["LINKFLAGS"] = ["-L/path/to/new/library"]

and that was that.

Gabi Voiculescu


--- On Tue, 1/6/09, Gabi Voiculescu <boy3dfx2 at yahoo.com> wrote:

> From: Gabi Voiculescu <boy3dfx2 at yahoo.com>
> Subject: [okl4-developer] importing external object files in okl4 image okl4 2.1.
> To: developer at okl4.org
> Date: Tuesday, January 6, 2009, 3:03 AM
> Hi .
> 
> I have to compile some ARM files with a different toolchain
> than the one used for the kernel.
> 
> Does the okl4-2.1 build system automatically import all
> object files found in the build subbranches into the okl4
> image?
> 
> Thank you,
> Gabi Voiculescu
> 
> 
> 
> 
>       
> 
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer


      



More information about the Developer mailing list