Add support for using Scratchbox2 together with OBS as an alternative cross compile approach

Signed-off-by: Carsten Munk <carsten.munk@gmail.com>
Make enter_target shell quote safe

Signed-off-by: Carsten Munk <carsten.munk@gmail.com>
Workaround quoting problem with Harmattan

Authored-by: Carsten.Munk@gmail.com
Support Xen on MeeGo OBS
Force an extra rw for the Xen kernel
Xen needs / remounted rw for the SB2 init. Not sure why yet.
<SPEC_REL> can be in prjconf and must be substituted after $release
initial support for --chroot-only
chroot-only fixup
Add --skip-prep to ask a suitable rpm to skip the %prep phase
Only run the xen remount in xen guests

Signed-off-by: David Greaves <david@dgreaves.com>
Pass the ABUILD_UID/GID to the sb2 init

Signed-off-by: David Greaves <david@dgreaves.com>
Workaround for bug https://bugs.merproject.org/show

Signed-off-by: David Greaves <david@dgreaves.com>
Move the rsync/overlay actions prior to any 2nd stage (they are useful for sb2 and probably lxc)

Signed-off-by: David Greaves <david@dgreaves.com>
Pass the RSYNCDONE flag to the 2nd stage

Signed-off-by: David Greaves <david@dgreaves.com>
Pass the SKIP_PREP flag to the 2nd stage

Signed-off-by: David Greaves <david@dgreaves.com>
We rsync to the BUILD_ROOT not the BUILD_TARGET

Signed-off-by: David Greaves <david@dgreaves.com>
Add support for a build.script for spec/rpm builds too Note that rpm builds run from / whereas debian builds run from $TOPDIR/BUILD This allows all kinds of useful trickery to produce and publish rpms.

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Pass additional variables to sb2 build even if VM_TYPE is not sb2.

This can happen when building with sb2 using kvm virtualisation.
In this case VM_TYPE variable will be equal to "kvm",
so we detect sb2 build by presence of BUILD_SB2FLAGS non-empty variable.

Signed-off-by: Oleg Girko <oleg.girko@jolla.com>