FranHsu | 41ff546 | 2019-02-22 20:13:49 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS_append := "${THISDIR}/files:" |
| 2 | LICENSE = "Apache-2.0" |
Brad Bishop | 170929b | 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 | 41ff546 | 2019-02-22 20:13:49 +0800 | [diff] [blame] | 4 | |
| 5 | DEPENDS += "systemd" |
| 6 | RDEPENDS_${PN} += "libsystemd" |
| 7 | RDEPENDS_${PN} += "bash" |
| 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}" |
| 26 | SYSTEMD_SERVICE_${PN} = "usb_network.service" |
| 27 | FILES_${PN} += "${sysconfdir_native}/systemd/network/00-bmc-usb0.network" |
| 28 | |
| 29 | inherit allarch systemd |