Thang Q. Nguyen | ac0d2b8 | 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" |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 14 | RDEPENDS:${PN} = "bash" |
Thang Q. Nguyen | ac0d2b8 | 2020-12-24 02:22:46 +0000 | [diff] [blame] | 15 | |
| 16 | SYSTEMD_PACKAGES = "${PN}" |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 17 | SYSTEMD_SERVICE:${PN} = " \ |
Thang Q. Nguyen | ac0d2b8 | 2020-12-24 02:22:46 +0000 | [diff] [blame] | 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 | |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 24 | do_install:append() { |
Thang Q. Nguyen | ac0d2b8 | 2020-12-24 02:22:46 +0000 | [diff] [blame] | 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 | } |