blob: a4eebfb4f157e33ff5c573ee00a13f4fddbb6afb (
plain)
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
|
FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"
SRC_URI_append = "\
file://mapviewer-settings.sh \
file://mapviewer.service \
"
inherit systemd
SYSTEMD_PACKAGES = "${PN}"
do_install_append() {
install -d ${D}/usr/AGL/${PN}
install -m 0755 ${WORKDIR}/mapviewer-settings.sh ${D}/usr/AGL/${PN}/
# Install systemd unit files
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
install -m 644 -p -D ${WORKDIR}/mapviewer.service ${D}${systemd_system_unitdir}/mapviewer.service
fi
}
## DO NOT ENABLE 'weston-mapviewer-demo.service' BY DEFAULT
##
## This should be enabled/disabled by 'switch_on_mapviewer-demo.sh'/'switch_off_mapviewer-demo.sh'.
##
#SYSTEMD_SERVICE_${PN} = "mapviewer.service"
FILES_${PN} += " \
${systemd_system_unitdir}/mapviewer.service \
/usr/AGL/mapviewer/ \
"
|