osmo-pcu: add systemd support
The systemd-service-file was added to sysmocom/master branch so use that.
This commit is contained in:
parent
7b24b69422
commit
d6572a4b3c
|
@ -2,9 +2,9 @@ DESCRIPTION = "Osmocom PCU for sysmoBTS"
|
||||||
LICENSE = "GPLv2"
|
LICENSE = "GPLv2"
|
||||||
LIC_FILES_CHKSUM="file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
LIC_FILES_CHKSUM="file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||||
|
|
||||||
SRC_URI = "git://git.osmocom.org/osmo-pcu.git;protocol=git;branch=jolly_merge"
|
SRC_URI = "git://git.osmocom.org/osmo-pcu.git;protocol=git;branch=sysmocom/master"
|
||||||
SRCREV = "72febb9d7492c95bf428f150fb409ad18c4fcf03"
|
SRCREV = "c92b964e2dec76397329e9005ca277466867cbc6"
|
||||||
PV = "0.2+git${SRCPV}"
|
PV = "0.3+git${SRCPV}"
|
||||||
PR = "r2.${META_TELEPHONY_OSMO_INC}"
|
PR = "r2.${META_TELEPHONY_OSMO_INC}"
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
@ -21,3 +21,11 @@ inherit autotools_stage
|
||||||
inherit femtobts_api
|
inherit femtobts_api
|
||||||
CPPFLAGS += " ${BTS_HW_VERSION} "
|
CPPFLAGS += " ${BTS_HW_VERSION} "
|
||||||
|
|
||||||
|
do_install_append() {
|
||||||
|
# Install systemd and enable on sysinit
|
||||||
|
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||||
|
install -m 0644 ${S}/contrib/sysmopcu.service ${D}${systemd_unitdir}/system/
|
||||||
|
ln -sf ../sysmopcu.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||||
|
}
|
||||||
|
|
||||||
|
FILES_${PN} += "${systemd_unitdir}"
|
||||||
|
|
Loading…
Reference in New Issue