a61497ec38169e4b63fdb796d85b449f1f5dd1de
[AGL/meta-agl.git] / meta-agl-core / recipes-core / systemd / systemd_aglcore.inc
1 FILESEXTRAPATHS:prepend := "${THISDIR}/systemd:"
2
3 SRC_URI += "\
4     file://e2fsck.conf \
5     ${@bb.utils.contains('VIRTUAL-RUNTIME_net_manager','systemd','file://wired.network','',d)} \
6 "
7
8 # enable networkd/resolved support
9 PACKAGECONFIG:append = " \
10    ${@bb.utils.contains('VIRTUAL-RUNTIME_net_manager','systemd','networkd resolved','',d)} \
11    iptc \
12 "
13
14 do_install:append() {
15     # Install /etc/e2fsck.conf to avoid boot stuck by wrong clock time
16     install -m 644 -p -D ${WORKDIR}/e2fsck.conf ${D}${sysconfdir}/e2fsck.conf
17
18     if ${@bb.utils.contains('VIRTUAL-RUNTIME_net_manager','systemd','true','false',d)}; then
19        # Install DHCP configuration for Ethernet adapters
20        install -m 644 ${WORKDIR}/wired.network ${D}${sysconfdir}/systemd/network
21     fi
22 }
23
24 FILES:${PN} += "${sysconfdir}/e2fsck.conf "
25
26 # SPEC-737: connmand also has a NTP client which races with systemd-timesyncd
27 PACKAGECONFIG:remove = "timesyncd"
28
29 # Enable systemd-coredump when agl-devel is set on
30 PACKAGECONFIG:append:agl-devel = " coredump"