Lei YU | 3ba9755 | 2019-03-11 17:32:32 +0800 | [diff] [blame] | 1 | SRC_URI += "file://obmc-flash-bios" |
| 2 | |
| 3 | PACKAGECONFIG_append = " ubifs_layout" |
| 4 | |
| 5 | do_install_append() { |
Adriana Kobylak | 80be49b | 2019-05-31 12:12:11 -0500 | [diff] [blame] | 6 | install -d ${D}${bindir} |
| 7 | install -m 0755 ${WORKDIR}/obmc-flash-bios ${D}${bindir}/obmc-flash-bios |
Lei YU | 3ba9755 | 2019-03-11 17:32:32 +0800 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | SYSTEMD_SERVICE_${PN} += " \ |
| 11 | obmc-flash-bios-ubiattach.service \ |
| 12 | obmc-flash-bios-ubimount@.service \ |
| 13 | obmc-flash-bios-ubiumount-ro@.service \ |
| 14 | obmc-flash-bios-ubiumount-rw@.service \ |
| 15 | obmc-flash-bios-ubipatch.service \ |
| 16 | obmc-flash-bios-ubiremount.service \ |
| 17 | obmc-flash-bios-updatesymlinks.service \ |
| 18 | obmc-flash-bios-cleanup.service \ |
| 19 | obmc-flash-bios-enable-clearvolatile@.service \ |
| 20 | obmc-flash-bios-check-clearvolatile@.service \ |
| 21 | op-pnor-msl.service \ |
| 22 | " |
| 23 | |
| 24 | ENABLE_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-enable-clearvolatile@.service" |
| 25 | HOST_START_TGTFMT = "obmc-host-start@{0}.target" |
| 26 | ENABLE_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-enable-clearvolatile@{0}.service" |
| 27 | ENABLE_CLEAR_VOLATILE_START_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${HOST_START_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}" |
| 28 | |
| 29 | CHECK_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-check-clearvolatile@.service" |
| 30 | HOST_STARTMIN_TGTFMT = "obmc-host-startmin@{0}.target" |
| 31 | CHECK_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-check-clearvolatile@{0}.service" |
| 32 | CHECK_CLEAR_VOLATILE_START_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${HOST_STARTMIN_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}" |
| 33 | |
| 34 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}" |
| 35 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}" |