Potin Lai | ee63475 | 2022-04-21 23:15:45 +0800 | [diff] [blame] | 1 | SUMMARY = "Firmware update tools" |
| 2 | PR = "r1" |
| 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 5 | |
| 6 | inherit obmc-phosphor-systemd |
| 7 | |
| 8 | RDEPENDS:${PN} += "bash" |
| 9 | RDEPENDS:${PN} += "libgpiod-tools" |
| 10 | |
| 11 | S = "${WORKDIR}" |
| 12 | SRC_URI += " \ |
| 13 | file://usb-controller-update \ |
| 14 | " |
| 15 | |
| 16 | do_install() { |
| 17 | install -d ${D}${sbindir} |
| 18 | install -m 0755 ${WORKDIR}/usb-controller-update ${D}${sbindir} |
| 19 | } |
| 20 | |
| 21 | FLASH_USB_CONTROLLER_INSTFMT="flash-usb-controller@.service:flash-usb-controller@{0}.service" |
| 22 | SYSTEMD_SERVICE:${PN} += "flash-usb-controller@.service" |
| 23 | SYSTEMD_LINK:${PN} += "${@compose_list(d, 'FLASH_USB_CONTROLLER_INSTFMT', 'OBMC_HOST_INSTANCES')}" |