Lei YU | 3ba9755 | 2019-03-11 17:32:32 +0800 | [diff] [blame] | 1 | PACKAGECONFIG_append = " ubifs_layout" |
| 2 | |
Lei YU | 3ba9755 | 2019-03-11 17:32:32 +0800 | [diff] [blame] | 3 | SYSTEMD_SERVICE_${PN} += " \ |
| 4 | obmc-flash-bios-ubiattach.service \ |
| 5 | obmc-flash-bios-ubimount@.service \ |
| 6 | obmc-flash-bios-ubiumount-ro@.service \ |
| 7 | obmc-flash-bios-ubiumount-rw@.service \ |
| 8 | obmc-flash-bios-ubipatch.service \ |
| 9 | obmc-flash-bios-ubiremount.service \ |
Lei YU | 3ba9755 | 2019-03-11 17:32:32 +0800 | [diff] [blame] | 10 | obmc-flash-bios-cleanup.service \ |
| 11 | obmc-flash-bios-enable-clearvolatile@.service \ |
| 12 | obmc-flash-bios-check-clearvolatile@.service \ |
Lei YU | 3ba9755 | 2019-03-11 17:32:32 +0800 | [diff] [blame] | 13 | " |
| 14 | |
Andrew Geissler | 70b38d6 | 2020-06-22 15:14:30 -0500 | [diff] [blame] | 15 | # To handle warm reboot scenarios, the checking and clearing of |
| 16 | # the volatile section must occur in both the chassis and host |
| 17 | # targets |
| 18 | |
| 19 | # Host target installation - only clear if going through |
| 20 | # full host start target |
Lei YU | 3ba9755 | 2019-03-11 17:32:32 +0800 | [diff] [blame] | 21 | ENABLE_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-enable-clearvolatile@.service" |
| 22 | HOST_START_TGTFMT = "obmc-host-start@{0}.target" |
| 23 | ENABLE_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-enable-clearvolatile@{0}.service" |
| 24 | ENABLE_CLEAR_VOLATILE_START_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${HOST_START_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}" |
| 25 | |
| 26 | CHECK_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-check-clearvolatile@.service" |
| 27 | HOST_STARTMIN_TGTFMT = "obmc-host-startmin@{0}.target" |
| 28 | CHECK_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-check-clearvolatile@{0}.service" |
| 29 | CHECK_CLEAR_VOLATILE_START_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${HOST_STARTMIN_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}" |
| 30 | |
| 31 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}" |
| 32 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}" |
Andrew Geissler | 70b38d6 | 2020-06-22 15:14:30 -0500 | [diff] [blame] | 33 | |
| 34 | # Chassis target installation - always enable and clear in chassis |
| 35 | # power on |
| 36 | CHASSIS_PON_TGTFMT = "obmc-chassis-poweron@{0}.target" |
| 37 | ENABLE_CLEAR_VOLATILE_PON_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${CHASSIS_PON_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}" |
| 38 | |
| 39 | CHECK_CLEAR_VOLATILE_PON_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${CHASSIS_PON_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}" |
| 40 | |
| 41 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_PON_FMT', 'OBMC_CHASSIS_INSTANCES')}" |
| 42 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_PON_FMT', 'OBMC_CHASSIS_INSTANCES')}" |