2020-10-08 12:31:33 +02:00
|
|
|
have_virtiofsd = (targetos == 'linux' and
|
2020-02-05 09:45:39 +01:00
|
|
|
have_tools and
|
|
|
|
'CONFIG_SECCOMP' in config_host and
|
|
|
|
'CONFIG_LIBCAP_NG' in config_host and
|
|
|
|
'CONFIG_VHOST_USER' in config_host)
|
|
|
|
|
2020-10-08 12:31:33 +02:00
|
|
|
if get_option('virtiofsd').enabled()
|
|
|
|
if not have_virtiofsd
|
|
|
|
if targetos != 'linux'
|
|
|
|
error('virtiofsd requires Linux')
|
|
|
|
elif 'CONFIG_SECCOMP' not in config_host or 'CONFIG_LIBCAP_NG' not in config_host
|
|
|
|
error('virtiofsd requires libcap-ng-devel and seccomp-devel')
|
|
|
|
elif not have_tools or 'CONFIG_VHOST_USER' not in config_host
|
|
|
|
error('virtiofsd needs tools and vhost-user support')
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
elif get_option('virtiofsd').disabled() or not have_system
|
|
|
|
have_virtiofsd = false
|
|
|
|
endif
|
|
|
|
|
2020-02-05 09:45:39 +01:00
|
|
|
if have_virtiofsd
|
|
|
|
subdir('virtiofsd')
|
|
|
|
endif
|