Thang Q. Nguyen | 458c1f9 | 2020-12-24 02:22:46 +0000 | [diff] [blame^] | 1 | SUMMARY = "Ampere Computing LLC Add Ethernet over USB gadget device" |
| 2 | DESCRIPTION = "Add Ethernet over USB gadget device for Ampere systems" |
| 3 | PR = "r1" |
| 4 | |
| 5 | LICENSE = "Apache-2.0" |
| 6 | S = "${WORKDIR}" |
| 7 | |
| 8 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 9 | |
| 10 | inherit systemd |
| 11 | inherit obmc-phosphor-systemd |
| 12 | |
| 13 | DEPENDS = "systemd" |
| 14 | RDEPENDS_${PN} = "bash" |
| 15 | |
| 16 | SYSTEMD_PACKAGES = "${PN}" |
| 17 | SYSTEMD_SERVICE_${PN} = " \ |
| 18 | ampere_add_usbnet_gadget.service \ |
| 19 | " |
| 20 | |
| 21 | SRC_URI += "file://00-bmc-usb0.network" |
| 22 | SRC_URI += "file://ampere_add_usbnet_gadget.sh" |
| 23 | |
| 24 | do_install_append() { |
| 25 | install -d ${D}${sbindir} |
| 26 | install -d ${D}/etc/systemd/network |
| 27 | install -m 744 ${WORKDIR}/ampere_add_usbnet_gadget.sh ${D}${sbindir}/ |
| 28 | install -m 644 ${WORKDIR}/00-bmc-usb0.network \ |
| 29 | ${D}/etc/systemd/network/ |
| 30 | } |