mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
firmware-utils: Read IGSC version from IGSC config
- This commit reads the IGSC version from the IGSC config rather parsing the igsc library path. Related-To: LOCI-2527 Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
11980db8eb
commit
27bf56ee5a
@ -78,15 +78,14 @@ if(BUILD_WITH_L0)
|
||||
|
||||
if(UNIX)
|
||||
# Firmware Update Library
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/tools/source/sysman/linux/firmware_util${BRANCH_DIR_SUFFIX}")
|
||||
find_package(libigsc)
|
||||
if(libigsc_FOUND)
|
||||
find_package(igsc)
|
||||
if(igsc_FOUND)
|
||||
add_definitions(-DIGSC_PRESENT=1)
|
||||
message(STATUS "libigsc Library headers directory: ${libigsc_INCLUDE_DIR}")
|
||||
message(STATUS "libigsc version: ${libigsc_VERSION}")
|
||||
include_directories(SYSTEM ${libigsc_INCLUDE_DIR})
|
||||
message(STATUS "igsc Library headers directory: ${igsc_INCLUDE_DIR}")
|
||||
message(STATUS "igsc version: ${igsc_VERSION}")
|
||||
include_directories(SYSTEM ${igsc_INCLUDE_DIR})
|
||||
else()
|
||||
message(STATUS "libigsc Library headers not available. Building without")
|
||||
message(STATUS "igsc Library headers not available. Building without")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
@ -4,19 +4,19 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
if(libigsc_FOUND)
|
||||
if(igsc_FOUND)
|
||||
set(L0_SRCS_TOOLS_SYSMAN_LINUX_FIRMWARE_UTIL
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/firmware_util_imp.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/firmware_util_imp.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/firmware_util.h
|
||||
)
|
||||
if(libigsc_VERSION VERSION_LESS 0.3)
|
||||
message(STATUS "default libigsc version: ${libigsc_VERSION}")
|
||||
if(igsc_VERSION VERSION_LESS 0.3)
|
||||
message(STATUS "default igsc version: ${igsc_VERSION}")
|
||||
set(L0_SRCS_TOOLS_SYSMAN_LINUX_FIRMWARE_UTIL_HELPER
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/firmware_util_imp_helper.cpp
|
||||
)
|
||||
else()
|
||||
message(STATUS "LIBIGSC version: ${libigsc_VERSION}")
|
||||
message(STATUS "IGSC version: ${igsc_VERSION}")
|
||||
set(L0_SRCS_TOOLS_SYSMAN_LINUX_FIRMWARE_UTIL_HELPER
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}firmware_util_imp_helper.cpp
|
||||
)
|
||||
|
Reference in New Issue
Block a user