-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathelkpi-systemd-services_0.1.bb
42 lines (31 loc) · 1.09 KB
/
elkpi-systemd-services_0.1.bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
SUMMARY = "All custom systemd services for the ElkPi board"
HOMEPAGE = "https://github.com/elk-audio/meta-elkpi"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
PN = "elkpi-systemd-services"
SRC_URI += "\
file://sushi.service \
file://sensei.service \
file://midi-connections.service \
"
S = "${WORKDIR}"
inherit systemd
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
do_install () {
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/sushi.service ${D}${systemd_system_unitdir}/
install -m 0644 ${WORKDIR}/sensei.service ${D}${systemd_system_unitdir}/
install -m 0644 ${WORKDIR}/midi-connections.service ${D}${systemd_system_unitdir}/
}
PACKAGE_ARCH = "${MACHINE_ARCH}"
NATIVE_SYSTEMD_SUPPORT = "1"
SYSTEMD_PACKAGES += "${PN}"
SYSTEMD_SERVICE_${PN} += "\
sushi.service \
sensei.service \
midi-connections.service \
"
FILES_${PN} += "${systemd_system_unitdir}/*"
# To enable it replace disable with enable.
SYSTEMD_AUTO_ENABLE = "disable"