This commit is contained in:
Markus Rosenstihl 2018-12-12 09:45:28 +01:00
parent 3c638b4b37
commit 966215ec70

View File

@ -45,10 +45,9 @@ if(EXISTS ${MITGZ})
elseif(DEFINED ENV{SPC_SOURCE}) elseif(DEFINED ENV{SPC_SOURCE})
message(STATUS "SPC_SOURCE environment variable set: " $ENV{SPC_SOURCE}) message(STATUS "SPC_SOURCE environment variable set: " $ENV{SPC_SOURCE})
set(SPC_SRC $ENV{SPC_SOURCE}) set(SPC_SRC $ENV{SPC_SOURCE})
else() else()
set(SPC_SRC "${CMAKE_CURRENT_SOURCE_DIR}/linux/src_all/micx_drv") set(SPC_SRC "${CMAKE_CURRENT_SOURCE_DIR}/linux/src_all/micx_drv")
message(WARNING "Spectrum driver source path not defined in envirnoment variable SPC_SOURCE, using default:" ${SPC_SRC}) message(WARNING "Spectrum driver source path not defined in envirnoment variable SPC_SOURCE,\nusing default: " ${SPC_SRC})
endif() endif()
@ -63,7 +62,6 @@ foreach(KERNEL_DIR ${KERNEL_VERSIONS_DIR})
M=${SPC_SRC} modules) M=${SPC_SRC} modules)
add_custom_command(OUTPUT ${DRIVER_FILE} add_custom_command(OUTPUT ${DRIVER_FILE}
COMMAND ls -lr .
COMMAND ${KBUILD_CMD} COMMAND ${KBUILD_CMD}
COMMAND mkdir -p ${DRIVER_DIRECTORY}/${KERNEL_VERSION} COMMAND mkdir -p ${DRIVER_DIRECTORY}/${KERNEL_VERSION}
COMMAND cp -fv ${SPC_SRC}/spc_smp.ko ${DRIVER_DIRECTORY}/${KERNEL_VERSION}/spc_smp.ko COMMAND cp -fv ${SPC_SRC}/spc_smp.ko ${DRIVER_DIRECTORY}/${KERNEL_VERSION}/spc_smp.ko