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