blob: ad46c0b3293e80687e812770c4b4763e7bbb9e18 [file] [log] [blame]
FranHsu41ff5462019-02-22 20:13:49 +08001FILESEXTRAPATHS_append := "${THISDIR}/files:"
2LICENSE = "Apache-2.0"
Brad Bishop170929b2019-09-13 13:04:22 -04003LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
FranHsu41ff5462019-02-22 20:13:49 +08004
5DEPENDS += "systemd"
6RDEPENDS_${PN} += "libsystemd"
7RDEPENDS_${PN} += "bash"
8
9SRC_URI += "file://usb_network.sh \
10 file://usb_network.service \
11 file://00-bmc-usb0.network"
12
13do_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
24NATIVE_SYSTEMD_SUPPORT = "1"
25SYSTEMD_PACKAGES = "${PN}"
26SYSTEMD_SERVICE_${PN} = "usb_network.service"
27FILES_${PN} += "${sysconfdir_native}/systemd/network/00-bmc-usb0.network"
28
29inherit allarch systemd