blob: 41094c05d9aad7bd26284a07a30e70fc21316650 [file] [log] [blame]
Spencer Ku04d737c2020-04-20 15:24:35 +08001LICENSE = "Apache-2.0"
2LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
3
Willy Tuf3acf6d2021-08-10 18:14:20 -07004FILESEXTRAPATHS:append := "${THISDIR}/${PN}:"
5SRC_URI:append = " file://usb-network.sh"
6SRC_URI:append = " file://usb-network.service"
Spencer Ku04d737c2020-04-20 15:24:35 +08007
8inherit systemd
9
10DEPENDS += "systemd"
Willy Tuf3acf6d2021-08-10 18:14:20 -070011RDEPENDS:${PN} += "libsystemd"
12RDEPENDS:${PN} += "bash"
Spencer Ku04d737c2020-04-20 15:24:35 +080013
Willy Tuf3acf6d2021-08-10 18:14:20 -070014FILES:${PN}:append = " ${sysconfdir_native}/systemd/network/00-bmc-usb0.network"
Spencer Ku04d737c2020-04-20 15:24:35 +080015
16do_install() {
17 install -d ${D}/${sbindir}
18 install -m 0755 ${WORKDIR}/usb-network.sh ${D}/${sbindir}
19
20 install -d ${D}${systemd_unitdir}/system/
21 install -m 0644 ${WORKDIR}/usb-network.service \
22 ${D}${systemd_unitdir}/system
23}
24
Willy Tuf3acf6d2021-08-10 18:14:20 -070025SYSTEMD_SERVICE:${PN}:append = "usb-network.service"