diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-01-26 12:36:52 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-02-03 04:02:50 +0000 |
commit | 807fdd22270a90803610a4e553c83c314c8ec14c (patch) | |
tree | c37bfc0f59253ccc2e23f0f59f6e083e84ae072f /meta-phosphor/common/recipes-phosphor/leds/phosphor-led-sysfs.bb | |
parent | 7d19e6cb743663782b7cee27893b74e1b62c0c0f (diff) | |
download | talos-openbmc-807fdd22270a90803610a4e553c83c314c8ec14c.tar.gz talos-openbmc-807fdd22270a90803610a4e553c83c314c8ec14c.zip |
leds: Add unit file and udev rule for sysfs
Change-Id: I6f299b818534fc2e9f5262fdcf85688d16cc1286
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/leds/phosphor-led-sysfs.bb')
-rw-r--r-- | meta-phosphor/common/recipes-phosphor/leds/phosphor-led-sysfs.bb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/leds/phosphor-led-sysfs.bb b/meta-phosphor/common/recipes-phosphor/leds/phosphor-led-sysfs.bb index 1ccb02a23..6dda3ac8c 100644 --- a/meta-phosphor/common/recipes-phosphor/leds/phosphor-led-sysfs.bb +++ b/meta-phosphor/common/recipes-phosphor/leds/phosphor-led-sysfs.bb @@ -6,11 +6,20 @@ PR = "r1" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" inherit autotools pkgconfig +inherit obmc-phosphor-dbus-service DEPENDS += "autoconf-archive-native" DEPENDS += "sdbusplus" RDEPENDS_${PN} += "libsystemd" +DBUS_SERVICE_${PN} += "xyz.openbmc_project.led.controller@.service" + SRC_URI += "git://github.com/openbmc/phosphor-led-sysfs" +SRC_URI += "file://70-leds.rules" SRCREV = "61675c3265166cecb0f8f5c2c4f80a78d3412c25" S = "${WORKDIR}/git" + +do_install_append() { + install -d ${D}/${base_libdir}/udev/rules.d/ + install ${WORKDIR}/70-leds.rules ${D}/${base_libdir}/udev/rules.d/ +} |