blob: 3045fa557a7fa7e174855ccb99729afbb889f994 [file] [log] [blame]
Thang Q. Nguyenac0d2b82020-12-24 02:22:46 +00001SUMMARY = "Ampere Computing LLC Add Ethernet over USB gadget device"
2DESCRIPTION = "Add Ethernet over USB gadget device for Ampere systems"
3PR = "r1"
4
5LICENSE = "Apache-2.0"
6S = "${WORKDIR}"
7
8LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
9
10inherit systemd
11inherit obmc-phosphor-systemd
12
13DEPENDS = "systemd"
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +000014RDEPENDS:${PN} = "bash"
Thang Q. Nguyenac0d2b82020-12-24 02:22:46 +000015
16SYSTEMD_PACKAGES = "${PN}"
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +000017SYSTEMD_SERVICE:${PN} = " \
Thang Q. Nguyenac0d2b82020-12-24 02:22:46 +000018 ampere_add_usbnet_gadget.service \
19 "
20
21SRC_URI += "file://00-bmc-usb0.network"
22SRC_URI += "file://ampere_add_usbnet_gadget.sh"
23
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +000024do_install:append() {
Thang Q. Nguyenac0d2b82020-12-24 02:22:46 +000025 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}