Spencer Ku | 04d737c | 2020-04-20 15:24:35 +0800 | [diff] [blame] | 1 | LICENSE = "Apache-2.0" |
| 2 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 3 | |
| 4 | FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" |
| 5 | SRC_URI_append = " file://usb-network.sh" |
| 6 | SRC_URI_append = " file://usb-network.service" |
| 7 | |
| 8 | inherit systemd |
| 9 | |
| 10 | DEPENDS += "systemd" |
| 11 | RDEPENDS_${PN} += "libsystemd" |
| 12 | RDEPENDS_${PN} += "bash" |
| 13 | |
| 14 | FILES_${PN}_append = " ${sysconfdir_native}/systemd/network/00-bmc-usb0.network" |
| 15 | |
| 16 | do_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 | |
| 25 | SYSTEMD_SERVICE_${PN}_append = "usb-network.service" |