[Beignet] [PATCH] Build: check whether lspci exists.
Zhigang Gong
zhigang.gong at intel.com
Thu Jul 3 19:05:42 PDT 2014
Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
---
src/CMakeLists.txt | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 46426d9..9b41932 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -6,6 +6,13 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}
${MESA_SOURCE_INCLUDES})
if (NOT GEN_PCI_ID)
+# lspci
+ Find_Program(LSPCI lspci)
+ IF(LSPCI)
+ MESSAGE(STATUS "Looking for lspci - found")
+ ELSE(LSPCI)
+ MESSAGE(FATAL_ERROR "Looking for lspci - not found")
+ ENDIF(LSPCI)
execute_process(COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/GetGenID.sh"
OUTPUT_VARIABLE GEN_PCI_ID)
message(STATUS "Platform Gen PCI id is " ${GEN_PCI_ID})
--
1.8.3.2
More information about the Beignet
mailing list