blob: 5d53464c89955f42d33ebe92eb607e0130ff9389 [file] [log] [blame]
Andrew Geissler179d38c2019-12-10 15:05:23 -06001unit_files = [
2 'phosphor-systemd-target-monitor.service',
Andrew Geisslerc2123532020-01-14 10:39:47 -06003 'phosphor-discover-system-state@.service',
Andrew Geissler86a1ebf2022-11-10 15:58:30 -06004 'obmc-power-start@.service',
5 'obmc-power-stop@.service',
6 'obmc-powered-off@.service',
Andrew Geisslerc2123532020-01-14 10:39:47 -06007 'phosphor-reboot-host@.service',
Andrew Geissler86a1ebf2022-11-10 15:58:30 -06008 'phosphor-reset-chassis-on@.service',
9 'phosphor-reset-chassis-running@.service',
Andrew Geissler5f8e04a2021-08-12 15:51:41 -040010 'phosphor-reset-host-recovery@.service',
Andrew Geisslerc2123532020-01-14 10:39:47 -060011 'phosphor-reset-host-running@.service',
12 'phosphor-reset-sensor-states@.service',
13 'xyz.openbmc_project.State.BMC.service',
Potin Lai70f36d82022-03-15 10:25:39 +080014 'xyz.openbmc_project.State.Chassis@.service',
Allen.Wang79b45002022-02-10 17:59:20 +080015 'xyz.openbmc_project.State.Host@.service',
Andrew Geisslerfe270d32021-01-27 14:06:46 -060016 'xyz.openbmc_project.State.Hypervisor.service',
Patrick Williams211d9722022-04-07 21:24:33 -050017 'xyz.openbmc_project.State.ScheduledHostTransition@.service',
Andrew Geissler1e8b1642021-01-05 15:00:25 -060018 'phosphor-clear-one-time@.service',
19 'phosphor-set-host-transition-to-off@.service',
Andrew Geissler378fe112022-02-03 16:39:44 -060020 'phosphor-set-host-transition-to-running@.service',
Andrew Geissler1662ba62022-03-18 13:51:46 -050021 'phosphor-chassis-check-power-status@.service',
Andrew Geisslerafe12d62023-04-28 14:58:16 -060022 'phosphor-bmc-security-check.service',
Thang Tran74d7a552023-11-14 13:35:50 +070023 'phosphor-create-chassis-poweron-log@.service',
24 'phosphor-set-chassis-transition-to-on@.service',
Patrick Williams71e399d2025-02-01 08:36:54 -050025 'phosphor-set-chassis-transition-to-off@.service',
Andrew Geissler179d38c2019-12-10 15:05:23 -060026]
27
George Liudb8feba2023-08-16 15:57:43 +080028fs = import('fs')
Andrew Geissler179d38c2019-12-10 15:05:23 -060029foreach u : unit_files
Patrick Williams71e399d2025-02-01 08:36:54 -050030 fs.copyfile(u, install: true, install_dir: systemd_system_unit_dir)
Andrew Geissler179d38c2019-12-10 15:05:23 -060031endforeach
Roger G. Coscojuela833f9622025-11-11 11:12:09 +010032
33
34configure_file(
35 input: 'phosphor-reset-host-reboot-attempts@.service.in',
36 output: 'phosphor-reset-host-reboot-attempts@.service',
37 install_dir: systemd_system_unit_dir,
38 install: true,
39 configuration: configuration_data(
40 {'BOOT_COUNT_MAX_ALLOWED': get_option('boot-count-max-allowed')},
41 ),
42)