2012-04-27 15:44:27 +00:00
|
|
|
DESCRIPTION = "sysmocom OsmoBTS"
|
|
|
|
LICENSE = "AGPLv3"
|
2017-09-26 12:49:22 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
|
2012-04-27 15:44:27 +00:00
|
|
|
|
2019-08-08 16:55:04 +00:00
|
|
|
SRC_URI = "git://git.osmocom.org/osmo-bts.git;protocol=git;destsuffix=git"
|
2021-02-24 17:24:38 +00:00
|
|
|
SRCREV = "0436fe7fcaaa95f01a619da31d43c02324afc8f5"
|
|
|
|
PV = "1.3.0+git${SRCPV}"
|
2019-08-08 16:55:04 +00:00
|
|
|
PR = "r0.${META_TELEPHONY_OSMO_INC}"
|
2012-04-27 15:44:27 +00:00
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
|
2015-01-11 20:32:37 +00:00
|
|
|
DEPENDS = "libosmocore libosmo-abis femtobts-api gpsd"
|
2017-06-11 08:19:21 +00:00
|
|
|
DEPENDS_append_sysmobts-v2 = " femtobts-api"
|
|
|
|
DEPENDS_append_sysmobts2100 = " lc15-firmware"
|
2018-11-06 21:11:58 +00:00
|
|
|
DEPENDS_append_oc2g = " oc2g-firmware systemd"
|
2017-06-11 08:19:21 +00:00
|
|
|
|
|
|
|
RDEPENDS_${PN} += "coreutils"
|
|
|
|
|
|
|
|
RDEPENDS_${PN}_append_sysmobts-v2 = " sysmobts-firmware (>= 5.1)"
|
|
|
|
RCONFLICTS_${PN}_append_sysmobts-v2 = " sysmobts-firmware (< 5.1)"
|
|
|
|
|
|
|
|
RDEPENDS_${PN}_append_sysmobts2100 = " lc15-firmware"
|
2018-11-06 21:11:58 +00:00
|
|
|
RDEPENDS_${PN}_append_oc2g = " oc2g-firmware systemd"
|
2012-04-27 15:44:27 +00:00
|
|
|
|
2018-01-18 11:14:59 +00:00
|
|
|
EXTRA_OECONF_sysmobts-v2 += "--enable-sysmocom-bts --enable-sysmobts-calib"
|
2017-06-11 08:19:21 +00:00
|
|
|
EXTRA_OECONF_sysmobts2100 += "--enable-litecell15"
|
2018-11-06 21:11:58 +00:00
|
|
|
EXTRA_OECONF_oc2g += "--enable-oc2g"
|
2012-04-27 15:44:27 +00:00
|
|
|
|
2017-07-17 11:38:39 +00:00
|
|
|
inherit autotools pkgconfig systemd
|
2014-09-26 09:24:49 +00:00
|
|
|
|
2018-09-14 13:33:43 +00:00
|
|
|
PACKAGECONFIG ??= "\
|
|
|
|
${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
|
|
|
|
"
|
|
|
|
PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir"
|
|
|
|
|
2018-09-14 13:50:29 +00:00
|
|
|
SYSTEMD_PACKAGES = "${PN} osmo-bts-virtual"
|
2017-07-17 11:38:39 +00:00
|
|
|
SYSTEMD_AUTO_ENABLE_${PN}="enable"
|
2012-04-27 15:44:27 +00:00
|
|
|
|
|
|
|
# Select the API version
|
|
|
|
inherit femtobts_api
|
2017-06-11 08:19:21 +00:00
|
|
|
CPPFLAGS_append_sysmobts-v2 = " ${BTS_HW_VERSION} "
|
2012-04-27 15:44:27 +00:00
|
|
|
|
2018-09-14 13:33:43 +00:00
|
|
|
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"
|
2019-01-24 11:47:37 +00:00
|
|
|
SYSTEMD_SERVICE_${PN}_append_oc2g = " oc2gbts-mgr.service osmo-bts-oc2g.service"
|
2017-06-11 08:19:21 +00:00
|
|
|
|
2018-09-14 13:33:43 +00:00
|
|
|
CONFFILES_${PN}_append_sysmobts-v2 = " ${sysconfdir}/osmocom/sysmobts-mgr.cfg ${sysconfdir}/osmocom/osmo-bts-sysmo.cfg"
|
|
|
|
CONFFILES_${PN}_append_sysmobts2100 = " ${sysconfdir}/osmocom/lc15bts-mgr.cfg ${sysconfdir}/osmocom/osmo-bts-lc15.cfg"
|
2019-02-01 09:55:29 +00:00
|
|
|
CONFFILES_${PN}_append_oc2g = " ${sysconfdir}/oc2gbts-mgr.cfg ${sysconfdir}/osmocom/osmo-bts-oc2g.cfg"
|
2012-04-27 15:44:27 +00:00
|
|
|
|
2017-06-11 08:19:21 +00:00
|
|
|
# somehow it seems not posible to use _append constructs on PACKAGES
|
|
|
|
#PACKAGES_append_sysmobts-v2 = " osmo-bts-remote sysmobts-calib sysmobts-util"
|
2018-09-14 13:50:29 +00:00
|
|
|
PACKAGES =+ "osmo-bts-remote sysmobts-calib sysmobts-util osmo-bts-virtual"
|
2012-04-27 15:44:27 +00:00
|
|
|
|
2017-06-11 08:19:21 +00:00
|
|
|
FILES_osmo-bts-remote_sysmobts-v2 = " ${bindir}/osmo-bts-sysmo-remote "
|
|
|
|
FILES_sysmobts-calib_sysmobts-v2 = " ${bindir}/sysmobts-calib "
|
2013-10-04 19:40:30 +00:00
|
|
|
FILES_sysmobts-util = " ${bindir}/sysmobts-util "
|
2018-09-14 13:50:29 +00:00
|
|
|
|
|
|
|
SYSTEMD_SERVICE_osmo-bts-virtual = "osmo-bts-virtual.service"
|
|
|
|
FILES_osmo-bts-virtual = " \
|
|
|
|
${docdir}/osmo-sgsn/examples/osmo-bts-virtual \
|
|
|
|
${bindir}/osmo-bts-virtual \
|
|
|
|
${bindir}/osmo-bts-omldummy \
|
|
|
|
"
|
|
|
|
CONFFILES_osmo-bts-virtual = "\
|
|
|
|
${sysconfdir}/osmocom/osmo-bts-virtual.cfg \
|
|
|
|
"
|