blob: ae6c3880b87f65b940dc0423ace41a733a7a759f [file] [log] [blame]
Lei YU2c2604d2019-03-11 17:32:32 +08001SRC_URI += "file://obmc-flash-bios"
2
3PACKAGECONFIG_append = " ubifs_layout"
4
5do_install_append() {
6 install -d ${D}${sbindir}
7 install -m 0755 ${WORKDIR}/obmc-flash-bios ${D}${sbindir}/obmc-flash-bios
8}
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')}"