blob: 5b60384f1007bdbaf0cd5424b0f0bf7e5070764a [file] [log] [blame]
Lei YU3ba97552019-03-11 17:32:32 +08001SRC_URI += "file://obmc-flash-bios"
2
3PACKAGECONFIG_append = " ubifs_layout"
4
5do_install_append() {
Adriana Kobylak80be49b2019-05-31 12:12:11 -05006 install -d ${D}${bindir}
7 install -m 0755 ${WORKDIR}/obmc-flash-bios ${D}${bindir}/obmc-flash-bios
Lei YU3ba97552019-03-11 17:32:32 +08008}
9
10SYSTEMD_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
24ENABLE_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-enable-clearvolatile@.service"
25HOST_START_TGTFMT = "obmc-host-start@{0}.target"
26ENABLE_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-enable-clearvolatile@{0}.service"
27ENABLE_CLEAR_VOLATILE_START_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${HOST_START_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}"
28
29CHECK_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-check-clearvolatile@.service"
30HOST_STARTMIN_TGTFMT = "obmc-host-startmin@{0}.target"
31CHECK_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-check-clearvolatile@{0}.service"
32CHECK_CLEAR_VOLATILE_START_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${HOST_STARTMIN_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}"
33
34SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}"
35SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}"