blob: dc20d5d09d8ff7b5770af69a7dfd6f84c4978b2a [file] [log] [blame]
Lei YU3ba97552019-03-11 17:32:32 +08001PACKAGECONFIG_append = " ubifs_layout"
2
Lei YU3ba97552019-03-11 17:32:32 +08003SYSTEMD_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 YU3ba97552019-03-11 17:32:32 +080010 obmc-flash-bios-cleanup.service \
11 obmc-flash-bios-enable-clearvolatile@.service \
12 obmc-flash-bios-check-clearvolatile@.service \
Lei YU3ba97552019-03-11 17:32:32 +080013 "
14
Andrew Geissler70b38d62020-06-22 15:14:30 -050015# 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 YU3ba97552019-03-11 17:32:32 +080021ENABLE_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-enable-clearvolatile@.service"
22HOST_START_TGTFMT = "obmc-host-start@{0}.target"
23ENABLE_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-enable-clearvolatile@{0}.service"
24ENABLE_CLEAR_VOLATILE_START_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${HOST_START_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}"
25
26CHECK_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-check-clearvolatile@.service"
27HOST_STARTMIN_TGTFMT = "obmc-host-startmin@{0}.target"
28CHECK_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-check-clearvolatile@{0}.service"
29CHECK_CLEAR_VOLATILE_START_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${HOST_STARTMIN_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}"
30
31SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}"
32SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}"
Andrew Geissler70b38d62020-06-22 15:14:30 -050033
34# Chassis target installation - always enable and clear in chassis
35# power on
36CHASSIS_PON_TGTFMT = "obmc-chassis-poweron@{0}.target"
37ENABLE_CLEAR_VOLATILE_PON_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${CHASSIS_PON_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}"
38
39CHECK_CLEAR_VOLATILE_PON_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${CHASSIS_PON_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}"
40
41SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_PON_FMT', 'OBMC_CHASSIS_INSTANCES')}"
42SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_PON_FMT', 'OBMC_CHASSIS_INSTANCES')}"