Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 1 | unit_files = [ |
| 2 | ['adc', 'xyz.openbmc_project.adcsensor.service'], |
Thu Nguyen | 255da6b | 2022-07-29 10:05:52 +0700 | [diff] [blame] | 3 | ['intel-cpu', 'xyz.openbmc_project.intelcpusensor.service'], |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 4 | ['exit-air', 'xyz.openbmc_project.exitairsensor.service'], |
| 5 | ['fan', 'xyz.openbmc_project.fansensor.service'], |
| 6 | ['hwmon-temp', 'xyz.openbmc_project.hwmontempsensor.service'], |
| 7 | ['ipmb', 'xyz.openbmc_project.ipmbsensor.service'], |
| 8 | ['intrusion', 'xyz.openbmc_project.intrusionsensor.service'], |
Ed Tanous | 49d12d8 | 2021-02-11 13:44:15 -0800 | [diff] [blame] | 9 | ['mcu', 'xyz.openbmc_project.mcutempsensor.service'], |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 10 | ['nvme', 'xyz.openbmc_project.nvmesensor.service'], |
Lei YU | 3a18b86 | 2021-02-05 13:55:08 +0800 | [diff] [blame] | 11 | ['psu', 'xyz.openbmc_project.psusensor.service'], |
Jeff Lin | a62c069 | 2021-02-18 16:22:14 +0800 | [diff] [blame] | 12 | ['external', 'xyz.openbmc_project.externalsensor.service'], |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 13 | ] |
| 14 | |
Andrew Jeffery | 8eb514a | 2024-01-04 10:30:10 +1030 | [diff] [blame^] | 15 | fs = import('fs') |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 16 | foreach tuple : unit_files |
Patrick Williams | 5bc307f | 2023-11-29 06:44:23 -0600 | [diff] [blame] | 17 | if get_option(tuple[0]).allowed() |
Andrew Jeffery | 8eb514a | 2024-01-04 10:30:10 +1030 | [diff] [blame^] | 18 | fs.copyfile( |
| 19 | tuple[1], |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 20 | install: true, |
| 21 | install_dir: systemd_system_unit_dir, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 22 | ) |
| 23 | endif |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 24 | endforeach |