blob: 4aea510828b6469952577c1ba2f35f389ee7b80f [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
Grant Williamsaabf8532022-04-19 14:44:23 -050010SRC_URI +=" \
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}"
Grant Williamsaabf8532022-04-19 14:44:23 -050017SYSTEMD_SERVICE:${PN} += " usb_network.service"
Mohaimen Alsamaraif59d0172021-08-17 09:34:22 -050018FILES:${PN} += "${sysconfdir_native}/systemd/network/00-bmc-usb0.network"
Lancelot Kaoe8979de2021-02-21 19:28:54 -060019
20do_install() {
Charles Boyer2adad362021-11-24 15:58:03 -060021 install -d ${D}${libexecdir}/${PN}
22 install -m 0755 ${WORKDIR}/usb_network.sh ${D}${libexecdir}/${PN}/usb_network.sh
Lancelot Kaoe8979de2021-02-21 19:28:54 -060023
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}