Mailinglist Archive: opensuse-buildservice (349 mails)
| < Previous | Next > |
Re: [opensuse-buildservice] cross-compilation in OBS - analysis
- From: Stanislav Brabec <sbrabec@xxxxxxx>
- Date: Fri, 30 Nov 2007 20:14:54 +0100
- Message-id: <1196450095.15393.6.camel@xxxxxxxxxx>
Ulrich Hecht píše v Pá 30. 11. 2007 v 17:34 +0100:
On Friday 30 November 2007, Stanislav Brabec wrote:
Ulrich Hecht wrote:
Actually, all you need to do is to copy a QEMU userspace emulator
into the sysroot and set up binfmt_misc appropriately, and the
scripts should work just fine. There will of course be ways to break
this, but usually pre/post scripts do not do anything complicated or
expensive.
It could work only for platforms, for which emulator exists.
AXP (although that one is broken AFAIK), ARM (BE and LE), CRIS, i386,
68k, MIPS (BE and LE), PPC (32 and 64 bits), SH4, and SPARC (32 and 64
bits).
It will cost about 95% of power. If you will use native icecream hosts
for parallel compilation, it will still cost about 80% of power (make
has to run natively, linker will probably run natively as well.
This is not what I have been talking about at all. What I was getting at
is that you seem to think it is not possible to install packages and
running their pre/post scripts without moving the entire build into a
(system) emulator. This is wrong, you just have to do what I described
above, and you can set up your sysroot on any machine. How you build the
packages has nothing to do with that.
The question is: Is it required for cross-compilation?
As far as I tested it, I found only one compile-time breakage:
linux-kernel-headers did not create /usr/include/asm.
I doubt there will be many such problems. Most caches and files created
are required only for runtime.
For example OE uses virtual machine only for very few tasks, e. g.
compilation of locales.
Second question is: How we would handle post/pre, if we will do it?
Should we start the virtual engine and do complete RPM installation
there, or install on native system, then resume virtual machine and run
pre/post and suspend again?
--
Best Regards / S pozdravem,
Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec@xxxxxxx
Lihovarská 1060/12 tel: +420 284 028 966
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
| < Previous | Next > |