Lei YU | 216f4ea | 2020-07-16 08:16:59 +0000 | [diff] [blame] | 1 | SUMMARY = "Enable USB ethernet" |
| 2 | PR = "r1" |
| 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 5 | |
| 6 | DEPENDS += "systemd" |
Lei YU | 05e5f0b | 2021-08-12 11:08:52 +0800 | [diff] [blame] | 7 | RDEPENDS:${PN} += "libsystemd" |
Lei YU | 216f4ea | 2020-07-16 08:16:59 +0000 | [diff] [blame] | 8 | |
| 9 | inherit allarch systemd |
| 10 | |
| 11 | SRC_URI += "file://usb_network.service \ |
| 12 | file://00-bmc-usb0.network" |
| 13 | |
| 14 | do_install() { |
| 15 | install -d ${D}${systemd_unitdir}/system/ |
| 16 | install -m 0644 ${WORKDIR}/usb_network.service ${D}${systemd_unitdir}/system |
| 17 | |
| 18 | install -d ${D}${sysconfdir_native}/systemd/network/ |
| 19 | install -m 0644 ${WORKDIR}/00-bmc-usb0.network ${D}${sysconfdir_native}/systemd/network |
| 20 | } |
| 21 | |
| 22 | NATIVE_SYSTEMD_SUPPORT = "1" |
| 23 | SYSTEMD_PACKAGES = "${PN}" |
Lei YU | 05e5f0b | 2021-08-12 11:08:52 +0800 | [diff] [blame] | 24 | SYSTEMD_SERVICE:${PN} = "usb_network.service" |