Skip to content

Commit

Permalink
only patch the UF2, and keep a backup of the old one
Browse files Browse the repository at this point in the history
also spit out the summary info just so people can see what happened
happened
  • Loading branch information
bsstephan committed May 11, 2024
1 parent 8076081 commit b12dec5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions patch_board_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@ function (patch_board_config)
-P ./lib/nanopb/generator/proto
./build/${PROJECT_NAME}_${CMAKE_PROJECT_VERSION}_${GP2040_BOARDCONFIG}.bin
--json-board-config-filename ./configs/${GP2040_BOARDCONFIG}/board-config.json
--backup
--new-filename ./build/${PROJECT_NAME}_${CMAKE_PROJECT_VERSION}_${GP2040_BOARDCONFIG}.uf2
COMMAND ${VENV_BIN_DIR}/concatenate
-P ./proto
-P ./lib/nanopb/generator/proto
./build/${PROJECT_NAME}_${CMAKE_PROJECT_VERSION}_${GP2040_BOARDCONFIG}.bin
--json-board-config-filename ./configs/${GP2040_BOARDCONFIG}/board-config.json
--new-filename ./build/${PROJECT_NAME}_${CMAKE_PROJECT_VERSION}_${GP2040_BOARDCONFIG}.bin
COMMAND ${VENV_BIN_DIR}/summarize-gp2040ce
--filename ./build/${PROJECT_NAME}_${CMAKE_PROJECT_VERSION}_${GP2040_BOARDCONFIG}.uf2
COMMENT "Patching binary with board config"
)
endfunction()

0 comments on commit b12dec5

Please sign in to comment.