Fix the VTY generation and output power handling for 1100 und 1020 devices have been added.
71 lines
2.6 KiB
BlitzBasic
71 lines
2.6 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=sysmocom/features/handover;name=osmobts;destsuffix=git \
|
|
git://git.osmocom.org/openbsc;protocol=git;branch=master;name=openbsc;destsuffix=openbsc"
|
|
SRCREV_osmobts = "04585dd90a1439e256d54affe4ccea113455cbe7"
|
|
SRCREV_openbsc = "a4faeb1a79eac3c8d333ded27600228cc5e3a71b"
|
|
PV = "0.4.3+git${SRCPV}"
|
|
PR = "r15.${META_TELEPHONY_OSMO_INC}"
|
|
S = "${WORKDIR}/git"
|
|
|
|
SRCREV_FORMAT = "openbsc-rosmobts"
|
|
DEPENDS = "libosmocore libosmo-abis femtobts-api"
|
|
RDEPENDS_${PN} += "coreutils sysmobts-firmware (>= 3.11)"
|
|
RCONFLICTS_${PN} = "sysmobts-firmware (< 3.11)"
|
|
|
|
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_sysmobts-v2() {
|
|
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 0755 ${S}/contrib/respawn-only.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 systemd and enable on sysinit
|
|
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
|
install -m 0644 ${S}/contrib/sysmobts.service ${D}${systemd_unitdir}/system/
|
|
ln -sf ../sysmobts.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
|
|
|
# Future sysmobts-mgr handling
|
|
install -m 0660 ${S}/doc/examples/sysmobts-mgr.cfg ${D}${sysconfdir}/osmocom
|
|
install -m 0644 ${S}/contrib/sysmobts-mgr.service ${D}${systemd_unitdir}/system/
|
|
ln -sf ../sysmobts-mgr.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
|
}
|
|
|
|
do_install_append_sysmobts-v2() {
|
|
install -m 0755 ${S}/contrib/sysmobts-calib/sysmobts-calib ${D}${bindir}/
|
|
}
|
|
|
|
CONFFILES_${PN} = "${sysconfdir}/osmocom/osmo-bts.cfg"
|
|
CONFFILES_${PN} += "${sysconfdir}/osmocom/sysmobts-mgr.cfg"
|
|
INITSCRIPT_PACKAGES = "${PN}"
|
|
INITSCRIPT_NAME_${PN} = "sysmobts"
|
|
INITSCRIPT_PARAMS_${PN} = "defaults 30 30"
|
|
|
|
PACKAGES =+ "osmo-bts-remote sysmobts-calib sysmobts-util"
|
|
|
|
FILES_${PN} += "${systemd_unitdir}"
|
|
FILES_osmo-bts-remote = " ${bindir}/sysmobts-remote "
|
|
FILES_sysmobts-calib = " ${bindir}/sysmobts-calib "
|
|
FILES_sysmobts-util = " ${bindir}/sysmobts-util "
|