[packages/libflashrom] enable features requiring pci io on x86 only

atler atler at pld-linux.org
Wed Sep 9 20:02:10 CEST 2020


commit 50ba0bd159865f6366fd31470746b72b2e1499f3
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Sep 9 19:43:18 2020 +0200

    enable features requiring pci io on x86 only

 libflashrom.spec | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/libflashrom.spec b/libflashrom.spec
index 8402c44..f8abd07 100644
--- a/libflashrom.spec
+++ b/libflashrom.spec
@@ -1,7 +1,11 @@
 #
 # Conditional build:
 %bcond_without	apidocs	# API documentation
-#
+
+%ifarch %{ix86} %{x8664} x32
+%define		with_pci_io	1
+%endif
+
 Summary:	Flash ROM programming library
 Summary(pl.UTF-8):	Biblioteka do programowania pamięci Flash ROM
 Name:		libflashrom
@@ -65,7 +69,13 @@ Dokumentacja API biblioteki libflashrom.
 %setup -q -n flashrom-%{gitref}
 
 %build
-%meson build
+%meson build \
+%if %{without pci_io}
+	-Dconfig_nic3com=false \
+	-Dconfig_nicrealtek=false \
+	-Dconfig_rayer_spi=false \
+	-Dconfig_satamv=false
+%endif
 
 %ninja_build -C build
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libflashrom.git/commitdiff/72393d0b3ecada67d9e08f469729ce2aac7fbfc5



More information about the pld-cvs-commit mailing list