summaryrefslogtreecommitdiff
path: root/meta-phosphor/classes/obmc-phosphor-py-daemon.bbclass
blob: 35c27141538a4359bbd19c54636f990212ef62c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Common code for dbus applications using python.

inherit allarch
inherit obmc-phosphor-systemd
inherit obmc-phosphor-license

RDEPENDS_${PN} += "python-dbus python-pygobject"
SRC_URI += " \
        file://${PN}.py \
        "
S = "${WORKDIR}"

do_install_append() {
        # install the script
        install -d ${D}${sbindir}
        install -m 0755 ${WORKDIR}/${PN}.py ${D}${sbindir}/${PN}
}