blob: c1454016d9052a694d63620f3b8424448b314674 [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 Williamsee1db762023-04-12 08:05:58 -050021 pkgconfig_define: ['prefix', get_option('prefix')])
Brad Bishop9c7fd642020-11-04 20:21:47 -050022install_data(
23 'dbus/xyz.openbmc_project.EntityManager.service',
24 install_dir: dbus_system_bus_services_dir)