blob: 85146aa1f6d743a59cff837d0b1b70a16c33e292 [file] [log] [blame]
Spencer Ku0ec0ff32020-04-20 15:24:35 +08001LICENSE = "Apache-2.0"
2LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
3
4FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
5SRC_URI_append = " file://usb-network.sh"
6SRC_URI_append = " file://usb-network.service"
7
8inherit systemd
9
10DEPENDS += "systemd"
11RDEPENDS_${PN} += "libsystemd"
12RDEPENDS_${PN} += "bash"
13
14FILES_${PN}_append = " ${sysconfdir_native}/systemd/network/00-bmc-usb0.network"
15
16do_install() {
17 install -d ${D}/${sbindir}
18 install -m 0755 ${WORKDIR}/usb-network.sh ${D}/${sbindir}
19
20 install -d ${D}${systemd_unitdir}/system/
21 install -m 0644 ${WORKDIR}/usb-network.service \
22 ${D}${systemd_unitdir}/system
23}
24
25SYSTEMD_SERVICE_${PN}_append = "usb-network.service"