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 | |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 10 | SRC_URI:append += " \ |
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}" |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 17 | SYSTEMD_SERVICE:${PN}:append = " usb_network.service" |
| 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() { |
| 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 | } |