summaryrefslogtreecommitdiffstats
path: root/meta-agl-core/recipes-core/systemd/systemd-conf-canbus_1.0.bb
blob: a23cd839aebe614e386beb890eefebf59a25a1b6 (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
SUMMARY = "Systemd canbus configuration"
DESCRIPTION = "Systemd may require slightly different configuration for \
different machines. This injects configuration for the CAN bus."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

PE = "1"

SRC_URI = "\
    file://canbus-can.network \
    file://canbus-can-fd.network \
    file://canbus-virtio.network \
    file://canbus-can.link \
"

CANBUS_NETWORK_CONFIG ??= "canbus-can.network"
CANBUS_NETWORK_CONFIG:virtio-all ?= "canbus-virtio.network"

do_install() {
    # Install CAN bus network configuration
    install -d ${D}${nonarch_base_libdir}/systemd/network/
    install -m 0644 ${WORKDIR}/${CANBUS_NETWORK_CONFIG} ${D}${nonarch_base_libdir}/systemd/network/60-canbus-can.network

    # Install link configuration to bump queue size on physical CAN bus devices
    install -m 0644 ${WORKDIR}/canbus-can.link ${D}${nonarch_base_libdir}/systemd/network/60-canbus-can.link
}

PACKAGE_ARCH = "${MACHINE_ARCH}"

FILES:${PN} = " \
    ${nonarch_base_libdir}/systemd/network/ \
"