summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* systemd: limit bbclass hooks to class-target scopeBrad Bishop2018-02-011-2/+5
| | | | | | | | | | Allow the phosphor systemd and dbus bbclasses to be inherited by recipes using BBCLASSEXTEND (native, etc). No-op in non-target recipe class context. Tested: Built an image and verified dbus and systemd unit files. Change-Id: Ib2f64233f89d05679c568527a074d9236729201f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* classes-dbus: general refactoringBrad Bishop2016-09-061-73/+70
| | | | | | | | | | | Use the SystemdUnit parser to determine unit file properties. Remove DBUS_ACTIVATED_SERVICE: Rather, infer whether or not the service should be dbus activated based on SystemdUnit results and act accordingly. Change-Id: I87eed79b088d8531153e9d366e0f2d2e5ea73e5e Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* classes-systemd: refactor substitutionsBrad Bishop2016-09-061-2/+2
| | | | | | | | | | The exising mechanism for doing substitutions worked but was cumbersome for expressing more than a handful. Rework the interfaces such that expressing many substitutions at once is simpler. Change-Id: I9ffee7a623219a797797cc8f085e7a06eaf74b3c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Allow package wide user specificiationBrad Bishop2016-09-061-11/+26
| | | | | | | Allow the user to be specified package wide or per unit. Change-Id: I19a56001bd2115462f132c3079690c4b2d0a5ddf Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* classes: prepare some classes for nativeBrad Bishop2016-07-281-1/+1
| | | | | | | | | | | | Enable native recipes to inherit the following classes: skeleton-python skeleton-sdbus skeleton-gdbus dbus-dir obmc-phosphor-dbus-service Change-Id: I1d79ffc38792dd48016f09119fc8ace46a304a4b Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* classes-dbus: Add support for dbus activationBrad Bishop2016-07-281-9/+61
| | | | | | | | | | Add DBUS_ACTIVATED_SERVICES_% which allows recipes to specify that a service can be dbus activated. Generate a default dbus activation file if none is provided. Change-Id: Ie18b0968f97762c22f5e0e2e14b493d7ae8261cd Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* classes-dbus: Instantiate obmc-phosphor-systemdBrad Bishop2016-07-281-5/+38
| | | | | | | | | | | | | | | | Instantiate obmc-phosphor-systemd and translate SYSTEMD_% variables appropriately. This enables systemd unit files that adhere to the standard naming convention: <dbus service name>.service to be found via DBUS_SERVICE_${PN} and inherit the functionality of the obmc-phosphor-systemd class. Add DBUS_USER_%s_%s and translate to SYSTEMD_USER_%s_%s appropriately. Change-Id: I14f2f6eac60add478c1793da29ba15518dcd958e Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* classes-dbus: Create a default dbus config fileBrad Bishop2016-07-281-6/+38
| | | | | | | | | | | Create a default dbus configuration file when one doesn't exist in ${FILESPATH}. The default configuration allows the configured user to own the service name and allows send_destination="*". Change-Id: If309d2aed02f6326201ce156be3133f05c720b9c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* classes-dbus: General refactoringBrad Bishop2016-07-281-11/+36
| | | | | | | | Take the more idiomatic approach of iterating on DBUS_PACKAGES to find files. Change-Id: I7656316b839f666bd1b25b757bef2c14a2cee326 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Open up DBUS permissionsBrad Bishop2015-09-291-0/+2
| | | | | | Make wide open during prototyping phase. Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Add spaces around SRC_URI in dbus-service classBrad Bishop2015-09-211-1/+1
| | | | Without this, subsequent prepend/appends to SRC_URI don't work.
* Check for empty DBUS_SERVICESBrad Bishop2015-09-211-3/+4
|
* Example D-Bus service implementationBrad Bishop2015-09-211-0/+17
Provided an example service implementation in obmc-phosphor-qemu
OpenPOWER on IntegriCloud