Clean up
This commit is contained in:
parent
3c638b4b37
commit
966215ec70
@ -43,12 +43,11 @@ if(EXISTS ${MITGZ})
|
|||||||
set(SPC_SRC "${CMAKE_CURRENT_SOURCE_DIR}/linux/src_all/micx_drv")
|
set(SPC_SRC "${CMAKE_CURRENT_SOURCE_DIR}/linux/src_all/micx_drv")
|
||||||
add_custom_target(spc_smp ALL DEPENDS linux/src_all/micx_drv)
|
add_custom_target(spc_smp ALL DEPENDS linux/src_all/micx_drv)
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user