2019-04-12 12:41:10 +00:00
|
|
|
# vim: filetype=automake
|
|
|
|
|
2018-02-21 18:05:56 +00:00
|
|
|
DRIVER_SOURCE_FILES += \
|
2019-11-11 12:41:34 +00:00
|
|
|
$(addprefix $(srcdir)/,$(NODE_DEVICE_DRIVER_SOURCES)) \
|
|
|
|
$(addprefix $(srcdir)/,$(NODE_DEVICE_DRIVER_HAL_SOURCES)) \
|
|
|
|
$(addprefix $(srcdir)/,$(NODE_DEVICE_DRIVER_UDEV_SOURCES)) \
|
2018-02-21 18:05:56 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
STATEFUL_DRIVER_SOURCE_FILES += \
|
2019-11-11 05:37:33 +00:00
|
|
|
$(addprefix $(srcdir)/,$(NODE_DEVICE_DRIVER_SOURCES)) \
|
2018-02-21 18:05:56 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
|
|
|
if WITH_NODE_DEVICES
|
2018-03-16 17:05:24 +00:00
|
|
|
sbin_PROGRAMS += virtnodedevd
|
|
|
|
|
|
|
|
nodist_conf_DATA += node_device/virtnodedevd.conf
|
|
|
|
augeas_DATA += node_device/virtnodedevd.aug
|
|
|
|
augeastest_DATA += node_device/test_virtnodedevd.aug
|
|
|
|
|
|
|
|
virtnodedevd_SOURCES = $(REMOTE_DAEMON_SOURCES)
|
2019-10-23 12:24:37 +00:00
|
|
|
nodist_virtnodedevd_SOURCES = $(REMOTE_DAEMON_GENERATED)
|
2018-03-16 17:05:24 +00:00
|
|
|
virtnodedevd_CFLAGS = \
|
|
|
|
$(REMOTE_DAEMON_CFLAGS) \
|
|
|
|
-DDAEMON_NAME="\"virtnodedevd\"" \
|
|
|
|
-DMODULE_NAME="\"nodedev\"" \
|
|
|
|
$(NULL)
|
|
|
|
virtnodedevd_LDFLAGS = $(REMOTE_DAEMON_LD_FLAGS)
|
|
|
|
virtnodedevd_LDADD = $(REMOTE_DAEMON_LD_ADD)
|
|
|
|
|
2020-04-01 17:59:14 +00:00
|
|
|
SYSCONF_FILES += node_device/virtnodedevd.sysconf
|
|
|
|
|
2018-03-16 17:05:24 +00:00
|
|
|
SYSTEMD_UNIT_FILES += \
|
|
|
|
virtnodedevd.service \
|
|
|
|
virtnodedevd.socket \
|
|
|
|
virtnodedevd-ro.socket \
|
|
|
|
virtnodedevd-admin.socket \
|
|
|
|
$(NULL)
|
|
|
|
SYSTEMD_UNIT_FILES_IN += \
|
|
|
|
node_device/virtnodedevd.service.in \
|
|
|
|
$(NULL)
|
|
|
|
|
2019-10-31 17:59:19 +00:00
|
|
|
OPENRC_INIT_FILES += \
|
|
|
|
virtnodedevd.init \
|
|
|
|
$(NULL)
|
|
|
|
OPENRC_INIT_FILES_IN += \
|
|
|
|
node_device/virtnodedevd.init.in \
|
|
|
|
$(NULL)
|
|
|
|
|
2018-03-16 17:05:24 +00:00
|
|
|
VIRTNODEDEVD_UNIT_VARS = \
|
|
|
|
$(VIRTD_UNIT_VARS) \
|
|
|
|
-e 's|[@]name[@]|Libvirt nodedev|g' \
|
|
|
|
-e 's|[@]service[@]|virtnodedevd|g' \
|
|
|
|
-e 's|[@]sockprefix[@]|virtnodedevd|g' \
|
|
|
|
$(NULL)
|
|
|
|
|
2019-10-31 17:59:19 +00:00
|
|
|
virtnodedevd.init: node_device/virtnodedevd.init.in \
|
|
|
|
$(top_builddir)/config.status
|
|
|
|
$(AM_V_GEN)$(SED) $(LIBVIRTD_INIT_VARS) $< > $@-t && mv $@-t $@
|
|
|
|
|
2019-09-23 11:31:57 +00:00
|
|
|
virtnodedevd.service: node_device/virtnodedevd.service.in \
|
|
|
|
$(top_builddir)/config.status
|
2018-03-16 17:05:24 +00:00
|
|
|
$(AM_V_GEN)$(SED) $(VIRTNODEDEVD_UNIT_VARS) $< > $@-t && mv $@-t $@
|
|
|
|
|
2019-09-23 11:31:57 +00:00
|
|
|
virtnodedev%.socket: remote/libvirt%.socket.in \
|
|
|
|
$(top_builddir)/config.status
|
2018-03-16 17:05:24 +00:00
|
|
|
$(AM_V_GEN)$(SED) $(VIRTNODEDEVD_UNIT_VARS) $< > $@-t && mv $@-t $@
|
|
|
|
|
|
|
|
node_device/virtnodedevd.conf: remote/libvirtd.conf.in
|
|
|
|
$(AM_V_GEN)$(SED) \
|
|
|
|
-e '/[@]CUT_ENABLE_IP[@]/,/[@]END[@]/d' \
|
|
|
|
-e 's/[@]DAEMON_NAME[@]/virtnodedevd/' \
|
|
|
|
$< > $@
|
|
|
|
|
|
|
|
node_device/virtnodedevd.aug: remote/libvirtd.aug.in
|
|
|
|
$(AM_V_GEN)$(SED) \
|
|
|
|
-e '/[@]CUT_ENABLE_IP[@]/,/[@]END[@]/d' \
|
|
|
|
-e 's/[@]DAEMON_NAME[@]/virtnodedevd/' \
|
|
|
|
-e 's/[@]DAEMON_NAME_UC[@]/Virtnodedevd/' \
|
|
|
|
$< > $@
|
|
|
|
|
|
|
|
node_device/test_virtnodedevd.aug: remote/test_libvirtd.aug.in \
|
2019-09-27 13:17:54 +00:00
|
|
|
node_device/virtnodedevd.conf $(AUG_GENTEST_SCRIPT)
|
2018-03-16 17:05:24 +00:00
|
|
|
$(AM_V_GEN)$(AUG_GENTEST) node_device/virtnodedevd.conf \
|
|
|
|
$(srcdir)/remote/test_libvirtd.aug.in | \
|
|
|
|
$(SED) \
|
|
|
|
-e '/[@]CUT_ENABLE_IP[@]/,/[@]END[@]/d' \
|
|
|
|
-e 's/[@]DAEMON_NAME[@]/virtnodedevd/' \
|
|
|
|
-e 's/[@]DAEMON_NAME_UC[@]/Virtnodedevd/' \
|
|
|
|
> $@ || rm -f $@
|
|
|
|
|
2018-02-21 18:05:56 +00:00
|
|
|
endif WITH_NODE_DEVICES
|