tools/yocto/sources/meta-aws-iot-fleetwise/recipes-extended/setup-socketcan/setup-socketcan.bb (14 lines of code) (raw):
DESCRIPTION = "Setup SocketCAN at Startup"
LICENSE = "CLOSED"
SRC_URI = "file://setup-socketcan.sh \
file://setup-socketcan.service"
S = "${WORKDIR}"
SYSTEMD_SERVICE:${PN} = "${PN}.service"
FILES:${PN} += "${systemd_system_unitdir} ${bindir}"
inherit systemd
do_install() {
install -d ${D}${systemd_system_unitdir}
install -m 0755 ${S}/setup-socketcan.service ${D}${systemd_system_unitdir}
install -d ${D}${bindir}
install -m 0755 ${S}/setup-socketcan.sh ${D}${bindir}
}