osmo-pcu: clean systemd service install
Simplfies the recipe, preparation to change systemd service name from upsream.
This commit is contained in:
parent
1b77777791
commit
87f3fb188d
|
@ -15,17 +15,16 @@ RDEPENDS_${PN} = "osmo-bts (>= 0.4.0)"
|
||||||
|
|
||||||
EXTRA_OECONF_sysmobts-v2 += "--enable-sysmocom-bts --enable-sysmocom-dsp"
|
EXTRA_OECONF_sysmobts-v2 += "--enable-sysmocom-bts --enable-sysmocom-dsp"
|
||||||
|
|
||||||
inherit autotools pkgconfig
|
inherit autotools pkgconfig systemd
|
||||||
|
|
||||||
|
SYSTEMD_SERVICE_${PN} = "sysmopcu.service"
|
||||||
|
|
||||||
# Select the API version
|
# Select the API version
|
||||||
inherit femtobts_api
|
inherit femtobts_api
|
||||||
CPPFLAGS += " ${BTS_HW_VERSION} "
|
CPPFLAGS += " ${BTS_HW_VERSION} "
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
# Install systemd and enable on sysinit
|
# Install systemd services (enabled by default)
|
||||||
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
install -d ${D}/${systemd_unitdir}/system
|
||||||
install -m 0644 ${S}/contrib/sysmopcu.service ${D}${systemd_unitdir}/system/
|
install -m 644 ${S}/contrib/*.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