Adriana Kobylak | 8c6707f | 2021-08-06 17:35:36 +0000 | [diff] [blame^] | 1 | PACKAGECONFIG:append = " virtual_pnor" |
Adriana Kobylak | 8b805bd | 2019-10-25 15:24:38 -0500 | [diff] [blame] | 2 | |
Adriana Kobylak | 8c6707f | 2021-08-06 17:35:36 +0000 | [diff] [blame^] | 3 | RDEPENDS:${PN} += " \ |
Andrew Geissler | d84fa43 | 2021-05-10 19:50:19 +0000 | [diff] [blame] | 4 | bash \ |
| 5 | " |
| 6 | |
Adriana Kobylak | 8c6707f | 2021-08-06 17:35:36 +0000 | [diff] [blame^] | 7 | SYSTEMD_SERVICE:${PN} += " \ |
Adriana Kobylak | 8b805bd | 2019-10-25 15:24:38 -0500 | [diff] [blame] | 8 | obmc-vpnor-updatesymlinks.service \ |
Andrew Geissler | 4a78d55 | 2020-07-14 13:10:51 +0000 | [diff] [blame] | 9 | obmc-vpnor-check-clearvolatile@.service \ |
| 10 | obmc-vpnor-enable-clearvolatile@.service \ |
Adriana Kobylak | 8b805bd | 2019-10-25 15:24:38 -0500 | [diff] [blame] | 11 | " |
Andrew Geissler | 4a78d55 | 2020-07-14 13:10:51 +0000 | [diff] [blame] | 12 | |
| 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 |
| 19 | ENABLE_CLEAR_VOLATILE_TMPL = "obmc-vpnor-enable-clearvolatile@.service" |
| 20 | HOST_START_TGTFMT = "obmc-host-start@{0}.target" |
| 21 | ENABLE_CLEAR_VOLATILE_INSTFMT = "obmc-vpnor-enable-clearvolatile@{0}.service" |
| 22 | ENABLE_CLEAR_VOLATILE_START_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${HOST_START_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}" |
| 23 | |
| 24 | CHECK_CLEAR_VOLATILE_TMPL = "obmc-vpnor-check-clearvolatile@.service" |
| 25 | HOST_STARTMIN_TGTFMT = "obmc-host-startmin@{0}.target" |
| 26 | CHECK_CLEAR_VOLATILE_INSTFMT = "obmc-vpnor-check-clearvolatile@{0}.service" |
| 27 | CHECK_CLEAR_VOLATILE_START_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${HOST_STARTMIN_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}" |
| 28 | |
| 29 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}" |
| 30 | SYSTEMD_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 |
| 34 | CHASSIS_PON_TGTFMT = "obmc-chassis-poweron@{0}.target" |
| 35 | ENABLE_CLEAR_VOLATILE_PON_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${CHASSIS_PON_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}" |
| 36 | |
| 37 | CHECK_CLEAR_VOLATILE_PON_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${CHASSIS_PON_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}" |
| 38 | |
| 39 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_PON_FMT', 'OBMC_CHASSIS_INSTANCES')}" |
| 40 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_PON_FMT', 'OBMC_CHASSIS_INSTANCES')}" |