diff --git a/recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb b/recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb index 8e8df18..fdee665 100644 --- a/recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb +++ b/recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb @@ -22,6 +22,11 @@ EXTRA_OECONF_sysmobts2100 += "--enable-lc15bts-phy" inherit autotools pkgconfig systemd +PACKAGECONFIG ??= "\ + ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ + " +PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir" + SYSTEMD_PACKAGES = "${PN}" SYSTEMD_AUTO_ENABLE_${PN}="enable" SYSTEMD_SERVICE_${PN} = "osmo-pcu.service" @@ -30,10 +35,4 @@ SYSTEMD_SERVICE_${PN} = "osmo-pcu.service" inherit femtobts_api CPPFLAGS_append_sysmobts-v2 = " ${BTS_HW_VERSION} " -do_install_append() { - # Install systemd and enable on sysinit - install -d ${D}/${systemd_system_unitdir} - install -m 0644 ${S}/contrib/osmo-pcu.service ${D}${systemd_system_unitdir}/ -} - CONFFILES_${PN} = "${sysconfdir}/osmocom/osmo-pcu.cfg"