diff --git a/recipes-sysmobts/osmo-bts/osmo-bts_git.bb b/recipes-sysmobts/osmo-bts/osmo-bts_git.bb index 37a9a3a..28b8d7a 100644 --- a/recipes-sysmobts/osmo-bts/osmo-bts_git.bb +++ b/recipes-sysmobts/osmo-bts/osmo-bts_git.bb @@ -11,6 +11,7 @@ S = "${WORKDIR}/git" DEPENDS = "libosmocore libosmo-abis femtobts-api gpsd" DEPENDS_append_sysmobts-v2 = " femtobts-api" DEPENDS_append_sysmobts2100 = " lc15-firmware" +DEPENDS_append_oc2g = " oc2g-firmware systemd" RDEPENDS_${PN} += "coreutils" @@ -18,9 +19,11 @@ RDEPENDS_${PN}_append_sysmobts-v2 = " sysmobts-firmware (>= 5.1)" RCONFLICTS_${PN}_append_sysmobts-v2 = " sysmobts-firmware (< 5.1)" RDEPENDS_${PN}_append_sysmobts2100 = " lc15-firmware" +RDEPENDS_${PN}_append_oc2g = " oc2g-firmware systemd" EXTRA_OECONF_sysmobts-v2 += "--enable-sysmocom-bts --enable-sysmobts-calib" EXTRA_OECONF_sysmobts2100 += "--enable-litecell15" +EXTRA_OECONF_oc2g += "--enable-oc2g" inherit autotools pkgconfig systemd @@ -29,6 +32,17 @@ PACKAGECONFIG ??= "\ " PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir" +# Latest osmo-bts-oc2g still uses osmo-bts.cfg as file name and config/systemd +# files are not installed through autotools yet. +do_install_append_oc2g() { + install -m 0660 ${S}/doc/examples/oc2g/osmo-bts.cfg ${D}${sysconfdir}/osmocom + + # Install systemd and enable on sysinit + install -m 0644 ${S}/contrib/systemd/oc2gbts-mgr.service ${D}${systemd_system_unitdir}/oc2gbts-mgr.service + install -m 0660 ${S}/doc/examples/oc2g/oc2gbts-mgr.cfg ${D}${sysconfdir}/osmocom/ + install -m 0644 ${S}/contrib/systemd/osmo-bts-oc2g.service ${D}${systemd_system_unitdir}/ +} + SYSTEMD_PACKAGES = "${PN} osmo-bts-virtual" SYSTEMD_AUTO_ENABLE_${PN}="enable"