Skip to content

Commit

Permalink
Fix SD target gcode file handling (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
vintagepc committed Oct 5, 2020
1 parent 192147f commit fa042b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SDCard/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ file(GLOB GCODE_FILES *.gcode)
foreach(PRINTER_FN IN LISTS PRINTER_CLASSES)
get_filename_component(PRINTER ${PRINTER_FN} NAME_WE)
add_custom_target(${PRINTER}_SDcard.bin
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/SDCard
DEPENDS MK404
COMMAND MK404 --sdimage ${PROJECT_BINARY_DIR}/${PRINTER}_SDcard.bin --image-size 128M
COMMAND mcopy -vsi ${PROJECT_BINARY_DIR}/${PRINTER}_SDcard.bin ${GCODE_FILES} ::
COMMAND mcopy -vosi ${PROJECT_BINARY_DIR}/${PRINTER}_SDcard.bin *.gcode ::
SOURCES ${GCODE_FILES}
)
endforeach()

0 comments on commit fa042b5

Please sign in to comment.