blob: cfa3297cb3c653369a2a8a069fa9ac471280f944 [file] [log] [blame]
unit_files = [
['adc', 'xyz.openbmc_project.adcsensor.service'],
['intel-cpu', 'xyz.openbmc_project.intelcpusensor.service'],
['exit-air', 'xyz.openbmc_project.exitairsensor.service'],
['fan', 'xyz.openbmc_project.fansensor.service'],
['hwmon-temp', 'xyz.openbmc_project.hwmontempsensor.service'],
['ipmb', 'xyz.openbmc_project.ipmbsensor.service'],
['intrusion', 'xyz.openbmc_project.intrusionsensor.service'],
['mcu', 'xyz.openbmc_project.mcutempsensor.service'],
['nvme', 'xyz.openbmc_project.nvmesensor.service'],
['psu', 'xyz.openbmc_project.psusensor.service'],
['external', 'xyz.openbmc_project.externalsensor.service'],
]
foreach tuple : unit_files
if get_option(tuple[0]).allowed()
configure_file(
copy: true,
input: tuple[1],
install: true,
install_dir: systemd_system_unit_dir,
output: tuple[1],
)
endif
endforeach