@ -268,21 +268,23 @@ function(px4_nuttx_add_export)
@@ -268,21 +268,23 @@ function(px4_nuttx_add_export)
add_custom_target ( nuttx_copy_ ${ CONFIG } DEPENDS ${ PX4_BINARY_DIR } /nuttx_copy_ ${ CONFIG } .stamp )
# p a t c h
unset ( last_patch )
add_custom_target ( nuttx_patch_ ${ CONFIG } )
foreach ( patch ${ nuttx_patches } )
get_filename_component ( patch_file_name ${ patch } NAME )
message ( STATUS "${CONFIG} NuttX patch: nuttx-patches/${patch_file_name}" )
string ( REPLACE "/" "_" patch_name "nuttx_patch_${patch_file_name}-${CONFIG}" )
set ( patch_stamp ${ nuttx_src } / ${ patch_name } .stamp )
add_custom_command ( OUTPUT ${ patch_stamp }
C O M M A N D $ { P A T C H } - d $ { n u t t x _ s r c } - s - p 1 - N < $ { p a t c h }
C O M M A N D $ { T O U C H } $ { p a t c h _ s t a m p }
D E P E N D S $ { D E P E N D S } n u t t x _ c o p y _ $ { C O N F I G } $ { p a t c h }
C O M M E N T " A p p l y i n g $ { p a t c h } " )
D E P E N D S $ { l a s t _ p a t c h } $ { D E P E N D S } n u t t x _ c o p y _ $ { C O N F I G } $ { p a t c h }
U S E S _ T E R M I N A L
C O M M E N T " $ { C O N F I G } A p p l y i n g N u t t X p a t c h : n u t t x - p a t c h e s / $ { p a t c h _ f i l e _ n a m e } " )
add_custom_target ( ${ patch_name } DEPENDS ${ patch_stamp } )
add_dependencies ( nuttx_patch_ ${ CONFIG } ${ patch_name } )
set ( last_patch ${ patch_name } )
endforeach ( )
# R e a d d e f c o n f i g t o s e e i f C O N F I G _ A R M V 7 M _ S T A C K C H E C K i s y e s