blob: 0623a174821f9a9f7b2706cec8cfac60779fde23 (
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
32
33
34
35
36
|
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://journald.conf \
file://timesyncd.conf \
file://system.conf \
file://systemd-reboot-service.patch \
file://shutdown-journal-before-reboot.patch \
file://hsu-pm-runtime.service \
file://usb0.network \
file://edison-machine-id.service \
file://001systemd-user.patch "
do_install_append() {
# Push the custom conf files on target
install -m 0644 ${WORKDIR}/journald.conf ${D}${sysconfdir}/systemd
install -m 0644 ${WORKDIR}/system.conf ${D}${sysconfdir}/systemd
install -m 0644 ${WORKDIR}/timesyncd.conf ${D}${sysconfdir}/systemd
install -m 0644 ${WORKDIR}/usb0.network ${D}${sysconfdir}/systemd/network
# enable timesyncd service
install -d ${D}${sysconfdir}/systemd/system/sysinit.target.wants
ln -sf ${systemd_unitdir}/system/systemd-timesyncd.service \
${D}${sysconfdir}/systemd/system/sysinit.target.wants/systemd-timesyncd.service
# enable a custom service to enable the hsu driver's runtime pm
install -d ${D}${sysconfdir}/systemd/system/default.target.wants
install -m 0644 ${WORKDIR}/hsu-pm-runtime.service \
${D}${systemd_unitdir}/system/hsu-pm-runtime.service
# enable a custom service to provide a persistant machine-id value to Edison
install -d ${D}${sysconfdir}/systemd/system/basic.target.wants
install -m 0644 ${WORKDIR}/edison-machine-id.service \
${D}${systemd_unitdir}/system/edison-machine-id.service
ln -sf ${systemd_unitdir}/system/edison-machine-id.service \
${D}${sysconfdir}/systemd/system/basic.target.wants/edison-machine-id.service
}
|