blob: 8576ba05834cb479ec6cebcb4b161d4ce328c5ba [file] [log] [blame]
Brad Bishopb4459912019-11-05 19:39:11 -05001unit_files = [
Brad Bishop92daaaa2020-01-20 15:45:01 -05002 ['xyz.openbmc_project.FruDevice.service', 'fru-device'],
3 ['xyz.openbmc_project.EntityManager.service', ''],
Chris Sides2ab73412024-10-15 16:04:11 -05004 ['devicetree-vpd-parser.service', 'devicetree-vpd'],
Brad Bishopb4459912019-11-05 19:39:11 -05005]
6
7foreach u : unit_files
Brad Bishop92daaaa2020-01-20 15:45:01 -05008 if u[1] == '' or get_option(u[1])
9 configure_file(
10 copy: true,
11 input: u[0],
12 install: true,
13 install_dir: systemd_system_unit_dir,
14 output: u[0],
15 )
16 endif
Brad Bishopb4459912019-11-05 19:39:11 -050017endforeach
Brad Bishop9c7fd642020-11-04 20:21:47 -050018
Patrick Williamsee1db762023-04-12 08:05:58 -050019dbus_system_bus_services_dir = dependency('dbus-1').get_variable(
Brad Bishop9c7fd642020-11-04 20:21:47 -050020 'system_bus_services_dir',
Patrick Williams37304f02025-02-01 08:38:32 -050021 pkgconfig_define: ['prefix', get_option('prefix')],
22)
Brad Bishop9c7fd642020-11-04 20:21:47 -050023install_data(
24 'dbus/xyz.openbmc_project.EntityManager.service',
Patrick Williams37304f02025-02-01 08:38:32 -050025 install_dir: dbus_system_bus_services_dir,
26)