1unit_files = [
2    ['adc', 'xyz.openbmc_project.adcsensor.service'],
3    ['intel-cpu', 'xyz.openbmc_project.intelcpusensor.service'],
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'],
9    ['mcu', 'xyz.openbmc_project.mcutempsensor.service'],
10    ['nvme', 'xyz.openbmc_project.nvmesensor.service'],
11    ['psu', 'xyz.openbmc_project.psusensor.service'],
12    ['external', 'xyz.openbmc_project.externalsensor.service'],
13]
14
15foreach 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
25endforeach
26