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 | |
Willy Tu | f3acf6d | 2021-08-10 18:14:20 -0700 | [diff] [blame] | 4 | FILESEXTRAPATHS:append := "${THISDIR}/${PN}:" |
| 5 | SRC_URI:append = " file://usb-network.sh" |
| 6 | SRC_URI:append = " file://usb-network.service" |
Spencer Ku | 04d737c | 2020-04-20 15:24:35 +0800 | [diff] [blame] | 7 | |
| 8 | inherit systemd |
| 9 | |
| 10 | DEPENDS += "systemd" |
Willy Tu | f3acf6d | 2021-08-10 18:14:20 -0700 | [diff] [blame] | 11 | RDEPENDS:${PN} += "libsystemd" |
| 12 | RDEPENDS:${PN} += "bash" |
Spencer Ku | 04d737c | 2020-04-20 15:24:35 +0800 | [diff] [blame] | 13 | |
Willy Tu | f3acf6d | 2021-08-10 18:14:20 -0700 | [diff] [blame] | 14 | FILES:${PN}:append = " ${sysconfdir_native}/systemd/network/00-bmc-usb0.network" |
Spencer Ku | 04d737c | 2020-04-20 15:24:35 +0800 | [diff] [blame] | 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 | |
Willy Tu | f3acf6d | 2021-08-10 18:14:20 -0700 | [diff] [blame] | 25 | SYSTEMD_SERVICE:${PN}:append = "usb-network.service" |