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 | |
| 15 | foreach tuple : unit_files |
| 16 | if get_option(tuple[0]).enabled() |
| 17 | configure_file( |
| 18 | copy: true, |
| 19 | input: tuple[1], |
| 20 | install: true, |
| 21 | install_dir: systemd_system_unit_dir, |
| 22 | output: tuple[1], |
| 23 | ) |
| 24 | endif |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 25 | endforeach |