Fixes T154 : MI40xx module path not found during config run
This commit is contained in:
parent
4ea12ce571
commit
f33c01dd9d
@ -68,12 +68,8 @@ foreach(KERNEL_DIR ${KERNEL_VERSIONS_DIR})
|
|||||||
COMMENT "Building spc_smp.ko for kernel version: " ${KERNEL_VERSION}
|
COMMENT "Building spc_smp.ko for kernel version: " ${KERNEL_VERSION}
|
||||||
WORKING_DIRECTORY ${SPC_SRC}
|
WORKING_DIRECTORY ${SPC_SRC}
|
||||||
VERBATIM)
|
VERBATIM)
|
||||||
if(EXISTS ${SPC_SRC})
|
|
||||||
add_custom_target (micx_drv_${KERNEL_VERSION} ALL DEPENDS ${DRIVER_FILE})
|
add_custom_target (micx_drv_${KERNEL_VERSION} ALL DEPENDS ${DRIVER_FILE})
|
||||||
install(FILES ${DRIVER_FILE} DESTINATION /lib/modules/${KERNEL_VERSION}/kernel/damaris)
|
install(FILES ${DRIVER_FILE} DESTINATION /lib/modules/${KERNEL_VERSION}/kernel/damaris)
|
||||||
else()
|
|
||||||
message(WARNING "Spectrum MI40xx kernel driver directory not found\n " ${SPC_SRC} "\nunpack and configure it (i.e. set SPC_SOURCE variable)")
|
|
||||||
endif()
|
|
||||||
endforeach(KERNEL_DIR)
|
endforeach(KERNEL_DIR)
|
||||||
add_library(Spectrum_MI40xxSeries STATIC Spectrum-MI40xxSeries.cpp GatedData.cpp ${SPC_HEADERS})
|
add_library(Spectrum_MI40xxSeries STATIC Spectrum-MI40xxSeries.cpp GatedData.cpp ${SPC_HEADERS})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user