Skip to content

Commit

Permalink
bin_romfs.cmake: Only copy the contents of the input directory
Browse files Browse the repository at this point in the history
Do not copy the input directory again, if the target directory already
exists. This confuses Ninja as it tries to remove the boot/ directory, but
it contains sub-directories the build system does not know about (it should
use "rm -rf" but it doesn't know it should)
  • Loading branch information
pussuw committed Oct 9, 2024
1 parent f08fa0a commit 9834546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/nuttx/cmake/bin_romfs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function(make_bin_romfs)
# Preserve the files with debug symbols

add_custom_target(debug_${OUTPREFIX}
COMMAND cp -r ${BINDIR} ${BINDIR}_debug
COMMAND cp -r ${BINDIR}/. ${BINDIR}_debug
DEPENDS ${DEPS}
)

Expand Down

0 comments on commit 9834546

Please sign in to comment.