summaryrefslogtreecommitdiff
path: root/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
AgeCommit message (Collapse)AuthorFilesLines
2018-02-01systemd: limit bbclass hooks to class-target scopeBrad Bishop1-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>
2016-09-06classes-dbus: general refactoringBrad Bishop1-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>
2016-09-06classes-systemd: refactor substitutionsBrad Bishop1-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>
2016-09-06Allow package wide user specificiationBrad Bishop1-11/+26
Allow the user to be specified package wide or per unit. Change-Id: I19a56001bd2115462f132c3079690c4b2d0a5ddf Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2016-07-28classes: prepare some classes for nativeBrad Bishop1-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>
2016-07-28classes-dbus: Add support for dbus activationBrad Bishop1-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>
2016-07-28classes-dbus: Instantiate obmc-phosphor-systemdBrad Bishop1-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>
2016-07-28classes-dbus: Create a default dbus config fileBrad Bishop1-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>
2016-07-28classes-dbus: General refactoringBrad Bishop1-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>
2015-09-29Open up DBUS permissionsBrad Bishop1-0/+2
Make wide open during prototyping phase. Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2015-09-22Add spaces around SRC_URI in dbus-service classBrad Bishop1-1/+1
Without this, subsequent prepend/appends to SRC_URI don't work.
2015-09-22Check for empty DBUS_SERVICESBrad Bishop1-3/+4
2015-09-21Example D-Bus service implementationBrad Bishop1-0/+17
Provided an example service implementation in obmc-phosphor-qemu