wrong directory checked when building MI40xx driver

This commit is contained in:
Markus Rosenstihl 2017-01-26 16:57:53 +00:00
parent 4a308c6ddf
commit 58a5dd0b18

View File

@ -42,7 +42,7 @@ add_custom_command(OUTPUT ${DRIVER_FILE}
COMMENT "Building spc_smp.ko"
WORKING_DIRECTORY ${SPC_SRC}
VERBATIM)
if(EXISTS ${CMAKE_SOURCE_DIR}/drivers/Spectrum-MI40xxSeries/linux)
if(EXISTS ${SPC_SRC})
add_custom_target (micx_drv ALL DEPENDS ${DRIVER_FILE} )
install(FILES ${DRIVER_FILE} DESTINATION /lib/modules/${CMAKE_SYSTEM_VERSION}/kernel/damaris)