[RCAR] disable a default config in kernel
[AGL/meta-agl.git] / meta-agl-core / recipes-core / systemd / systemd_aglcore.inc
1 FILESEXTRAPATHS_prepend := "${THISDIR}/systemd:"
2
3 SRC_URI += "\
4     file://0002-network-add-CAN-Termination-tristate-option.patch \
5     file://e2fsck.conf \
6     file://canbus-can.network \
7     ${@bb.utils.contains('VIRTUAL-RUNTIME_net_manager','systemd','file://wired.network','',d)} \
8 "
9
10 # enable networkd/resolved support
11 PACKAGECONFIG_append_pn-systemd = " \
12    ${@bb.utils.contains('VIRTUAL-RUNTIME_net_manager','systemd','networkd resolved','',d)} \
13 "
14
15 do_install_append() {
16     # Install /etc/e2fsck.conf to avoid boot stuck by wrong clock time
17     install -m 644 -p -D ${WORKDIR}/e2fsck.conf ${D}${sysconfdir}/e2fsck.conf
18
19     # Install canbus network script
20     install -m 0644 ${WORKDIR}/canbus-can.network ${D}${nonarch_base_libdir}/systemd/network/60-canbus-can.network
21
22     if ${@bb.utils.contains('VIRTUAL-RUNTIME_net_manager','systemd','true','false',d)}; then
23        # Install DHCP configuration for Ethernet adapters
24        install -m 644 ${WORKDIR}/wired.network ${D}${sysconfdir}/systemd/network
25     fi
26 }
27
28 FILES_${PN} += "${sysconfdir}/e2fsck.conf "
29
30 # SPEC-737: connmand also has a NTP client which races with systemd-timesyncd
31 PACKAGECONFIG_remove = "timesyncd"
32
33 # Enable systemd-coredump when agl-devel is set on
34 PACKAGECONFIG_append_agl-devel = " coredump"