Adriana Kobylak | 8b805bd | 2019-10-25 15:24:38 -0500 | [diff] [blame] | 1 | PACKAGECONFIG_append = " virtual_pnor" |
| 2 | |
| 3 | SYSTEMD_SERVICE_${PN} += " \ |
| 4 | obmc-vpnor-updatesymlinks.service \ |
Andrew Geissler | 4a78d554 | 2020-07-14 13:10:51 +0000 | [diff] [blame] | 5 | obmc-vpnor-check-clearvolatile@.service \ |
| 6 | obmc-vpnor-enable-clearvolatile@.service \ |
Adriana Kobylak | 8b805bd | 2019-10-25 15:24:38 -0500 | [diff] [blame] | 7 | " |
Andrew Geissler | 4a78d554 | 2020-07-14 13:10:51 +0000 | [diff] [blame] | 8 | |
| 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 |
| 15 | ENABLE_CLEAR_VOLATILE_TMPL = "obmc-vpnor-enable-clearvolatile@.service" |
| 16 | HOST_START_TGTFMT = "obmc-host-start@{0}.target" |
| 17 | ENABLE_CLEAR_VOLATILE_INSTFMT = "obmc-vpnor-enable-clearvolatile@{0}.service" |
| 18 | ENABLE_CLEAR_VOLATILE_START_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${HOST_START_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}" |
| 19 | |
| 20 | CHECK_CLEAR_VOLATILE_TMPL = "obmc-vpnor-check-clearvolatile@.service" |
| 21 | HOST_STARTMIN_TGTFMT = "obmc-host-startmin@{0}.target" |
| 22 | CHECK_CLEAR_VOLATILE_INSTFMT = "obmc-vpnor-check-clearvolatile@{0}.service" |
| 23 | CHECK_CLEAR_VOLATILE_START_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${HOST_STARTMIN_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}" |
| 24 | |
| 25 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}" |
| 26 | SYSTEMD_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 |
| 30 | CHASSIS_PON_TGTFMT = "obmc-chassis-poweron@{0}.target" |
| 31 | ENABLE_CLEAR_VOLATILE_PON_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${CHASSIS_PON_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}" |
| 32 | |
| 33 | CHECK_CLEAR_VOLATILE_PON_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${CHASSIS_PON_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}" |
| 34 | |
| 35 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_PON_FMT', 'OBMC_CHASSIS_INSTANCES')}" |
| 36 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_PON_FMT', 'OBMC_CHASSIS_INSTANCES')}" |