Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 39ede9c7 authored by Adriaan de Groot's avatar Adriaan de Groot 💬

Update logic for disabling the PCI module.

Summary:
FreeBSD on ThunderX2 does support PCI, and apparently the KCM
even works. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234256

Reviewers: davidedmundson

Reviewed By: davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D17785
parent 937e9c72
......@@ -44,7 +44,20 @@ set_package_properties(PCIUTILS PROPERTIES DESCRIPTION "PciUtils is a library fo
PURPOSE "View PCI details in kinfocenter."
)
if(NOT APPLE AND NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm" AND NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
# 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(APPLE)
set(_want_pci OFF)
elseif(${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)
add_subdirectory( pci )
endif()
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment