forked from pool/kinfocenter5
944a54ae4b
- Add patches to enable the PCI module on ARM: * 0001-Handle-libpci-errors-gracefully.patch * 0002-Enable-the-PCI-module-everywhere.patch OBS-URL: https://build.opensuse.org/request/show/900649 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kinfocenter5?expand=0&rev=322
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From b3cffbad3503572e942ee41c168e245a651375cf Mon Sep 17 00:00:00 2001
|
|
From: Fabian Vogt <fabian@ritter-vogt.de>
|
|
Date: Thu, 17 Jun 2021 17:46:15 +0200
|
|
Subject: [PATCH 2/2] Enable the PCI module everywhere
|
|
|
|
Not sure why it's disabled on non-BSD ARM, it works fine here on Linux too.
|
|
---
|
|
Modules/CMakeLists.txt | 13 +------------
|
|
1 file changed, 1 insertion(+), 12 deletions(-)
|
|
|
|
diff --git a/Modules/CMakeLists.txt b/Modules/CMakeLists.txt
|
|
index 020b430..859a00c 100644
|
|
--- a/Modules/CMakeLists.txt
|
|
+++ b/Modules/CMakeLists.txt
|
|
@@ -40,18 +40,7 @@ set_package_properties(PCIUTILS PROPERTIES DESCRIPTION "PciUtils is a library fo
|
|
PURPOSE "View PCI details in kinfocenter."
|
|
)
|
|
|
|
-# PCI module doesn't work on Linux arm64, nor on MacOS, but does on
|
|
-# FreeBSD arm64, so this is a bit of a tangle of what-is-supported.
|
|
-set(_want_pci ON)
|
|
-if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
|
|
- if (${CMAKE_SYSTEM} MATCHES "FreeBSD")
|
|
- message(STATUS "FreeBSD arm64 pci support enabled.")
|
|
- else()
|
|
- set(_want_pci OFF)
|
|
- endif()
|
|
-endif()
|
|
-
|
|
-if(_want_pci)
|
|
+if(PCIUTILS_FOUND)
|
|
add_subdirectory( pci )
|
|
endif()
|
|
|
|
--
|
|
2.25.1
|
|
|