On 11/07/14 17:50 , "Vitaly Chernooky"
<[email protected]> wrote:


>So it is a rpmbuild limitation?
>
>

most of the time it’s software that is tried to build limitation.
E.g. perl is not intended to be cross-compiled and all embedded
distributions that do that has quite a bunch of hacks to enable it.
Android from your example does not have issue, but “normal” Linux
distributions do.

rpmbuild itself has understanding on what is host os and what is target
os… but then it comes down to things like autotools/cmake or handcrafted
makefiles and similar that often have issues on mixing what is actually
built for host and what is for target.

Another point on cross-compilation with packaging build is “clean
environment”. 
In case of gbs local build it is not entirely clean, as it does not use
virtualisation to isolate from host OS and just uses chroot mechanism.
On Tizen infrastructure, each package build is happening in clean VM where
impact of anything external to the project is eliminated.

In case of cross-compiling, the cross tools itself must behave properly on
host OS, and this often creates issues with limited “supported”
configurations.
(e.g. specific version requirements for jdk or Ubuntu in case of Android).



>
>\\wbr
>
>
>
>On Fri, Jul 11, 2014 at 5:43 PM, Dominig ar Foll (Intel OTC)
><[email protected]> wrote:
>
>Le 11/07/2014 15:37, Vitaly Chernooky a écrit :
>
>
>Hi all!
>
>Can anybody tell me why Tizen doesn't use plain cross-compilation like
>android?
>
>
>
>
>
>The current default system used to build Tizen is OBS and OBSes use a
>chroot to emulate a native build.
>It has pros and cons.
>
>The main pro is the simplicity of the build process which is very similar
>to a local native build.
>
>The main cons is when is come to build for other architectures as QEMU
>comes in the game.
>In reality, the heavy build action are also build in a mix Arch in OBS,
>in order to avoid to run for example the compiler through QEMU.
>It's not a traditional Cross build but it's very close to it and the
>performance it is minimal while you still benefit from the simplicity of
>a 'like native' build model.
>This is why you see IA repos (32 and 64 bits) in the arm repos on
>Tizen.org OBS.
>  
>https://build.tizen.org/project/show?project=Tizen%3ACommon
><https://build.tizen.org/project/show?project=Tizen%3ACommon>
>
>On the other hand, if you are really interested in full cross compilation
>of Tizen, there is a project looking at building Tizen with Yocto.
>There wiki page is here :
>  https://wiki.tizen.org/wiki/Tizen_on_yocto
>It's still early phase but you may want to give it a go.
>
>Regards
>
>-- 
>Dominig ar Foll
>Senior Architect
>Intel Open Source Technology Centre
>
>
>_______________________________________________
>Dev mailing list
>[email protected]
>https://lists.tizen.org/listinfo/dev
>
>
>
>
>
>
>-- 
>Vitaly Chernooky | Senior Developer - Product Engineering and Development
>GlobalLogic
>P +380.44.4929695 ext.1136 M +380.98.7920568 S cvv_2k
>www.globallogic.com <http://www.globallogic.com>
>
>http://www.globallogic.com/email_disclaimer.txt
>
>
>
>


-- 
Best regards, Alexander Kanevskiy.

---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev

Reply via email to