[Buildroot] Two stages compilation

Angelo Compagnucci angelo.compagnucci at gmail.com
Wed Apr 30 07:30:52 UTC 2014


Hi Zoltan,

Thank you very much for the info, I'm reading the documentation avidly
but I totally missed that option.

Could you please send me the package definitions you mentioned above
as an example?

Thank you!

2014-04-29 12:53 GMT+02:00 Zoltan Gyarmati <mr.zoltan.gyarmati at gmail.com>:
> Dear Angelo,
>
> The point is here that for mono you have to define both a host package,
> and a target package. For this you can look for the
> "host-autotools-package" macro, and probably can get some ideas from
> checking package/python/python.mk.
>
> A couple of months back i was able to package mono for OpenWrt (which is
> in this sense close to Buildroot), but i haven't finalized that project
> (as it turned out that the target MIPS CPU is not totally supported by
> Mono...). If you think it's useful, i can dig this out from the archive
> and share the package definition with you. Please let me know if so.
>
> regards
> zgyarmati
>
>
>
> On 29.04.2014 11:29, Angelo Compagnucci wrote:
>> Hi List,
>>
>> I'm interested in porting mono package on buildroot. I aim to
>> inclusion and offering to maintain it in the future, but I need a
>> little bit of help.
>>
>> Mono compilation is in two stages:
>>
>> 1) Mono compiles the runtime for the target architecture. It means
>> that in this step you produce an ARM mono naked virtual machine.
>> 2) Mono compiles mono assemblies (c# libraries). This phase fails on
>> my package, cause to compile assemblies you should have Mono for the
>> host architecture, not the target one. So to compile assemblies you
>> should use the x86 mono's version installed on your computer.
>> Alternatively, if you don't want to install mono on your computer, the
>> makefile can download a precompiled stripped version just to compile
>> the assemblies, so the first phase is optional.
>>
>> I have the first phase running, so right now I can produce the ARM
>> mono virtual machine correctly, than I have to manual recompile
>> assemblies and transfer them to the target. I really want to make
>> everything as automatic as possible.
>>
>> So in the second phase I should force buildroot to compile mono on the
>> host environment and not the target one. How can I do this?
>>
>> Which is the advisable way to get the patch accepted?
>>
>> Thank you for your time!
>>
>> Angelo
>>
>
>
> --
> br,
> Zoltan Gyarmati
> mail: mr.zoltan.gyarmati at gmail.com
> freenode nick: zgyarmati
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot



-- 
Profile: http://it.linkedin.com/in/compagnucciangelo



More information about the buildroot mailing list