diff options
| -rw-r--r-- | meta-networking/recipes-support/mctp/mctp_git.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-networking/recipes-support/mctp/mctp_git.bb b/meta-networking/recipes-support/mctp/mctp_git.bb index 516f3e2d9e..9e97a6a60a 100644 --- a/meta-networking/recipes-support/mctp/mctp_git.bb +++ b/meta-networking/recipes-support/mctp/mctp_git.bb | |||
| @@ -22,13 +22,16 @@ PACKAGECONFIG ??= " \ | |||
| 22 | # mctpd will only be built if pkg-config detects libsystemd; in which case | 22 | # mctpd will only be built if pkg-config detects libsystemd; in which case |
| 23 | # we'll want to declare the dep and install the service. | 23 | # we'll want to declare the dep and install the service. |
| 24 | PACKAGECONFIG[systemd] = ",,systemd,libsystemd" | 24 | PACKAGECONFIG[systemd] = ",,systemd,libsystemd" |
| 25 | SYSTEMD_SERVICE:${PN} = "mctpd.service" | 25 | SYSTEMD_SERVICE:${PN} = "mctpd.service mctp.target mctp-local.target" |
| 26 | SYSTEMD_AUTO_ENABLE_${PN} = "enable" | ||
| 26 | 27 | ||
| 27 | do_install:append () { | 28 | do_install:append () { |
| 28 | if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'true', 'false', d)}; then | 29 | if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'true', 'false', d)}; then |
| 29 | install -d ${D}${systemd_system_unitdir} | 30 | install -d ${D}${systemd_system_unitdir} |
| 30 | install -m 0644 ${S}/conf/mctpd.service \ | 31 | install -m 0644 ${S}/conf/mctpd.service \ |
| 31 | ${D}${systemd_system_unitdir}/mctpd.service | 32 | ${D}${systemd_system_unitdir}/mctpd.service |
| 33 | install -m 0644 ${S}/conf/*.target \ | ||
| 34 | ${D}${systemd_system_unitdir}/ | ||
| 32 | install -d ${D}${datadir}/dbus-1/system.d | 35 | install -d ${D}${datadir}/dbus-1/system.d |
| 33 | install -m 0644 ${S}/conf/mctpd-dbus.conf \ | 36 | install -m 0644 ${S}/conf/mctpd-dbus.conf \ |
| 34 | ${D}${datadir}/dbus-1/system.d/mctpd.conf | 37 | ${D}${datadir}/dbus-1/system.d/mctpd.conf |
