osmo-pcu: handle systemd and cfg files through autotools
This commit is contained in:
parent
1fea555cc9
commit
830229cdcf
|
@ -22,6 +22,11 @@ EXTRA_OECONF_sysmobts2100 += "--enable-lc15bts-phy"
|
||||||
|
|
||||||
inherit autotools pkgconfig systemd
|
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_PACKAGES = "${PN}"
|
||||||
SYSTEMD_AUTO_ENABLE_${PN}="enable"
|
SYSTEMD_AUTO_ENABLE_${PN}="enable"
|
||||||
SYSTEMD_SERVICE_${PN} = "osmo-pcu.service"
|
SYSTEMD_SERVICE_${PN} = "osmo-pcu.service"
|
||||||
|
@ -30,10 +35,4 @@ SYSTEMD_SERVICE_${PN} = "osmo-pcu.service"
|
||||||
inherit femtobts_api
|
inherit femtobts_api
|
||||||
CPPFLAGS_append_sysmobts-v2 = " ${BTS_HW_VERSION} "
|
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"
|
CONFFILES_${PN} = "${sysconfdir}/osmocom/osmo-pcu.cfg"
|
||||||
|
|
Loading…
Reference in New Issue