Files
OpenBMC/meta-quanta/meta-common/recipes-quanta/network/usb-network.bb
T
2026-04-23 17:07:55 +08:00

26 lines
754 B
BlitzBasic

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
FILESEXTRAPATHS:append := "${THISDIR}/${PN}:"
SRC_URI:append = " file://usb-network.sh"
SRC_URI:append = " file://usb-network.service"
inherit systemd
DEPENDS += "systemd"
RDEPENDS:${PN} += "libsystemd"
RDEPENDS:${PN} += "bash"
FILES:${PN}:append = " ${sysconfdir_native}/systemd/network/00-bmc-usb0.network"
do_install() {
install -d ${D}/${sbindir}
install -m 0755 ${WORKDIR}/usb-network.sh ${D}/${sbindir}
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/usb-network.service \
${D}${systemd_unitdir}/system
}
SYSTEMD_SERVICE:${PN}:append = "usb-network.service"