blob: 6e7be67c2ca28a172b141c9c5db8098139f9ea40 [file] [log] [blame]
Lancelot Kaoe8979de2021-02-21 19:28:54 -06001LICENSE = "Apache-2.0"
2LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
3
4inherit allarch systemd
5
6DEPENDS += "systemd"
Mohaimen Alsamaraif59d0172021-08-17 09:34:22 -05007RDEPENDS:${PN} += "libsystemd"
8RDEPENDS:${PN} += "bash"
Lancelot Kaoe8979de2021-02-21 19:28:54 -06009
Mohaimen Alsamaraif59d0172021-08-17 09:34:22 -050010SRC_URI:append += " \
Lancelot Kaoe8979de2021-02-21 19:28:54 -060011 file://usb_network.sh \
12 file://usb_network.service \
13 file://00-bmc-usb0.network \
14 "
15
16SYSTEMD_PACKAGES = "${PN}"
Mohaimen Alsamaraif59d0172021-08-17 09:34:22 -050017SYSTEMD_SERVICE:${PN}:append = " usb_network.service"
18FILES:${PN} += "${sysconfdir_native}/systemd/network/00-bmc-usb0.network"
Lancelot Kaoe8979de2021-02-21 19:28:54 -060019
20do_install() {
21 install -d ${D}/${sbindir}
22 install -m 0755 ${WORKDIR}/usb_network.sh ${D}/${sbindir}
23
24 install -d ${D}${systemd_unitdir}/system/
25 install -m 0644 ${WORKDIR}/usb_network.service ${D}${systemd_unitdir}/system
26
27 install -d ${D}${sysconfdir_native}/systemd/network/
28 install -m 0644 ${WORKDIR}/00-bmc-usb0.network ${D}${sysconfdir_native}/systemd/network
29}