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
* WEBOS_PORTS_REPO_NAME is usually the same as WEBOS_REPO_NAME, use
  the same variable
* PV is now appended in webos_enhanced_submissions, recipes which
  inherit webos-ports-submissions need also to inherit
  webos_enhanced_submissions

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>
Revert "webos.inc: Change default PACKAGE_ARCH to MACHINE_ARCH"

We need efficient multi-machine builds, we don't want that

This reverts commit 7d5dafb66f38b1be71ebda3f6ac988d95f6ef677.
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
* conf: webos: activate adb DISTRO_FEATURE
* conf: distro: webos: mark ubuntu 13.04 as sane
  Build on it since march without any problems so there is no reason to not mark it as sane
  and removes the warning I got on every build.
* add wayland DISTRO_FEATURE
  Required by mesa to build with proper wayland egl platform module.
* Unify naming of build artifacts
  add DATETIME to normal image

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>
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)
* bump SRCREV and drop dependency on android-audiosystem
* Contains the following changes:
7fe16c7 [provision] If multiple APNs are found for a SPN/mmc/mnc search, only provision the first. Fixes: ht
a4d1c3f [provision] Address review comments.
29a0840 [provision] Fix dumb mistake.
a1d53b3 [provision] Only create the first context if multiple hits are found.
7b03404 rilmodem/gprs.c: adding back state tracking for data network (only when ofono is already attached).
6d63327 releasing version 1.12phablet11
b7cee8f rilmodem/gprs.c fixing coding style
afadb2e rilmodem/gprs.c: just request registration status if ofono is attached
b75c70c rilmodem/gprs.c: adding back state tracking for data network
5633043 [rilmodem] Fixes disable GPRS bug (LP: 1204644). Fixes: https://bugs.launchpad.net/bugs/1204644.
85ea4ce [gril/rilmodem] Re-factor gprs-context code to facilitate unit testing.
db5304e Re-merge from lp:~awe/phablet-extras/ofono-unittest-gprs-context.
581b912 [gril] Minor re-factoring in helper functions.
babdc62 [gril] Re-numbered parcel unit test data variables to match test cases.
2dc4d80 [gril] Moved ofono error helper #defines into <ofono/types.h>
8116e43 [rilmodem] Added comments to explain rilmodem's GPRS attached logic.
32dcac9 Releasing 1.12phablet10
a250197 [rilmodem] Fix deactivate GPRS bug (LP: 1204644).
c958d78 [rilmodem] Implement gprs_context_detach_shutdown().
e3ec835 [gril] Fix a bug in parcel_w_string() that can cause an invalid string terminator to be generated.
a8c33fa [gril/grilmodem] Ensure that data call is deactivated in invalid reply scenarios.
d1c119e Re-merge from trunk.
29f1578 [gril] Fixed the tracing logic, and cleaned up some minor warnings.
ac1361b [gril] Re-factored low-level message support into type-specific modules.
3b7a0d4 [rilmodem] Fix GPRS tight loop when roaming (LP: 1188404). . Fixes: https://bugs.launchpad.net/bugs/
18d4702 [rilmodem] Back out AudioSystem and Makefile.am changes made by mistake.
16006be [gril/rilmodem] Split grilmessages into grilrequest, grilreply, and grilunsol.
3ee4628 Releasing ofono-1.12phablet9
ca14f55 [rilmodem] Fix GPRS tight loop when roaming.
df58f76 [rilmodem] Add SIM PIN/PUK support.
bb88b9c [gril] Make changes for unit testing.
fe23a4c [gril] Initial gprs-context unit tests for grilmessages.
ff9371b [gril] Re-work of gprsmessages based on unit testing.
9adfec0 [rilmodem] Re-factor SIM aid/app string code to use g_strdup().
c903e1a [rildmodem] Fix SIM logic to make copies of aid/app strings.
5f8ec61 [ril] Fix compile error.
9c6e1c1 [rilmodem] Fix compile error.
08dc227 Re-merge from trunk.
990102e Releasing 1.12phablet8
dfc4065 [rilmodem] Minor re-factoring of PIN code.
c5263cb [ril] Add SIM PIN/PUK support.
248a28a [rilmodem] Add SIM PIN/PUK support.
2762dc4 Added network time plugin which exposes RILD NITZ messages over DBus.
9c9c400 Re-merge from trunk.
8bfe3f8 [gril] Exit if errors occur during RILD socket intialization.
283717d Update debian/changelog to UNRELEASED.
e9a0a6f [nettime] Fix NetworkTimeChanged signal in test/monitor-ofono.
15e100c [rilmodem] Minor changes/comments to gprs-context.
6bf818b Enable unit tests in debian/rules.
23c64c7 [gril/rilmodem] Re-factor RIL request/reply code to enable unit testing.
58267b7 Re-merge from trunk.
6a70613 Fixed changelog merge error.
e897f42 Re-merge from trunk.
2740edf Adding a test target to debian/rules.
5e92b7b [ril/rilmodem] Add real calls for revision and IMEI probe.
010530f rilmodem/devinfo.c: fixes from code review
f1b54ea Adding a check target to debian/rules
4e814eb [gril] Exit on RILD socket errors.
cfed13a Re-merge from trunk.
991532a rilmodem/devinfo.c: only free revision/imei if it's valid
812880e rilmodem/devinfo.c: using RIL_REQUEST_GET_IMEI for imei (works for both maguro and mako)
05db902 releasing version 1.12phablet6
74302bb [ril/rilmodem] Add real calls for revision and IMEI probe
83d4f62 [nettime] Added test scripts.
a59dbfa [rildmodem] Add retry logic to the initial GET_SIM_STATUS logic (LP: #1187031). Fixes: https://bugs.
ef93afc [nettime] Initial checkin of Network time plugin.
96f930b Releasing 1.12phablet5
0e3b9f6 [ril] Cleanup review comments, and fix merge error.
082ba61 [ril/rilmodem] Re-merge from trunk.
2d65a29 [gril/rilmodem] Add conditional build-time logic to RIL command tracing, and low-level gril logging.
ccc961c [gril/rilmodem] Get rid of tracing start/stop request/response #defines.
28e9b2f [ril/rilmodem] Minor cleanup.
02f3b8c [gril/rilmodem] Make g_ril_append_print_buf conditional.
88b965a [rilmodem] Remove un-needed SMS hex tracing calls.
7d59770 [gril/rilmodem] Re-factored tracing code to enable/disable by env variable.
617d9f3 [ril] Add forward declaration of send_get_sim_status().
aae0a21 [ril] Add retry logic to initial GET_SIM_STATUS logic.
750b33d [rilmodem] Fix compile-time error...
a7e5a9c [rilmodem] Add trace code to sms and voicecall.
2d96eb2 [gril/rilmodem] More debug clean-up/re-factoring.
e040300 [gril] Fix CONNECTED check.
1f618db [ril] Make ril plugin wait for RIL_CONNECTED before sending GET_SIM_StATUS.
e2079d1 Re-merge from trunk.
22b61b4 [gril] Add conditional guards to DBG statements.
d89d9a9 [rilmodem] Get rid of un-used sim_debug() function.
6390953 [rildmodem] More DBG cleanup.
1cb5e9a [rilmodem] Re-factored debug tracing to simplify and add ifdef logic.
8b5844b Saucy for ofono.
07f97ce Building for saucy.

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>
connman-conf: update wired.setup to configure the Android USB gadget correctly

Signed-off-by: Simon Busch <morphis@gravedo.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
connman: manually set xuser uid to 10000 to be out of android system user range

Better way would be settings 10000 as the lower bound in login.defs directly instead of
setting it manually here for only one user.

Signed-off-by: Simon Busch <morphis@gravedo.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
xuser-account: set xuser UID to 10000 and remove it from connman

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>