blob: 63e6d5d13f72576f9b558c72163fc420111e2505 [file] [log] [blame]
Willy Tua38b7cc2021-08-10 15:33:55 -07001FILESEXTRAPATHS:append := "${THISDIR}/files:"
FranHsue7428cb2019-02-22 20:13:49 +08002LICENSE = "Apache-2.0"
Brad Bishop07d2b9d2019-09-13 13:04:22 -04003LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
FranHsue7428cb2019-02-22 20:13:49 +08004
5DEPENDS += "systemd"
Willy Tua38b7cc2021-08-10 15:33:55 -07006RDEPENDS:${PN} += "libsystemd"
7RDEPENDS:${PN} += "bash"
FranHsue7428cb2019-02-22 20:13:49 +08008
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}"
Willy Tua38b7cc2021-08-10 15:33:55 -070026SYSTEMD_SERVICE:${PN} = "usb_network.service"
27FILES:${PN} += "${sysconfdir_native}/systemd/network/00-bmc-usb0.network"
FranHsue7428cb2019-02-22 20:13:49 +080028
29inherit allarch systemd