mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
cmake nuttx create target for nuttx copy
This commit is contained in:
committed by
Lorenz Meier
parent
b1496f72cd
commit
e491817610
@@ -261,6 +261,7 @@ function(px4_nuttx_add_export)
|
||||
COMMAND ${TOUCH} nuttx_copy_${CONFIG}.stamp
|
||||
DEPENDS ${DEPENDS} ${nuttx_patches} ${nuttx_all_files}
|
||||
COMMENT "Copying NuttX for ${CONFIG} with ${config_nuttx_config}")
|
||||
add_custom_target(nuttx_copy_${CONFIG} DEPENDS nuttx_copy_${CONFIG}.stamp)
|
||||
|
||||
# patch
|
||||
add_custom_target(nuttx_patch_${CONFIG})
|
||||
@@ -273,7 +274,7 @@ function(px4_nuttx_add_export)
|
||||
add_custom_command(OUTPUT ${patch_stamp}
|
||||
COMMAND ${PATCH} -d ${nuttx_src} -s -p1 -N < ${patch}
|
||||
COMMAND ${TOUCH} ${patch_stamp}
|
||||
DEPENDS ${DEPENDS} nuttx_copy_${CONFIG}.stamp ${patch}
|
||||
DEPENDS ${DEPENDS} nuttx_copy_${CONFIG} ${patch}
|
||||
COMMENT "Applying ${patch}")
|
||||
|
||||
add_custom_target(${patch_name} DEPENDS ${patch_stamp})
|
||||
|
||||
Reference in New Issue
Block a user