@ -26,8 +26,10 @@ RDEPENDS_${PN}_append_sysmobts2100 = " lc15-firmware"
EXTRA_OECONF_sysmobts - v2 + = " --enable-sysmocom-bts "
EXTRA_OECONF_sysmobts2100 + = " --enable-litecell15 "
inherit autotools pkgconfig
inherit autotools pkgconfig systemd
SYSTEMD_PACKAGES = " ${PN} "
SYSTEMD_AUTO_ENABLE_ $ { PN } = " enable "
# Select the API version
inherit femtobts_api
@ -44,9 +46,7 @@ do_compile_append_sysmobts-v2() {
do_install_append ( ) {
install - d $ { D } $ { sysconfdir } / osmocom
# Future sysmobts - mgr handling
install - d $ { D } $ { systemd_unitdir } / system / multi - user . target .wants /
install - d $ { D } / $ { systemd_unitdir } / system
}
do_install_append_sysmobts - v2 ( ) {
@ -55,30 +55,27 @@ do_install_append_sysmobts-v2() {
install - m 0660 $ { S } / doc / examples / sysmo / osmo - bts . cfg $ { D } $ { sysconfdir } / osmocom
# Install systemd and enable on sysinit
install - d $ { D } $ { systemd_unitdir } / system / multi - user . target .wants /
install - m 0660 $ { S } / doc / examples / sysmo / sysmobts - mgr . cfg $ { D } $ { sysconfdir } / osmocom
install - m 0644 $ { S } / contrib / sysmobts - mgr . service $ { D } $ { systemd_unitdir } / system /
ln - sf . . / sysmobts - mgr . service $ { D } $ { systemd_unitdir } / system / multi - user . target .wants /
install - m 0644 $ { S } / contrib / osmo - bts - sysmo . service $ { D } $ { systemd_unitdir } / system /
ln - sf . . / osmo - bts - sysmo . service $ { D } $ { systemd_unitdir } / system / multi - user . target .wants /
}
do_install_append_sysmobts2100 ( ) {
install - m 0660 $ { S } / doc / examples / litecell15 / osmo - bts . cfg $ { D } $ { sysconfdir } / osmocom
# ensure consistent naming
mv $ { D } / $ { bindir } / lc15bts - util $ { D } / $ { bindir } / sysmobts - util
mv $ { D } / $ { bindir } / lc15bts - mgr $ { D } / $ { bindir } / sysmobts - mgr
cp $ { D } / $ { bindir } / lc15bts - util $ { D } / $ { bindir } / sysmobts - util
cp $ { D } / $ { bindir } / lc15bts - mgr $ { D } / $ { bindir } / sysmobts - mgr
# Install systemd and enable on sysinit
install - d $ { D } $ { systemd_unitdir } / system / multi - user . target .wants /
install - m 0644 $ { S } / contrib / sysmobts - mgr . service $ { D } $ { systemd_unitdir } / system / lc15bts - mgr . service
ln - sf . . / lc15bts - mgr . service $ { D } $ { systemd_unitdir } / system / multi - user . target .wants /
install - m 0660 $ { S } / doc / examples / litecell15 / lc15bts - mgr . cfg $ { D } $ { sysconfdir } / osmocom /
install - m 0644 $ { S } / contrib / osmo - bts - lc15 . service $ { D } $ { systemd_unitdir } / system /
ln - sf . . / osmo - bts - lc15 . service $ { D } $ { systemd_unitdir } / system / multi - user . target .wants /
}
SYSTEMD_SERVICE_ $ { PN } _ append_sysmobts - v2 = " sysmobts-mgr.service osmo-bts-sysmo.service "
SYSTEMD_SERVICE_ $ { PN } _ append_sysmobts2100 = " lc15bts-mgr.service osmo-bts-lc15.service "
CONFFILES_ $ { PN } = " ${sysconfdir}/osmocom/osmo-bts.cfg "
CONFFILES_ $ { PN } _ append_sysmobts - v2 = " ${sysconfdir}/osmocom/sysmobts-mgr.cfg "
@ -87,7 +84,6 @@ CONFFILES_${PN}_append_sysmobts-v2 = " ${sysconfdir}/osmocom/sysmobts-mgr.cfg"
# PACKAGES_append_sysmobts - v2 = " osmo-bts-remote sysmobts-calib sysmobts-util "
PACKAGES = + " osmo-bts-remote sysmobts-calib sysmobts-util "
FILES_ $ { PN } + = " ${systemd_unitdir} "
FILES_osmo - bts - remote_sysmobts - v2 = " ${bindir}/osmo-bts-sysmo-remote "
FILES_sysmobts - calib_sysmobts - v2 = " ${bindir}/sysmobts-calib "
FILES_sysmobts - util = " ${bindir}/sysmobts-util "