2012-04-27 15:44:27 +00:00
|
|
|
DESCRIPTION = "sysmocom OsmoBTS"
|
|
|
|
LICENSE = "AGPLv3"
|
|
|
|
LIC_FILES_CHKSUM="file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
|
|
|
|
|
|
|
|
SRC_URI = "git://git.osmocom.org/osmo-bts.git;protocol=git;branch=master;name=osmobts;destsuffix=git \
|
|
|
|
git://git.osmocom.org/openbsc;protocol=git;branch=master;name=openbsc;destsuffix=openbsc"
|
2013-03-13 11:47:14 +00:00
|
|
|
SRCREV_osmobts = "f0bdc1e5629778500fa06bde08bb90cb7b8c11cb"
|
|
|
|
SRCREV_openbsc = "8b29180cad875b396288a22fb252e158fa2a060a"
|
2012-10-28 10:04:41 +00:00
|
|
|
PV = "0.1.0+git${SRCPV}"
|
2013-02-09 13:19:12 +00:00
|
|
|
PR = "r8.${META_TELEPHONY_OSMO_INC}"
|
2012-04-27 15:44:27 +00:00
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
|
|
|
|
SRCREV_FORMAT = "openbsc-rosmobts"
|
|
|
|
DEPENDS = "libosmocore libosmo-abis femtobts-api"
|
2012-07-09 08:28:22 +00:00
|
|
|
RDEPENDS_${PN} += "coreutils"
|
2012-04-27 15:44:27 +00:00
|
|
|
|
|
|
|
EXTRA_OECONF += "--enable-sysmocom-bts"
|
|
|
|
|
|
|
|
inherit autotools update-rc.d
|
|
|
|
|
|
|
|
# Select the API version
|
|
|
|
inherit femtobts_api
|
|
|
|
CPPFLAGS += " ${BTS_HW_VERSION} "
|
|
|
|
|
|
|
|
do_configure_prepend() {
|
|
|
|
ln -sf ../openbsc openbsc
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
install -m 0660 ${S}/doc/examples/osmo-bts.cfg ${D}${sysconfdir}/osmocom
|
|
|
|
install -m 0755 ${S}/contrib/respawn.sh ${D}${sysconfdir}/osmocom/
|
2013-01-11 16:45:18 +00:00
|
|
|
install -m 0755 ${S}/contrib/respawn-only.sh ${D}${sysconfdir}/osmocom/
|
2012-04-27 15:44:27 +00:00
|
|
|
install -m 0644 ${S}/contrib/screenrc-sysmobts ${D}${sysconfdir}/osmocom/
|
|
|
|
install -d ${D}${sysconfdir}/init.d
|
|
|
|
install -m 0755 ${S}/contrib/sysmobts.init ${D}${sysconfdir}/init.d/sysmobts
|
2012-07-09 22:17:15 +00:00
|
|
|
|
2012-11-18 10:31:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install_append_sysmobts-v2() {
|
2012-07-09 22:17:15 +00:00
|
|
|
install -m 0755 ${S}/contrib/sysmobts-calib/sysmobts-calib ${D}${bindir}/
|
2012-04-27 15:44:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CONFFILES_${PN} = "${sysconfdir}/osmocom/osmo-bts.cfg"
|
|
|
|
INITSCRIPT_PACKAGES = "${PN}"
|
|
|
|
INITSCRIPT_NAME_${PN} = "sysmobts"
|
|
|
|
INITSCRIPT_PARAMS_${PN} = "defaults 30 30"
|
|
|
|
|
2012-07-09 22:17:15 +00:00
|
|
|
PACKAGES =+ "osmo-bts-remote sysmobts-calib"
|
2012-04-27 15:44:27 +00:00
|
|
|
|
|
|
|
FILES_osmo-bts-remote = " ${bindir}/sysmobts-remote "
|
2012-07-09 22:17:15 +00:00
|
|
|
FILES_sysmobts-calib = " ${bindir}/sysmobts-calib "
|