Lancelot Kao | e8979de | 2021-02-21 19:28:54 -0600 | [diff] [blame] | 1 | LICENSE = "Apache-2.0" |
| 2 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 3 | |
| 4 | inherit allarch systemd |
| 5 | |
| 6 | DEPENDS += "systemd" |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 7 | RDEPENDS:${PN} += "libsystemd" |
| 8 | RDEPENDS:${PN} += "bash" |
Lancelot Kao | e8979de | 2021-02-21 19:28:54 -0600 | [diff] [blame] | 9 | |
Grant Williams | aabf853 | 2022-04-19 14:44:23 -0500 | [diff] [blame] | 10 | SRC_URI +=" \ |
Lancelot Kao | e8979de | 2021-02-21 19:28:54 -0600 | [diff] [blame] | 11 | file://usb_network.sh \ |
| 12 | file://usb_network.service \ |
| 13 | file://00-bmc-usb0.network \ |
| 14 | " |
| 15 | |
| 16 | SYSTEMD_PACKAGES = "${PN}" |
Grant Williams | aabf853 | 2022-04-19 14:44:23 -0500 | [diff] [blame] | 17 | SYSTEMD_SERVICE:${PN} += " usb_network.service" |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 18 | FILES:${PN} += "${sysconfdir_native}/systemd/network/00-bmc-usb0.network" |
Lancelot Kao | e8979de | 2021-02-21 19:28:54 -0600 | [diff] [blame] | 19 | |
| 20 | do_install() { |
Charles Boyer | 2adad36 | 2021-11-24 15:58:03 -0600 | [diff] [blame] | 21 | install -d ${D}${libexecdir}/${PN} |
| 22 | install -m 0755 ${WORKDIR}/usb_network.sh ${D}${libexecdir}/${PN}/usb_network.sh |
Lancelot Kao | e8979de | 2021-02-21 19:28:54 -0600 | [diff] [blame] | 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 | } |