2012-08-07 15:33:51 +00:00
|
|
|
DESCRIPTION = "Osmocom PCU for sysmoBTS"
|
|
|
|
LICENSE = "GPLv2"
|
|
|
|
LIC_FILES_CHKSUM="file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
|
|
|
|
2016-06-23 06:56:12 +00:00
|
|
|
SRC_URI = "git://git.osmocom.org/osmo-pcu.git;protocol=git;branch=master"
|
|
|
|
SRCREV = "0cd8e4eadea3fc4ec709b102e428f7a47836a7e3"
|
2014-03-21 15:12:45 +00:00
|
|
|
PV = "0.4+git${SRCPV}"
|
2017-06-11 09:44:46 +00:00
|
|
|
PR = "r5.${META_TELEPHONY_OSMO_INC}"
|
2012-08-07 15:33:51 +00:00
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
|
2017-06-11 09:44:46 +00:00
|
|
|
DEPENDS = "libosmocore osmo-bts"
|
|
|
|
DEPENDS_append_sysmobts-v2 = " femtobts-api"
|
|
|
|
DEPENDS_append_litecell15 = " lc15-firmware"
|
|
|
|
DEPENDS_append_sysmobts2100 = " lc15-firmware"
|
2013-03-17 16:35:56 +00:00
|
|
|
|
|
|
|
# This implements PCU Interface v5 (GPRS RSSI)
|
2014-03-21 15:12:45 +00:00
|
|
|
RDEPENDS_${PN} = "osmo-bts (>= 0.4.0)"
|
2012-08-07 15:33:51 +00:00
|
|
|
|
2017-09-06 10:20:45 +00:00
|
|
|
EXTRA_OECONF_sysmobts-v2 += "--enable-sysmocom-dsp"
|
2017-06-11 09:44:46 +00:00
|
|
|
EXTRA_OECONF_litecell15 += "--enable-lc15bts-phy"
|
|
|
|
EXTRA_OECONF_sysmobts2100 += "--enable-lc15bts-phy"
|
2012-08-07 15:33:51 +00:00
|
|
|
|
2017-07-17 11:38:39 +00:00
|
|
|
inherit autotools pkgconfig systemd
|
|
|
|
|
|
|
|
SYSTEMD_PACKAGES = "${PN}"
|
|
|
|
SYSTEMD_AUTO_ENABLE_${PN}="enable"
|
|
|
|
SYSTEMD_SERVICE_${PN} = "osmo-pcu.service"
|
2012-08-07 15:33:51 +00:00
|
|
|
|
|
|
|
# Select the API version
|
|
|
|
inherit femtobts_api
|
2017-06-11 09:44:46 +00:00
|
|
|
CPPFLAGS_append_sysmobts-v2 = " ${BTS_HW_VERSION} "
|
2012-08-07 15:33:51 +00:00
|
|
|
|
2013-12-17 18:42:58 +00:00
|
|
|
do_install_append() {
|
|
|
|
# Install systemd and enable on sysinit
|
2017-07-24 14:31:57 +00:00
|
|
|
install -d ${D}/${systemd_system_unitdir}
|
|
|
|
install -m 0644 ${S}/contrib/osmo-pcu.service ${D}${systemd_system_unitdir}/
|
2013-12-17 18:42:58 +00:00
|
|
|
}
|