54 lines
1.7 KiB
BlitzBasic
54 lines
1.7 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;branch=master;name=osmobts;destsuffix=git \
|
|
git://git.osmocom.org/openbsc;protocol=git;branch=master;name=openbsc;destsuffix=openbsc"
|
|
SRCREV_osmobts = "4fe622cf9c1beb0ba2aa3b492bf7e2b4d1cd4f73"
|
|
SRCREV_openbsc = "94c2b0578b4827e5535296477c3cd1d39d8f4814"
|
|
PV = "0.0+git${SRCPV}"
|
|
PR = "r24.${META_TELEPHONY_OSMO_INC}"
|
|
S = "${WORKDIR}/git"
|
|
|
|
SRCREV_FORMAT = "openbsc-rosmobts"
|
|
DEPENDS = "libosmocore libosmo-abis femtobts-api"
|
|
RDEPENDS_${PN} += "coreutils"
|
|
|
|
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
|
|
}
|
|
|
|
do_compile_append() {
|
|
cd ${S}/contrib/sysmobts-calib/
|
|
oe_runmake
|
|
}
|
|
|
|
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/
|
|
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
|
|
|
|
install -m 0755 ${S}/contrib/sysmobts-calib/sysmobts-calib ${D}${bindir}/
|
|
}
|
|
|
|
CONFFILES_${PN} = "${sysconfdir}/osmocom/osmo-bts.cfg"
|
|
INITSCRIPT_PACKAGES = "${PN}"
|
|
INITSCRIPT_NAME_${PN} = "sysmobts"
|
|
INITSCRIPT_PARAMS_${PN} = "defaults 30 30"
|
|
|
|
PACKAGES =+ "osmo-bts-remote sysmobts-calib"
|
|
|
|
FILES_osmo-bts-remote = " ${bindir}/sysmobts-remote "
|
|
FILES_sysmobts-calib = " ${bindir}/sysmobts-calib "
|