Willy Tu | a38b7cc | 2021-08-10 15:33:55 -0700 | [diff] [blame] | 1 | FILESEXTRAPATHS:append := "${THISDIR}/files:" |
FranHsu | e7428cb | 2019-02-22 20:13:49 +0800 | [diff] [blame] | 2 | LICENSE = "Apache-2.0" |
Brad Bishop | 07d2b9d | 2019-09-13 13:04:22 -0400 | [diff] [blame] | 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
FranHsu | e7428cb | 2019-02-22 20:13:49 +0800 | [diff] [blame] | 4 | |
| 5 | DEPENDS += "systemd" |
Willy Tu | a38b7cc | 2021-08-10 15:33:55 -0700 | [diff] [blame] | 6 | RDEPENDS:${PN} += "libsystemd" |
| 7 | RDEPENDS:${PN} += "bash" |
FranHsu | e7428cb | 2019-02-22 20:13:49 +0800 | [diff] [blame] | 8 | |
| 9 | SRC_URI += "file://usb_network.sh \ |
| 10 | file://usb_network.service \ |
| 11 | file://00-bmc-usb0.network" |
| 12 | |
| 13 | do_install() { |
| 14 | install -d ${D}/${sbindir} |
| 15 | install -m 0755 ${WORKDIR}/usb_network.sh ${D}/${sbindir} |
| 16 | |
| 17 | install -d ${D}${systemd_unitdir}/system/ |
| 18 | install -m 0644 ${WORKDIR}/usb_network.service ${D}${systemd_unitdir}/system |
| 19 | |
| 20 | install -d ${D}${sysconfdir_native}/systemd/network/ |
| 21 | install -m 0644 ${WORKDIR}/00-bmc-usb0.network ${D}${sysconfdir_native}/systemd/network |
| 22 | } |
| 23 | |
| 24 | NATIVE_SYSTEMD_SUPPORT = "1" |
| 25 | SYSTEMD_PACKAGES = "${PN}" |
Willy Tu | a38b7cc | 2021-08-10 15:33:55 -0700 | [diff] [blame] | 26 | SYSTEMD_SERVICE:${PN} = "usb_network.service" |
| 27 | FILES:${PN} += "${sysconfdir_native}/systemd/network/00-bmc-usb0.network" |
FranHsu | e7428cb | 2019-02-22 20:13:49 +0800 | [diff] [blame] | 28 | |
| 29 | inherit allarch systemd |