blob: 9a4096670b57a6821901a4919e52fce4ace98718 [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
Andrew Geissler5da2de92023-05-10 16:50:33 -050029UPDATE_SYMLINKS_SVC = "obmc-vpnor-updatesymlinks.service"
30MBOXD_RELOAD_SVC = "mboxd-reload@{0}.service"
31UPDATE_SYMLINKS_FMT = "../${UPDATE_SYMLINKS_SVC}:${MBOXD_RELOAD_SVC}.wants/${UPDATE_SYMLINKS_SVC}"
32
Patrick Williamse83c2202021-09-01 16:17:33 -050033SYSTEMD_LINK:${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}"
34SYSTEMD_LINK:${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}"
Andrew Geissler5da2de92023-05-10 16:50:33 -050035SYSTEMD_LINK:${PN} += "${@compose_list_zip(d, 'UPDATE_SYMLINKS_FMT', 'OBMC_HOST_INSTANCES')}"
Andrew Geissler4a78d552020-07-14 13:10:51 +000036
37# Chassis target installation - always enable and clear in chassis
38# power on
39CHASSIS_PON_TGTFMT = "obmc-chassis-poweron@{0}.target"
40ENABLE_CLEAR_VOLATILE_PON_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${CHASSIS_PON_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}"
41
42CHECK_CLEAR_VOLATILE_PON_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${CHASSIS_PON_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}"
43
Patrick Williamse83c2202021-09-01 16:17:33 -050044SYSTEMD_LINK:${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_PON_FMT', 'OBMC_CHASSIS_INSTANCES')}"
45SYSTEMD_LINK:${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_PON_FMT', 'OBMC_CHASSIS_INSTANCES')}"