prepare-submission.sh: Add simple script for creating webos tags

:Release Notes:
Creating submission or version tags is a bit error prone, most common
issues are:
* tags are moved after they have been used in build
* tags aren't annotated, so we cannot find who created or moved tag
* tags don't match expected format or minimal submission (1),
  version (0.1.0)
* developers are tagging latest commit in their local tree (after they
  check that it was merged on gerrit), but even when it's the same
  commit it has different revision in master branch, because it was
  cherry-picked by gerrit.

:Detailed Notes:
This script checks for issues listed above, creates correct tags,
pushes tags and allows automatic update of WEBOS_VERSION in recipe
when -r parameter is used. It will also show how commit subject and
git log --oneline in ":Detailed Notes:" should look.

:Testing Performed:
Created couple of tags with every possible combination of used
parameters on normal clone as well as on bare clone, bare+mirror
clone cannot be used -> script detects that and shows error.

:QA Notes:
No change in image

:Issues Addressed:
[GF-5328]  Improve build performance and allow to build completely
           from PREMIRROR
[GF-12492] Convert PREFERRED_VERSION to WEBOS_VERSION and modify
           webos_enhanced_submissions.bbclass

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>
Change-Id: I9fe5d66c1e5cbb5e10628af6dd61d1b6c15d660d
webos*submissions: update bbclasses for webos-ports needs

* always append +gitr${SRCPV} in PV
* skip sanity check for tags when webos-ports-submissions is used
* use different prefix for webos_enhanced_submissions and
  webos-ports-submissions
* now we don't need any specific changes in each recipe, just inherit
  webos-ports-submissions and set SRCREV

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes: drop all PR/PR_append/PRINC

* there is a plan to remove PRINC support
  let's remove all PR/PR_append/PRINC till we don't
  need to support upgrade path (which is already broken
  by PR_appends

  http://lists.openembedded.org/pipermail/openembedded-core/2013-May/079145.html

  also merge two consecutive blank lines in edited files
  (in most cases created by ^PR.* removal:
  for i in `git grep "\(\(^PR[ =]\)\|\(^PRINC[ =]\)\|\(^PR_append[= ]\)\|\(^EXTENDPRAUTO_append[= ]\)\)"| sed 's/:.*//g' | xargs`; do sed -i "/\(\(^PR[ =]\)\|\(^PRINC[ =]\)\|\(^PR_append[= ]\)\|\(^EXTENDPRAUTO_append[= ]\)\)/d" $i; sed -i "/^$/N;s/^\n$//g" $i; done

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Update layer config and README

* for history check danny-old branch

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
webos-ports: modify distro configuration

* define DEPLOY_DIR_IMAGE path with separate directory for each MACHINE
* add LICENSE_CREATE_PACKAGE
* webos-features: Enable gold as default linker
* defaulttunes: Add config file with DEFAULTTUNE overrides
  * change DEFAULTTUNE for tuna and grouper to cortexa8t-neon
* import MACHINE_CLASS override from SHR
* set default of WEBOS_TARGET_MACHINE_IMPL to device
  Having the default set to device makes it easier to support different target machines
  without adding webos specific overrides to their machine layer.
* fix KERNEL_IMAGE_BASE_NAME to include PKGE
* switch init manager from upstart to systemd

Signed-off-by: Simon Busch <morphis@gravedo.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
classes: import from separate meta-webos-ports

* for history check danny-old branch
* changes since import:
* extend enyojs_application bbclass to install db8 kinds/permissions and activities
* add simple bbclass to extend package meta data for device/luna restart
* rename cordova_application/enyojs_application bbclass to start with prefix webos_
* move common application parts from webos_enyojs_application into own webos_application class
* webos-ports-image: don't pack minimal /dev into our images
  We're using devtmpfs so are not required to have a minimal /dev as part of our images.
  This will furthermore break the generation of android fastboot images as they are not
  supporting special files like character or block devices.
* rm_old_work: drop WORKDIR modification
  it's no longer needed, package.bbclass was fixed to package source
  correctly when last directory ends with just PV and this layout is also
  default in oe-core now

Signed-off-by: Simon Busch <morphis@gravedo.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
images: import from separate meta-webos-ports

Signed-off-by: Simon Busch <morphis@gravedo.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
devshell: add recipe

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
orc: disable mmap, docs, examples and testsuite

* introduce changes related to orc from HP/Palm's  meta-oe

This makes use of upstream meta-oe rather than using only a subset of meta-oe from
HP/Palm. Furthermore version of orc has bumped to 0.4.16 as 0.4.14 is gone from upstream
meta-oe.

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
opkg: run opkg-postinst a bit earlier

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
sysvinit: use u-a for telinit

* for history check danny-old branch

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
distro-feed-configs: limit available architectures

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
mtdev: add recipe

* for history check danny-old branch

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
ofono, ofono-qt: add recipes

* for history check danny-old branch
* changes since import:
* use ubuntu's modified version with support for the android ril daemon
* launch when android init system has finished launching it's services
* bump SRCREV
  [ril/rilmodem] Initial support for mobile data (GPRS).
* correct DEPENDS and bump PR
  * libsamsung-ipc is not needed anymore as the used ofono version does not include support
    for it.
  * the rilmodem driver depends on symbols from libwaudio which is part of
    android-audiosystem.
  * use DEPENDS +=, because DEPENDS from .inc are still needed (dbus,
    glib-2.0, udev, mobile-broadband-*, bluez4)

Signed-off-by: Simon Busch <morphis@gravedo.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
connman, (webos-)connman-adapter: import from separate meta-webos-ports

* for history check danny-old branch

* changes since import:
* webos-connman-adapter: add temporary patch to fix #379
  Patch will go upstream and should be dropped once it is included upstream.
* connman-conf: add wired-setup script to SRC_URI
* connman-conf: fix build for qemu*
  qemuall append without leading space, which causes errors like this:
  ERROR: Fetcher failure: Unable to find file file://wired-setupfile://wired.config anywhere.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
pulseaudio: import from separate meta-webos-ports

* for history check danny-old branch
* changes since modification:
* import patch from ubuntu
  See https://bazaar.launchpad.net/~phablet-team/phablet-extras/pulseaudio/revision/587
* add alsa configuration to system configuration file
* add upstart script to start in system mode on startup
* add patch to configure pulseaudio properly; fixes #421
* configure it to be compatible with the android-audiosystem
  * Pulseaudio needs to be start only when the android mediaserver is running as otherwise
    it will hang while accessing the audioflinger service through android-audiosystem
  * We're overriding the default configuration with our own variant which will be extended
    soon to support the webOS audio system.
  * We can't use udev based module autodetection while configuring manual alsa sink/source
    as this leads to access pulseaudio the alsa card provided by the device twice and having
    our kernel oopsing.
  * always start in system mode
* launch when android init system has finished launching it's services

Signed-off-by: Simon Busch <morphis@gravedo.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
packagegroups: import from separate meta-webos-ports

* for history check danny-old branch
* changes since import:
  packagegroup-webos-upstart: make it MACHINE_ARCH, add pulseaudio-upstart
* packagegroup-webos-ports-extended: add more packages
  samsung-rfs-mgr from ofono and right android-system-image
  android-audiosystem
  pull android-audiosystem only for tuna and grouper
  only include bluez4 when machine has bluetooth feature
  gstreamer and plugins
  pulseaudio-misc
  android-system-compat
  drop dependency on samsung-rfs-mgr for tuna
  some additional gst plugins
* packagegroup-webos-ports-development: add more packages
  strace
  opkg-utils
  gst-meta-debug
  testr application
  gdbserver and bc

Signed-off-by: Simon Busch <morphis@gravedo.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
crash-handler: add recipe

* import from separate meta-webos-ports
* for history check danny-old branch

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
mjson: add recipe

* import from separate meta-webos-ports
* for history check danny-old branch

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
powerstat: add recipe

* import from separate meta-webos-ports
* for history check danny-old branch

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>