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
|
|
|
|
2016-06-23 06:56:12 +00:00
|
|
|
SRC_URI = "git://git.osmocom.org/osmo-bts.git;protocol=git;branch=master;name=osmobts;destsuffix=git \
|
2017-06-13 13:13:38 +00:00
|
|
|
git://git.osmocom.org/openbsc;protocol=git;branch=master;name=openbsc;destsuffix=openbsc"
|
2016-06-23 06:56:12 +00:00
|
|
|
SRCREV_osmobts = "8f12047157b55fe3997f686efec26f2a54ea3242"
|
|
|
|
SRCREV_openbsc = "5d69fa52cf1e679e391519dd841da1579d640087"
|
2017-11-01 13:41:10 +00:00
|
|
|
PV = "0.7.0+git${SRCPV}"
|
2017-09-26 12:49:22 +00:00
|
|
|
PR = "r0.${META_TELEPHONY_OSMO_INC}"
|
2012-04-27 15:44:27 +00:00
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
|
|
|
|
SRCREV_FORMAT = "openbsc-rosmobts"
|
2017-06-11 08:19:21 +00:00
|
|
|
|
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"
|
|
|
|
|
|
|
|
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"
|
2012-04-27 15:44:27 +00:00
|
|
|
|
2017-06-11 08:19:21 +00:00
|
|
|
EXTRA_OECONF_sysmobts-v2 += "--enable-sysmocom-bts"
|
|
|
|
EXTRA_OECONF_sysmobts2100 += "--enable-litecell15"
|
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
|
|
|
|
2017-07-17 11:38:39 +00:00
|
|
|
SYSTEMD_PACKAGES = "${PN}"
|
|
|
|
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
|
|
|
|
|
|
|
do_configure_prepend() {
|
2015-02-16 22:15:54 +00:00
|
|
|
ln -sf ../openbsc openbsc || true
|
2012-04-27 15:44:27 +00:00
|
|
|
}
|
|
|
|
|
2012-11-18 10:31:38 +00:00
|
|
|
do_compile_append_sysmobts-v2() {
|
2012-07-09 22:17:15 +00:00
|
|
|
cd ${S}/contrib/sysmobts-calib/
|
|
|
|
oe_runmake
|
|
|
|
}
|
|
|
|
|
2012-04-27 15:44:27 +00:00
|
|
|
do_install_append() {
|
|
|
|
install -d ${D}${sysconfdir}/osmocom
|
2017-07-24 14:31:57 +00:00
|
|
|
install -d ${D}/${systemd_system_unitdir}
|
2017-06-11 08:19:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install_append_sysmobts-v2() {
|
|
|
|
install -m 0755 ${S}/contrib/sysmobts-calib/sysmobts-calib ${D}${bindir}/
|
|
|
|
|
2017-06-15 13:09:06 +00:00
|
|
|
install -m 0660 ${S}/doc/examples/sysmo/osmo-bts.cfg ${D}${sysconfdir}/osmocom
|
2017-06-11 08:19:21 +00:00
|
|
|
|
2013-02-09 15:58:56 +00:00
|
|
|
# Install systemd and enable on sysinit
|
2017-07-17 11:38:39 +00:00
|
|
|
|
2017-06-15 10:04:48 +00:00
|
|
|
install -m 0660 ${S}/doc/examples/sysmo/sysmobts-mgr.cfg ${D}${sysconfdir}/osmocom
|
2017-07-24 14:31:57 +00:00
|
|
|
install -m 0644 ${S}/contrib/sysmobts-mgr.service ${D}${systemd_system_unitdir}/
|
|
|
|
install -m 0644 ${S}/contrib/osmo-bts-sysmo.service ${D}${systemd_system_unitdir}/
|
2012-11-18 10:31:38 +00:00
|
|
|
}
|
|
|
|
|
2017-06-11 08:19:21 +00:00
|
|
|
do_install_append_sysmobts2100() {
|
|
|
|
install -m 0660 ${S}/doc/examples/litecell15/osmo-bts.cfg ${D}${sysconfdir}/osmocom
|
|
|
|
|
|
|
|
# ensure consistent naming
|
2017-07-17 11:38:39 +00:00
|
|
|
cp ${D}/${bindir}/lc15bts-util ${D}/${bindir}/sysmobts-util
|
|
|
|
cp ${D}/${bindir}/lc15bts-mgr ${D}/${bindir}/sysmobts-mgr
|
2017-06-11 08:19:21 +00:00
|
|
|
|
|
|
|
# Install systemd and enable on sysinit
|
2017-07-24 14:31:59 +00:00
|
|
|
install -m 0644 ${S}/contrib/lc15bts-mgr.service ${D}${systemd_system_unitdir}/lc15bts-mgr.service
|
2017-06-15 10:04:48 +00:00
|
|
|
install -m 0660 ${S}/doc/examples/litecell15/lc15bts-mgr.cfg ${D}${sysconfdir}/osmocom/
|
2017-07-24 14:31:57 +00:00
|
|
|
install -m 0644 ${S}/contrib/osmo-bts-lc15.service ${D}${systemd_system_unitdir}/
|
2012-04-27 15:44:27 +00:00
|
|
|
}
|
|
|
|
|
2017-07-17 11:38:39 +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"
|
2017-06-11 08:19:21 +00:00
|
|
|
|
2012-04-27 15:44:27 +00:00
|
|
|
CONFFILES_${PN} = "${sysconfdir}/osmocom/osmo-bts.cfg"
|
2017-06-11 08:19:21 +00:00
|
|
|
CONFFILES_${PN}_append_sysmobts-v2 = " ${sysconfdir}/osmocom/sysmobts-mgr.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"
|
2013-10-04 19:40:30 +00:00
|
|
|
PACKAGES =+ "osmo-bts-remote sysmobts-calib sysmobts-util"
|
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 "
|