blob: 1e76efa458fc03a1c696281b03bf18d9e7b8fc42 [file] [log] [blame]
Adriana Kobylak8b805bd2019-10-25 15:24:38 -05001PACKAGECONFIG_append = " virtual_pnor"
2
3SYSTEMD_SERVICE_${PN} += " \
4 obmc-vpnor-updatesymlinks.service \
Andrew Geissler4a78d552020-07-14 13:10:51 +00005 obmc-vpnor-check-clearvolatile@.service \
6 obmc-vpnor-enable-clearvolatile@.service \
Adriana Kobylak8b805bd2019-10-25 15:24:38 -05007 "
Andrew Geissler4a78d552020-07-14 13:10:51 +00008
9# To handle warm reboot scenarios, the checking and clearing of
10# the volatile section must occur in both the chassis and host
11# targets
12
13# Host target installation - only clear if going through
14# full host start target
15ENABLE_CLEAR_VOLATILE_TMPL = "obmc-vpnor-enable-clearvolatile@.service"
16HOST_START_TGTFMT = "obmc-host-start@{0}.target"
17ENABLE_CLEAR_VOLATILE_INSTFMT = "obmc-vpnor-enable-clearvolatile@{0}.service"
18ENABLE_CLEAR_VOLATILE_START_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${HOST_START_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}"
19
20CHECK_CLEAR_VOLATILE_TMPL = "obmc-vpnor-check-clearvolatile@.service"
21HOST_STARTMIN_TGTFMT = "obmc-host-startmin@{0}.target"
22CHECK_CLEAR_VOLATILE_INSTFMT = "obmc-vpnor-check-clearvolatile@{0}.service"
23CHECK_CLEAR_VOLATILE_START_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${HOST_STARTMIN_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}"
24
25SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}"
26SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}"
27
28# Chassis target installation - always enable and clear in chassis
29# power on
30CHASSIS_PON_TGTFMT = "obmc-chassis-poweron@{0}.target"
31ENABLE_CLEAR_VOLATILE_PON_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${CHASSIS_PON_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}"
32
33CHECK_CLEAR_VOLATILE_PON_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${CHASSIS_PON_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}"
34
35SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_PON_FMT', 'OBMC_CHASSIS_INSTANCES')}"
36SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_PON_FMT', 'OBMC_CHASSIS_INSTANCES')}"