2020-06-24 10:36:02 +00:00
|
|
|
node_device_driver_sources = [
|
|
|
|
'node_device_driver.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
if conf.has('WITH_HAL')
|
|
|
|
node_device_driver_sources += 'node_device_hal.c'
|
|
|
|
endif
|
|
|
|
|
|
|
|
if conf.has('WITH_UDEV')
|
|
|
|
node_device_driver_sources += 'node_device_udev.c'
|
|
|
|
endif
|
|
|
|
|
2020-07-27 07:10:31 +00:00
|
|
|
driver_source_files += files(node_device_driver_sources)
|
|
|
|
|
2020-06-24 10:36:02 +00:00
|
|
|
if conf.has('WITH_NODE_DEVICES')
|
|
|
|
node_device_driver_impl = static_library(
|
|
|
|
'virt_driver_nodedev_impl',
|
|
|
|
[
|
|
|
|
node_device_driver_sources,
|
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
access_dep,
|
|
|
|
hal_dep,
|
|
|
|
libnl_dep,
|
|
|
|
pciaccess_dep,
|
|
|
|
src_dep,
|
|
|
|
udev_dep,
|
|
|
|
],
|
|
|
|
include_directories: [
|
|
|
|
conf_inc_dir,
|
|
|
|
],
|
|
|
|
)
|
2020-06-24 10:44:09 +00:00
|
|
|
|
|
|
|
virt_modules += {
|
|
|
|
'name': 'virt_driver_nodedev',
|
|
|
|
'link_whole': [
|
|
|
|
node_device_driver_impl,
|
|
|
|
],
|
|
|
|
'link_args': [
|
|
|
|
libvirt_no_undefined,
|
|
|
|
],
|
|
|
|
}
|
2020-06-22 14:47:53 +00:00
|
|
|
|
|
|
|
virt_daemons += {
|
|
|
|
'name': 'virtnodedevd',
|
|
|
|
'c_args': [
|
|
|
|
'-DDAEMON_NAME="virtnodedevd"',
|
|
|
|
'-DMODULE_NAME="nodedev"',
|
|
|
|
],
|
|
|
|
}
|
2020-07-28 09:54:39 +00:00
|
|
|
|
|
|
|
virt_daemon_confs += {
|
|
|
|
'name': 'virtnodedevd',
|
|
|
|
}
|
2020-07-27 07:03:25 +00:00
|
|
|
|
|
|
|
virt_daemon_units += {
|
|
|
|
'service': 'virtnodedevd',
|
|
|
|
'service_in': files('virtnodedevd.service.in'),
|
|
|
|
'name': 'Libvirt nodedev',
|
|
|
|
'sockprefix': 'virtnodedevd',
|
|
|
|
'sockets': [ 'main', 'ro', 'admin' ],
|
|
|
|
'conflicts': true,
|
|
|
|
}
|
2020-07-28 10:11:31 +00:00
|
|
|
|
|
|
|
openrc_init_files += {
|
|
|
|
'name': 'virtnodedevd',
|
|
|
|
'in_file': files('virtnodedevd.init.in'),
|
|
|
|
}
|
2020-06-25 15:46:33 +00:00
|
|
|
|
|
|
|
sysconf_files += {
|
|
|
|
'name': 'virtnodedevd',
|
|
|
|
'file': files('virtnodedevd.sysconf'),
|
|
|
|
}
|
2020-06-24 10:36:02 +00:00
|
|
|
endif
|