blob: 0bbbeea7fd4e80fd3aa868662bd5b7b203ba8b69 [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'],
Alexander Hansen8c4b1d92024-11-04 14:06:24 +01005 ['xyz.openbmc_project.gpiopresence.service', 'gpio-presence'],
Brad Bishopb4459912019-11-05 19:39:11 -05006]
7
8foreach u : unit_files
Brad Bishop92daaaa2020-01-20 15:45:01 -05009 if u[1] == '' or get_option(u[1])
10 configure_file(
11 copy: true,
12 input: u[0],
13 install: true,
14 install_dir: systemd_system_unit_dir,
15 output: u[0],
16 )
17 endif
Brad Bishopb4459912019-11-05 19:39:11 -050018endforeach
Brad Bishop9c7fd642020-11-04 20:21:47 -050019
Patrick Williamsee1db762023-04-12 08:05:58 -050020dbus_system_bus_services_dir = dependency('dbus-1').get_variable(
Brad Bishop9c7fd642020-11-04 20:21:47 -050021 'system_bus_services_dir',
Patrick Williams37304f02025-02-01 08:38:32 -050022 pkgconfig_define: ['prefix', get_option('prefix')],
23)
Brad Bishop9c7fd642020-11-04 20:21:47 -050024install_data(
25 'dbus/xyz.openbmc_project.EntityManager.service',
Patrick Williams37304f02025-02-01 08:38:32 -050026 install_dir: dbus_system_bus_services_dir,
27)