No flashrom on s390, which seems fine

This commit is contained in:
Richard Hughes 2020-03-04 16:48:43 +00:00
parent 20e0879cab
commit f33b0e9e97

View File

@ -17,6 +17,11 @@
%global have_uefi 1 %global have_uefi 1
%endif %endif
# flashrom is only available on these arches
%ifarch i686 x86_64 armv7hl aarch64 ppc64le
%global have_flashrom 1
%endif
# redfish is only available on this arch # redfish is only available on this arch
%ifarch x86_64 %ifarch x86_64
%global have_redfish 1 %global have_redfish 1
@ -68,7 +73,9 @@ BuildRequires: json-glib-devel >= %{json_glib_version}
BuildRequires: vala BuildRequires: vala
BuildRequires: bash-completion BuildRequires: bash-completion
BuildRequires: git-core BuildRequires: git-core
%if 0%{?have_flashrom}
BuildRequires: flashrom-devel >= 1.2-2 BuildRequires: flashrom-devel >= 1.2-2
%endif
%if 0%{?have_modem_manager} %if 0%{?have_modem_manager}
BuildRequires: ModemManager-glib-devel >= 1.10.0 BuildRequires: ModemManager-glib-devel >= 1.10.0
@ -149,7 +156,11 @@ Data files for installed tests.
%else %else
-Dplugin_dummy=false \ -Dplugin_dummy=false \
%endif %endif
%if 0%{?have_flashrom}
-Dplugin_flashrom=true \ -Dplugin_flashrom=true \
%else
-Dplugin_flashrom=false \
%endif
-Dplugin_thunderbolt=true \ -Dplugin_thunderbolt=true \
%if 0%{?have_redfish} %if 0%{?have_redfish}
-Dplugin_redfish=true \ -Dplugin_redfish=true \
@ -314,7 +325,9 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/fwupd
%{_libdir}/fwupd-plugins-3/libfu_plugin_ebitdo.so %{_libdir}/fwupd-plugins-3/libfu_plugin_ebitdo.so
%{_libdir}/fwupd-plugins-3/libfu_plugin_emmc.so %{_libdir}/fwupd-plugins-3/libfu_plugin_emmc.so
%{_libdir}/fwupd-plugins-3/libfu_plugin_fastboot.so %{_libdir}/fwupd-plugins-3/libfu_plugin_fastboot.so
%if 0%{?have_flashrom}
%{_libdir}/fwupd-plugins-3/libfu_plugin_flashrom.so %{_libdir}/fwupd-plugins-3/libfu_plugin_flashrom.so
%endif
%{_libdir}/fwupd-plugins-3/libfu_plugin_fresco_pd.so %{_libdir}/fwupd-plugins-3/libfu_plugin_fresco_pd.so
%{_libdir}/fwupd-plugins-3/libfu_plugin_jabra.so %{_libdir}/fwupd-plugins-3/libfu_plugin_jabra.so
%if 0%{?have_modem_manager} %if 0%{?have_modem_manager}