importing external object files in okl4 image okl4 2.1.

2 messages Options
Embed this post
Permalink
Gabi Voiculescu

importing external object files in okl4 image okl4 2.1.

Reply Threaded More More options
Print post
Permalink
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
[hidden email]
https://lists.okl4.org/mailman/listinfo/developer
Gabi Voiculescu

Re: importing external object files in okl4 image okl4 2.1.

Reply Threaded More More options
Print post
Permalink
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 <[hidden email]> wrote:

> From: Gabi Voiculescu <[hidden email]>
> Subject: [okl4-developer] importing external object files in okl4 image okl4 2.1.
> To: [hidden email]
> 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
> [hidden email]
> https://lists.okl4.org/mailman/listinfo/developer


     

_______________________________________________
Developer mailing list
[hidden email]
https://lists.okl4.org/mailman/listinfo/developer