52 lines
2.0 KiB
BlitzBasic
52 lines
2.0 KiB
BlitzBasic
DESCRIPTION = "sysmocom OsmoBTS"
|
|
LICENSE = "AGPLv3"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
|
|
|
|
SRC_URI = "git://git.osmocom.org/osmo-bts.git;protocol=git;destsuffix=git;nobranch=1"
|
|
SRCREV = "d785da59431007a372768403271b4108d8b4201e"
|
|
PV = "1.0.0+git${SRCPV}"
|
|
PR = "r0.${META_TELEPHONY_OSMO_INC}"
|
|
S = "${WORKDIR}/git"
|
|
|
|
DEPENDS = "libosmocore libosmo-abis femtobts-api gpsd"
|
|
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"
|
|
|
|
EXTRA_OECONF_sysmobts-v2 += "--enable-sysmocom-bts --enable-sysmobts-calib"
|
|
EXTRA_OECONF_sysmobts2100 += "--enable-litecell15"
|
|
|
|
inherit autotools pkgconfig systemd
|
|
|
|
PACKAGECONFIG ??= "\
|
|
${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
|
|
"
|
|
PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir"
|
|
|
|
SYSTEMD_PACKAGES = "${PN}"
|
|
SYSTEMD_AUTO_ENABLE_${PN}="enable"
|
|
|
|
# Select the API version
|
|
inherit femtobts_api
|
|
CPPFLAGS_append_sysmobts-v2 = " ${BTS_HW_VERSION} "
|
|
|
|
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}_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"
|
|
|
|
# somehow it seems not posible to use _append constructs on PACKAGES
|
|
#PACKAGES_append_sysmobts-v2 = " osmo-bts-remote sysmobts-calib sysmobts-util"
|
|
PACKAGES =+ "osmo-bts-remote sysmobts-calib sysmobts-util"
|
|
|
|
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 "
|