1unit_files = [ 2 ['xyz.openbmc_project.FruDevice.service', 'fru-device'], 3 ['xyz.openbmc_project.EntityManager.service', ''], 4 ['devicetree-vpd-parser.service', 'devicetree-vpd'], 5] 6 7foreach u : unit_files 8 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 17endforeach 18 19dbus_system_bus_services_dir = dependency('dbus-1').get_variable( 20 'system_bus_services_dir', 21 pkgconfig_define: ['prefix', get_option('prefix')]) 22install_data( 23 'dbus/xyz.openbmc_project.EntityManager.service', 24 install_dir: dbus_system_bus_services_dir) 25