blob: 61822f1d428e07eb8b061150840df059bdbb75eb [file] [log] [blame]
Adriana Kobylak8c6707f2021-08-06 17:35:36 +00001PACKAGECONFIG:append = " virtual_pnor"
Adriana Kobylak8b805bd2019-10-25 15:24:38 -05002
Adriana Kobylak8c6707f2021-08-06 17:35:36 +00003RDEPENDS:${PN} += " \
Andrew Geisslerd84fa432021-05-10 19:50:19 +00004 bash \
5"
6
Adriana Kobylak8c6707f2021-08-06 17:35:36 +00007SYSTEMD_SERVICE:${PN} += " \
Adriana Kobylak8b805bd2019-10-25 15:24:38 -05008 obmc-vpnor-updatesymlinks.service \
Andrew Geissler4a78d552020-07-14 13:10:51 +00009 obmc-vpnor-check-clearvolatile@.service \
10 obmc-vpnor-enable-clearvolatile@.service \
Adriana Kobylak8b805bd2019-10-25 15:24:38 -050011 "
Andrew Geissler4a78d552020-07-14 13:10:51 +000012
13# To handle warm reboot scenarios, the checking and clearing of
14# the volatile section must occur in both the chassis and host
15# targets
16
17# Host target installation - only clear if going through
18# full host start target
19ENABLE_CLEAR_VOLATILE_TMPL = "obmc-vpnor-enable-clearvolatile@.service"
20HOST_START_TGTFMT = "obmc-host-start@{0}.target"
21ENABLE_CLEAR_VOLATILE_INSTFMT = "obmc-vpnor-enable-clearvolatile@{0}.service"
22ENABLE_CLEAR_VOLATILE_START_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${HOST_START_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}"
23
24CHECK_CLEAR_VOLATILE_TMPL = "obmc-vpnor-check-clearvolatile@.service"
25HOST_STARTMIN_TGTFMT = "obmc-host-startmin@{0}.target"
26CHECK_CLEAR_VOLATILE_INSTFMT = "obmc-vpnor-check-clearvolatile@{0}.service"
27CHECK_CLEAR_VOLATILE_START_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${HOST_STARTMIN_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}"
28
29SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}"
30SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}"
31
32# Chassis target installation - always enable and clear in chassis
33# power on
34CHASSIS_PON_TGTFMT = "obmc-chassis-poweron@{0}.target"
35ENABLE_CLEAR_VOLATILE_PON_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${CHASSIS_PON_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}"
36
37CHECK_CLEAR_VOLATILE_PON_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${CHASSIS_PON_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}"
38
39SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_PON_FMT', 'OBMC_CHASSIS_INSTANCES')}"
40SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_PON_FMT', 'OBMC_CHASSIS_INSTANCES')}"