forked from Archive/PX4-Autopilot
parent
5b9a19aa65
commit
9a0b6aca90
|
@ -213,8 +213,7 @@ function(px4_nuttx_add_export)
|
||||||
# copy
|
# copy
|
||||||
add_custom_command(OUTPUT nuttx_copy_${CONFIG}.stamp
|
add_custom_command(OUTPUT nuttx_copy_${CONFIG}.stamp
|
||||||
COMMAND ${MKDIR} -p ${CMAKE_BINARY_DIR}/${CONFIG}
|
COMMAND ${MKDIR} -p ${CMAKE_BINARY_DIR}/${CONFIG}
|
||||||
COMMAND ${CP} -r ${CMAKE_SOURCE_DIR}/NuttX ${nuttx_src}
|
COMMAND rsync -a --exclude=.git ${CMAKE_SOURCE_DIR}/NuttX/ ${nuttx_src}/
|
||||||
COMMAND ${RM} -rf ${nuttx_src}/.git
|
|
||||||
COMMAND ${TOUCH} nuttx_copy_${CONFIG}.stamp
|
COMMAND ${TOUCH} nuttx_copy_${CONFIG}.stamp
|
||||||
DEPENDS ${DEPENDS})
|
DEPENDS ${DEPENDS})
|
||||||
add_custom_target(__nuttx_copy_${CONFIG}
|
add_custom_target(__nuttx_copy_${CONFIG}
|
||||||
|
|
Loading…
Reference in New Issue