qt4-webos: store parts of builddir and srcdir for webkit-webos and webkit-supplemental

* webkit-supplemental needs some header files which are not installed by
  default and inside those there are other headers included from srcdir

  # but qt4-webos checkout has different layout (src/gui/painting/qwindowsurface_p instead of qt-build-tuna/include/QtGui/private/qwindowsurface_p.h)
  # $ find tmp-eglibc/work/armv7a-vfp-neon-webos-linux-gnueabi/webkit-supplemental-2.0.0-0.5-r1/ -name qwindowsurface_p.h
  # tmp-eglibc/work/armv7a-vfp-neon-webos-linux-gnueabi/webkit-supplemental-2.0.0-0.5-r1/qt4-webos/src/gui/painting/qwindowsurface_p.h
  #
  # $ find tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-0.35-r11/ -name qwindowsurface_p.h
  # tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-0.35-r11/git/src/gui/painting/qwindowsurface_p.h
  # tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-0.35-r11/package/usr/src/debug/qt4-webos-4.8.2.03-0.35-r11/git/src/gui/painting/qwindowsurface_p.h
  # tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-0.35-r11/packages-split/qt4-webos-dbg/usr/src/debug/qt4-webos-4.8.2.03-0.35-r11/git/src/gui/painting/qwin
  # tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-0.35-r11/qt-build-tuna/include/QtGui/private/qwindowsurface_p.h
  #
  # $ cat tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-1.00-r12/qt-build-tuna/include/QtGui/private/qwindowsurface_p.h
  # #include "../../../../git/src/gui/painting/qwindowsurface_p.h"

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
webkit-supplemental: don't use WORKDIR from qt4-webos build, but stored headers in sysroot

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qt4-webos: make it MACHINE_ARCH

* qt4-webos is really machine-specific as of right so we have to specifiy it to keep package
  feeds sane. This is necessary unless qt4-webos moves out of the machine-specific corner and
  becomes as universal component available to use for all machines.

* even if we replace those python functions using MACHINE to define
  config with simple variable with arch overrides, we still export
  MACHINE to qt build
  export WEBOS_CONFIG="webos ${MACHINE}"
  so to make this recipe correctly TUNE_PKGARCH we have to change remove
  MACHINE usage from .pro files in repo and replace it with something
  more generic.

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>
webkit-webos: make it MACHINE_ARCH

* we're depending on MACHINE specific qt4-webos so better to build it as MACHINE_ARCH
  then rebuild it after each MACHINE switch as TUNE_PKGARCH

* this is temporary solution, qt4-webos should be changed to be TUNE_PKGARCH
  but that needs some changes in qt repo too.

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
webkit-supplemental: make it MACHINE_ARCH

* we're depending on MACHINE specific qt4-webos so better to build it as MACHINE_ARCH
  then rebuild it after each MACHINE switch as TUNE_PKGARCH

* this is temporary solution, qt4-webos should be changed to be TUNE_PKGARCH
  but that needs some changes in qt repo too.

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
browser-adapter: make it MACHINE_ARCH

* we're depending on MACHINE specific qt4-webos so better to build it as MACHINE_ARCH
  then rebuild it after each MACHINE switch as TUNE_PKGARCH

* this is temporary solution, qt4-webos should be changed to be TUNE_PKGARCH
  but that needs some changes in qt repo too.

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
browserserver: make it MACHINE_ARCH

* we're depending on MACHINE specific qt4-webos so better to build it as MACHINE_ARCH
  then rebuild it after each MACHINE switch as TUNE_PKGARCH

* this is temporary solution, qt4-webos should be changed to be TUNE_PKGARCH
  but that needs some changes in qt repo too.

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
luna-sysservice: make it MACHINE_ARCH

* we're depending on MACHINE specific qt4-webos so better to build it as MACHINE_ARCH
  then rebuild it after each MACHINE switch as TUNE_PKGARCH

* this is temporary solution, qt4-webos should be changed to be TUNE_PKGARCH
  but that needs some changes in qt repo too.

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qt4-webos: fix creating /include directory in build host root

* the same fix like normal qt4
  http://git.openembedded.org/openembedded-core/commit/?id=7d3fd68480d54a8ef0d91a772df3506cd45ef2c2

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qt4-webos: add patch to fix build for qemux86-64

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
browser-adapter: fix unmatched quotes

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qt4-webos: replace python functions with simpler variable

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qmake-webos-native: remove dependency on target MACHINE in native recipe

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qt4-webos: move shared parts between qt4-webos.bb and qmake-webos-native.bb to qt4-webos.inc

* at least we don't depend on MACHINE variable from native recipe
  and we can disable opengl

* but this is still only temporary solution and needs to be replaced with qt4-native

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qt4-webos: don't export wrong STAGING_LIBDIR/STAGING_INCDIR values

* breaks do_install when opengl is enabled:
  | make[1]: Entering directory `/OE/webos/owpb/openwebos-ports/tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-1.01-r23/qt-build-tuna/src/opengl'
  | make[1]: *** No rule to make target `/OE/webos/owpb/openwebos-ports/tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-1.01-r23/image/usr/include/string.h', needed by `.obj/release-shared/qgl.o'.  Stop.
  | make[1]: Leaving directory `/OE/webos/owpb/openwebos-ports/tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-1.01-r23/qt-build-tuna/src/opengl'
  | make: *** [sub-opengl-install_subtargets-ordered] Error 2
  | make: Leaving directory `/OE/webos/owpb/openwebos-ports/tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-1.01-r23/qt-build-tuna'

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes: replace webos_arch_indep with allarch from oe-core

* allarch works better with sstate

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
webos: define DEPLOY_DIR_IMAGE path with separate directory for each MACHINE

* it's easier to find matching rootfs and kernel image

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
webkit-webos: drop wrong test for gold

* we don't have 4.5.1 (ld-is-gold DISTRO_FEATURE should be used)
* because of missing space it always fails anyway..
  bash: [-e: command not found

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>