hv_fcopy_uio_daemon is x86 only

OBS-URL: https://build.opensuse.org/package/show/Virtualization/hyper-v?expand=0&rev=160
This commit is contained in:
Olaf Hering 2024-10-22 13:09:16 +00:00 committed by Git OBS Bridge
parent cbd6b4685f
commit 6c67bf9603

View File

@ -113,6 +113,7 @@ gcc \
-include %include_uapi_linux_hyperv.h \
-o %hv_fcopy_daemon
%ifarch %ix86 x86_64
gcc \
$RPM_OPT_FLAGS \
-Wno-unused-variable \
@ -124,6 +125,7 @@ gcc \
%hv_fcopy_uio_daemon.c \
-include %include_uapi_linux_hyperv.h \
-o %hv_fcopy_uio_daemon
%endif
%install
# It is not a callable app anyway, so move it out of the way
@ -133,7 +135,9 @@ mkdir -p %buildroot%_sbindir
install -m755 %hv_kvp_daemon %buildroot${bindir}
install -m755 %hv_vss_daemon %buildroot${bindir}
install -m755 %hv_fcopy_daemon %buildroot${bindir}
%ifarch %ix86 x86_64
install -m755 %hv_fcopy_uio_daemon %buildroot${bindir}
%endif
cp -avL %{S:0} %buildroot%_sbindir/lsvmbus
chmod 0755 %buildroot%_sbindir/lsvmbus
cp -avL %{S:20} %buildroot${bindir}/hv_get_dhcp_info