blob: 30d8377ec635d049a95726540a869f6f405c66de [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', ''],
Brad Bishopb4459912019-11-05 19:39:11 -05004]
5
6foreach u : unit_files
Brad Bishop92daaaa2020-01-20 15:45:01 -05007 if u[1] == '' or get_option(u[1])
8 configure_file(
9 copy: true,
10 input: u[0],
11 install: true,
12 install_dir: systemd_system_unit_dir,
13 output: u[0],
14 )
15 endif
Brad Bishopb4459912019-11-05 19:39:11 -050016endforeach
Brad Bishop9c7fd642020-11-04 20:21:47 -050017
Patrick Williamsee1db762023-04-12 08:05:58 -050018dbus_system_bus_services_dir = dependency('dbus-1').get_variable(
Brad Bishop9c7fd642020-11-04 20:21:47 -050019 'system_bus_services_dir',
Patrick Williamsee1db762023-04-12 08:05:58 -050020 pkgconfig_define: ['prefix', get_option('prefix')])
Brad Bishop9c7fd642020-11-04 20:21:47 -050021install_data(
22 'dbus/xyz.openbmc_project.EntityManager.service',
23 install_dir: dbus_system_bus_services_dir)