Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -0,0 +1 @@
RDEPENDS:${PN}-extras:append = " phosphor-misc-usb-ctrl usb-network"
@@ -0,0 +1,7 @@
[Match]
Name=usb0
[Address]
Address=169.254.100.100/16
[Network]
LinkLocalAddressing=no
IPv6AcceptRA=no
@@ -0,0 +1,12 @@
[Unit]
Description=Enable usb network
After=phosphor-ipmi-host.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/usb-ctrl ecm usbeth0 on
ExecStop=/usr/bin/usb-ctrl ecm usbeth0 off
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,24 @@
SUMMARY = "Enable USB ethernet"
PR = "r1"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
DEPENDS += "systemd"
RDEPENDS:${PN} += "libsystemd"
inherit allarch systemd
SRC_URI += "file://usb_network.service \
file://00-bmc-usb0.network"
do_install() {
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/usb_network.service ${D}${systemd_unitdir}/system
install -d ${D}${sysconfdir_native}/systemd/network/
install -m 0644 ${WORKDIR}/00-bmc-usb0.network ${D}${sysconfdir_native}/systemd/network
}
NATIVE_SYSTEMD_SUPPORT = "1"
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE:${PN} = "usb_network.service"